org.eclipse.cdt.managedbuilder.internal.core
Class Option

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.core.BuildObject
      extended by org.eclipse.cdt.managedbuilder.internal.core.Option
All Implemented Interfaces:
IBuildObject, IBuildPropertiesRestriction, IOption

public class Option
extends BuildObject
implements IOption, IBuildPropertiesRestriction


Field Summary
static OptionStringValue[] EMPTY_LV_ARRAY
           
static java.lang.String EMPTY_STRING
           
static java.lang.String[] EMPTY_STRING_ARRAY
           
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IOption
ALL, APPLICABILITY_CALCULATOR, BOOLEAN, BROWSE_DIR, BROWSE_FILE, BROWSE_NONE, BROWSE_TYPE, CATEGORY, COMMAND, COMMAND_FALSE, DEFAULT_VALUE, DIR, ENUM_VALUE, ENUMERATED, FILE, FILTER_ALL, FILTER_FILE, FILTER_PROJECT, INCLUDE_FILES, INCLUDE_PATH, IS_DEFAULT, LIBRARIES, LIBRARY_FILES, LIBRARY_PATHS, LIST_ITEM_BUILTIN, LIST_ITEM_VALUE, LIST_VALUE, MACRO_FILES, NONE, OBJECTS, PREPROCESSOR_SYMBOLS, PROJECT, RESOURCE_FILTER, STRING, STRING_LIST, TOOL_TIP, TYPE_BOOL, TYPE_DEFINED_SYMBOLS, TYPE_ENUM, TYPE_INC_FILES, TYPE_INC_PATH, TYPE_LIB, TYPE_LIB_FILES, TYPE_LIB_PATHS, TYPE_STR_LIST, TYPE_STRING, TYPE_SYMBOL_FILES, TYPE_UNDEF_DEFINED_SYMBOLS, TYPE_UNDEF_INC_FILES, TYPE_UNDEF_INC_PATH, TYPE_UNDEF_LIB_FILES, TYPE_UNDEF_LIB_PATHS, TYPE_UNDEF_SYMBOL_FILES, TYPE_USER_OBJS, UNDEF_INCLUDE_FILES, UNDEF_INCLUDE_PATH, UNDEF_LIBRARY_FILES, UNDEF_LIBRARY_PATHS, UNDEF_MACRO_FILES, UNDEF_PREPROCESSOR_SYMBOLS, VALUE, VALUE_HANDLER, VALUE_HANDLER_EXTRA_ARGUMENT, VALUE_TYPE
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject
ID, NAME
 
Constructor Summary
Option(IHoldsOptions parent, org.eclipse.cdt.core.settings.model.ICStorageElement element)
          Create an Option based on the specification stored in the project file (.cdtbuild).
Option(IHoldsOptions parent, IManagedConfigElement element)
          This constructor is called to create an option defined by an extension point in a plugin manifest file, or returned by a dynamic element provider
Option(IHoldsOptions parent, IOption superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
          This constructor is called to create an Option whose attributes and children will be added by separate calls.
Option(IHoldsOptions parent, java.lang.String Id, java.lang.String name, Option option)
          Create an Option based upon an existing option.
 
Method Summary
 IOptionApplicability getApplicabilityCalculator()
           
 org.eclipse.core.runtime.IConfigurationElement getApplicabilityCalculatorElement()
           
 java.lang.String[] getApplicableValues()
          If this option is defined as an enumeration, this function returns the list of possible values for that enum.
 java.lang.String[] getBasicStringListValue()
          in case the option basic value type is STRING_LIST, returns the String list value, throws BuildException otherwise
 OptionStringValue[] getBasicStringListValueElements()
           
 int getBasicValueType()
          Returns the type of the option value, i.e. whether it is string, boolean, string list or enumenration.
 BooleanExpressionApplicabilityCalculator getBooleanExpressionCalculator(boolean isExtensionAdjustment)
           
 boolean getBooleanValue()
          Answers the value for a boolean option.
 int getBrowseType()
          Returns the setting of the browseType attribute
 java.lang.String[] getBuiltIns()
          Answers an array of strings containing the built-in values defined for a stringList, includePaths, definedSymbols, or libs option.
 IOptionCategory getCategory()
          Returns the category for this option.
 java.lang.String getCommand()
          Answers a String containing the actual command line option associated with the option
 java.lang.String getCommandFalse()
          Answers a String containing the actual command line option associated with a Boolean option when the value is False
 java.lang.Object getDefaultValue()
          Returns the raw default value of this option.
 java.lang.String[] getDefinedSymbols()
          Answers the user-defined preprocessor symbols.
 java.lang.String getEnumCommand(java.lang.String id)
          Answers the command associated with the enumeration id.
 java.lang.String getEnumeratedId(java.lang.String name)
           
 java.lang.String getEnumName(java.lang.String id)
          Answers the "name" associated with the enumeration id.
 java.util.List getExactBuiltinsList()
           
 java.lang.Object getExactDefaultValue()
           
 java.lang.Object getExactRawValue()
           
 java.lang.Object getExactValue()
           
 java.lang.String[] getIncludePaths()
          Answers an array of String containing the includes paths defined in the build model.
 java.lang.String[] getLibraries()
          Answers an array or Strings containing the libraries that must be linked into the project.
 java.lang.String getManagedBuildRevision()
           
 java.lang.String getName()
           
static int getOppositeType(int type)
           
 IHoldsOptions getOptionHolder()
          Returns the holder (parent) of this option.
 IBuildObject getParent()
          Returns the parent of this option.
 java.lang.Object getRawValue()
           
 java.lang.String[] getRequiredTypeIds()
           
 int getResourceFilter()
          Returns the setting of the resourceFilter attribute
 java.lang.String getSelectedEnum()
          Answers a String containing the unique ID of the selected enumeration in an enumerated option.
 java.lang.String[] getStringListValue()
          Returns the current value for this option if it is a List of Strings.
 java.lang.String getStringValue()
          Returns the current value for this option if it is a String
 IOption getSuperClass()
          Returns the IOption that is the superclass of this option, or null if the attribute was not specified.
 java.lang.String[] getSupportedTypeIds()
           
 java.lang.String[] getSupportedValueIds(java.lang.String typeId)
           
 java.lang.String getToolTip()
          Answers a String containing the tooltip associated with the option
 java.lang.String[] getUserObjects()
          Answers all of the user-defined object files that must be linked with the final build target.
 java.lang.Object getValue()
          Returns the raw value of this option.
 IManagedOptionValueHandler getValueHandler()
          Returns the value handler specified for this tool.
 org.eclipse.core.runtime.IConfigurationElement getValueHandlerElement()
           
 java.lang.String getValueHandlerExtraArgument()
          Returns the value handlers extra argument specified for this tool
 int getValueType()
          Get the type for the value of the option.
 org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
           
 boolean hasCustomSettings()
           
 boolean isAdjustedExtension()
           
 boolean isDirty()
           
 boolean isExtensionElement()
          Returns true if this option was loaded from a manifest file, and false if it was loaded from a project (.cdtbuild) file.
 boolean isValid()
          Returns true if this option is valid and false if the option cannot be safely used due to an error in the MBS grammar.
 boolean matches(IOption option)
           
 boolean needsRebuild()
           
 boolean overridesOnlyValue()
          Returns true if this option only oveerides the value attribute of its superclass and false if it overrides other attributes.
 boolean requiresType(java.lang.String typeId)
           
 void resolveReferences()
           
 void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
          Persist the option to the project file.
 void setAdjusted(boolean adjusted)
           
 void setBrowseType(int type)
          Sets the browseType attribute.
 void setCategory(IOptionCategory category)
          Sets the category for this option.
 void setCommand(java.lang.String cmd)
          Sets a String containing the actual command line option associated with the option
 void setCommandFalse(java.lang.String cmd)
          Sets a String containing the actual command line option associated with a Boolean option when the value is False
 void setDefaultValue(java.lang.Object v)
          Sets the default value of this option.
 void setDirty(boolean isDirty)
           
 void setRebuildState(boolean rebuild)
           
 void setResourceFilter(int filter)
          Sets the resourceFilter attribute.
 void setSuperClass(IOption superClass)
           
 void setToolTip(java.lang.String tooltip)
          Sets a String containing the tooltip associated with the option
 void setValue(boolean value)
          Sets the boolean value of the receiver to the value specified in the argument.
 void setValue(java.lang.Object v)
          Sets the raw value of this option.
 void setValue(OptionStringValue[] value)
           
 void setValue(java.lang.String value)
          Sets the string value of the receiver to the value specified in the argument.
 void setValue(java.lang.String[] value)
          Sets the value of the receiver to be an array of strings.
 void setValueHandlerElement(org.eclipse.core.runtime.IConfigurationElement element)
           
 void setValueHandlerExtraArgument(java.lang.String extraArgument)
          Sets the value handlers extra argument specified for this tool
 void setValueType(int type)
          Sets the value-type of this option.
 void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
           
 void setWasOptRef(boolean was)
           
 boolean supportsType(java.lang.String id)
           
 boolean supportsValue(java.lang.String typeId, java.lang.String valueId)
           
 boolean wasOptRef()
           
 
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject
getBaseId, getId, getVersionFromId, setId, setManagedBuildRevision, setName, toString, updateManagedBuildRevision
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject
getBaseId, getId
 

Field Detail

EMPTY_STRING

public static final java.lang.String EMPTY_STRING

EMPTY_STRING_ARRAY

public static final java.lang.String[] EMPTY_STRING_ARRAY

EMPTY_LV_ARRAY

public static final OptionStringValue[] EMPTY_LV_ARRAY
Constructor Detail

Option

public Option(IHoldsOptions parent,
              IManagedConfigElement element)
This constructor is called to create an option defined by an extension point in a plugin manifest file, or returned by a dynamic element provider

Parameters:
parent - The IHoldsOptions parent of this option, or null if defined at the top level
element - The option definition from the manifest file or a dynamic element provider

Option

public Option(IHoldsOptions parent,
              IOption superClass,
              java.lang.String Id,
              java.lang.String name,
              boolean isExtensionElement)
This constructor is called to create an Option whose attributes and children will be added by separate calls.

Parameters:
IHoldsOptions - The parent of the option, if any
Option - The superClass, if any
String - The id for the new option
String - The name for the new option
boolean - Indicates whether this is an extension element or a managed project element

Option

public Option(IHoldsOptions parent,
              org.eclipse.cdt.core.settings.model.ICStorageElement element)
Create an Option based on the specification stored in the project file (.cdtbuild).

Parameters:
parent - The IHoldsOptions the option will be added to.
element - The XML element that contains the option settings.

Option

public Option(IHoldsOptions parent,
              java.lang.String Id,
              java.lang.String name,
              Option option)
Create an Option based upon an existing option.

Parameters:
parent - The IHoldsOptions the option will be added to.
Id - New ID for the option.
name - New name for the option.
option - The existing option to clone, except for the above fields.
Method Detail

serialize

public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
               throws BuildException
Persist the option to the project file.

Parameters:
doc -
element -
Throws:
BuildException

getParent

public IBuildObject getParent()
Description copied from interface: IOption
Returns the parent of this option. This is an object implementing ITool or IToolChain.

Specified by:
getParent in interface IOption
Returns:
IBuildObject

getOptionHolder

public IHoldsOptions getOptionHolder()
Description copied from interface: IOption
Returns the holder (parent) of this option. This may be an object implenting ITool or IToolChain, which both extend IHoldsOptions

Specified by:
getOptionHolder in interface IOption
Returns:
IHoldsOptions

getSuperClass

public IOption getSuperClass()
Description copied from interface: IOption
Returns the IOption that is the superclass of this option, or null if the attribute was not specified.

Specified by:
getSuperClass in interface IOption
Returns:
IOption

getName

public java.lang.String getName()
Specified by:
getName in interface IBuildObject
Overrides:
getName in class BuildObject

getApplicableValues

public java.lang.String[] getApplicableValues()
Description copied from interface: IOption
If this option is defined as an enumeration, this function returns the list of possible values for that enum. If this option is not defined as an enumeration, it returns null.

Specified by:
getApplicableValues in interface IOption
Returns:
String []

getBooleanValue

public boolean getBooleanValue()
Description copied from interface: IOption
Answers the value for a boolean option.

Specified by:
getBooleanValue in interface IOption
Returns:
boolean

getBrowseType

public int getBrowseType()
Description copied from interface: IOption
Returns the setting of the browseType attribute

Specified by:
getBrowseType in interface IOption
Returns:
int

getResourceFilter

public int getResourceFilter()
Description copied from interface: IOption
Returns the setting of the resourceFilter attribute

Specified by:
getResourceFilter in interface IOption
Returns:
int

getApplicabilityCalculatorElement

public org.eclipse.core.runtime.IConfigurationElement getApplicabilityCalculatorElement()

getApplicabilityCalculator

public IOptionApplicability getApplicabilityCalculator()
Specified by:
getApplicabilityCalculator in interface IOption
Returns:
an instance of the class that calculates whether the option is visible, enabled, and used in command line generation

getBuiltIns

public java.lang.String[] getBuiltIns()
Description copied from interface: IOption
Answers an array of strings containing the built-in values defined for a stringList, includePaths, definedSymbols, or libs option. If none have been defined, the array will be empty but never null.

Specified by:
getBuiltIns in interface IOption
Returns:
String[]

getExactBuiltinsList

public java.util.List getExactBuiltinsList()

getCategory

public IOptionCategory getCategory()
Description copied from interface: IOption
Returns the category for this option.

Specified by:
getCategory in interface IOption
Returns:
IOptionCategory

getCommand

public java.lang.String getCommand()
Description copied from interface: IOption
Answers a String containing the actual command line option associated with the option

Specified by:
getCommand in interface IOption
Returns:
String

getCommandFalse

public java.lang.String getCommandFalse()
Description copied from interface: IOption
Answers a String containing the actual command line option associated with a Boolean option when the value is False

Specified by:
getCommandFalse in interface IOption
Returns:
String

getToolTip

public java.lang.String getToolTip()
Description copied from interface: IOption
Answers a String containing the tooltip associated with the option

Specified by:
getToolTip in interface IOption
Returns:
String

getDefinedSymbols

public java.lang.String[] getDefinedSymbols()
                                     throws BuildException
Description copied from interface: IOption
Answers the user-defined preprocessor symbols.

Specified by:
getDefinedSymbols in interface IOption
Returns:
String[]
Throws:
BuildException

getEnumCommand

public java.lang.String getEnumCommand(java.lang.String id)
                                throws BuildException
Description copied from interface: IOption
Answers the command associated with the enumeration id. For example, if the enumeration id was gnu.debug.level.default for the debug level option of the Gnu compiler, and the plugin manifest defined that as -g, then the return value would be the String "-g"

Specified by:
getEnumCommand in interface IOption
Returns:
Throws:
BuildException

getEnumName

public java.lang.String getEnumName(java.lang.String id)
                             throws BuildException
Description copied from interface: IOption
Answers the "name" associated with the enumeration id.

Specified by:
getEnumName in interface IOption
Returns:
Throws:
BuildException

getEnumeratedId

public java.lang.String getEnumeratedId(java.lang.String name)
                                 throws BuildException
Specified by:
getEnumeratedId in interface IOption
Returns:
Throws:
BuildException

getIncludePaths

public java.lang.String[] getIncludePaths()
                                   throws BuildException
Description copied from interface: IOption
Answers an array of String containing the includes paths defined in the build model.

Specified by:
getIncludePaths in interface IOption
Returns:
String[]
Throws:
BuildException

getLibraries

public java.lang.String[] getLibraries()
                                throws BuildException
Description copied from interface: IOption
Answers an array or Strings containing the libraries that must be linked into the project.

Specified by:
getLibraries in interface IOption
Returns:
String[]
Throws:
BuildException

getSelectedEnum

public java.lang.String getSelectedEnum()
                                 throws BuildException
Description copied from interface: IOption
Answers a String containing the unique ID of the selected enumeration in an enumerated option. For an option that has not been changed by the user, the receiver will answer with the default defined in the plugin manifest. If the user has modified the selection, the receiver will answer with the overridden selection.

Specified by:
getSelectedEnum in interface IOption
Returns:
String
Throws:
BuildException - if the option type is not an enumeration

getStringListValue

public java.lang.String[] getStringListValue()
                                      throws BuildException
Description copied from interface: IOption
Returns the current value for this option if it is a List of Strings.

Specified by:
getStringListValue in interface IOption
Returns:
String []
Throws:
BuildException

getStringValue

public java.lang.String getStringValue()
                                throws BuildException
Description copied from interface: IOption
Returns the current value for this option if it is a String

Specified by:
getStringValue in interface IOption
Returns:
String
Throws:
BuildException

getUserObjects

public java.lang.String[] getUserObjects()
                                  throws BuildException
Description copied from interface: IOption
Answers all of the user-defined object files that must be linked with the final build target.

Specified by:
getUserObjects in interface IOption
Returns:
Throws:
BuildException

getValueType

public int getValueType()
                 throws BuildException
Description copied from interface: IOption
Get the type for the value of the option.

Specified by:
getValueType in interface IOption
Returns:
int
Throws:
BuildException

getValue

public java.lang.Object getValue()
Description copied from interface: IOption
Returns the raw value of this option.

Specified by:
getValue in interface IOption
Returns:
Object The Object that contains the raw value of the option. The type of Object is specific to the option type.

getExactValue

public java.lang.Object getExactValue()

getRawValue

public java.lang.Object getRawValue()

getExactRawValue

public java.lang.Object getExactRawValue()

getDefaultValue

public java.lang.Object getDefaultValue()
Description copied from interface: IOption
Returns the raw default value of this option.

Specified by:
getDefaultValue in interface IOption
Returns:
Object The Object that contains the raw default value of the option. The type of Object is specific to the option type.

getExactDefaultValue

public java.lang.Object getExactDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.Object v)
Description copied from interface: IOption
Sets the default value of this option.

Specified by:
setDefaultValue in interface IOption
Parameters:
v - The Object that contains the default value of the option. The type of Object is specific to the option type.

setCategory

public void setCategory(IOptionCategory category)
Description copied from interface: IOption
Sets the category for this option.

Specified by:
setCategory in interface IOption

setCommand

public void setCommand(java.lang.String cmd)
Description copied from interface: IOption
Sets a String containing the actual command line option associated with the option

Specified by:
setCommand in interface IOption

setCommandFalse

public void setCommandFalse(java.lang.String cmd)
Description copied from interface: IOption
Sets a String containing the actual command line option associated with a Boolean option when the value is False

Specified by:
setCommandFalse in interface IOption

setToolTip

public void setToolTip(java.lang.String tooltip)
Description copied from interface: IOption
Sets a String containing the tooltip associated with the option

Specified by:
setToolTip in interface IOption

setResourceFilter

public void setResourceFilter(int filter)
Description copied from interface: IOption
Sets the resourceFilter attribute.

Specified by:
setResourceFilter in interface IOption

setBrowseType

public void setBrowseType(int type)
Description copied from interface: IOption
Sets the browseType attribute.

Specified by:
setBrowseType in interface IOption

setValue

public void setValue(boolean value)
              throws BuildException
Description copied from interface: IOption
Sets the boolean value of the receiver to the value specified in the argument. If the receiver is not a reference to a boolean option, method will throw an exception.

Specified by:
setValue in interface IOption
Throws:
BuildException

setValue

public void setValue(java.lang.String value)
              throws BuildException
Description copied from interface: IOption
Sets the string value of the receiver to the value specified in the argument.

Specified by:
setValue in interface IOption
Throws:
BuildException

setValue

public void setValue(java.lang.String[] value)
              throws BuildException
Description copied from interface: IOption
Sets the value of the receiver to be an array of strings.

Specified by:
setValue in interface IOption
Parameters:
value - An array of strings to place in the option reference.
Throws:
BuildException

setValue

public void setValue(OptionStringValue[] value)
              throws BuildException
Throws:
BuildException

setValue

public void setValue(java.lang.Object v)
Description copied from interface: IOption
Sets the raw value of this option.

Specified by:
setValue in interface IOption
Parameters:
v - The Object that contains the raw value of the option. The type of Object is specific to the option type.

setValueType

public void setValueType(int type)
Description copied from interface: IOption
Sets the value-type of this option. Use with care.

Specified by:
setValueType in interface IOption

getValueHandlerElement

public org.eclipse.core.runtime.IConfigurationElement getValueHandlerElement()

setValueHandlerElement

public void setValueHandlerElement(org.eclipse.core.runtime.IConfigurationElement element)

getValueHandler

public IManagedOptionValueHandler getValueHandler()
Description copied from interface: IOption
Returns the value handler specified for this tool.

Specified by:
getValueHandler in interface IOption
Returns:
IManagedOptionValueHandler

getValueHandlerExtraArgument

public java.lang.String getValueHandlerExtraArgument()
Description copied from interface: IOption
Returns the value handlers extra argument specified for this tool

Specified by:
getValueHandlerExtraArgument in interface IOption
Returns:
String

setValueHandlerExtraArgument

public void setValueHandlerExtraArgument(java.lang.String extraArgument)
Description copied from interface: IOption
Sets the value handlers extra argument specified for this tool

Specified by:
setValueHandlerExtraArgument in interface IOption

isExtensionElement

public boolean isExtensionElement()
Description copied from interface: IOption
Returns true if this option was loaded from a manifest file, and false if it was loaded from a project (.cdtbuild) file.

Specified by:
isExtensionElement in interface IOption
Returns:
boolean

overridesOnlyValue

public boolean overridesOnlyValue()
Description copied from interface: IOption
Returns true if this option only oveerides the value attribute of its superclass and false if it overrides other attributes.

Specified by:
overridesOnlyValue in interface IOption
Returns:
boolean

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean isDirty)

resolveReferences

public void resolveReferences()

getManagedBuildRevision

public java.lang.String getManagedBuildRevision()
Specified by:
getManagedBuildRevision in interface IBuildObject
Overrides:
getManagedBuildRevision in class BuildObject
Returns:
Returns the managedBuildRevision.

isValid

public boolean isValid()
Description copied from interface: IOption
Returns true if this option is valid and false if the option cannot be safely used due to an error in the MBS grammar.

Specified by:
isValid in interface IOption
Returns:
boolean

wasOptRef

public boolean wasOptRef()
Returns:
Returns true if this Option was created from an MBS 2.0 model OptionReference element.

setWasOptRef

public void setWasOptRef(boolean was)

getVersion

public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
Specified by:
getVersion in interface IBuildObject
Overrides:
getVersion in class BuildObject
Returns:
Returns the version.

setVersion

public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
Specified by:
setVersion in interface IBuildObject
Overrides:
setVersion in class BuildObject
Parameters:
version - The version to set.

getBooleanExpressionCalculator

public BooleanExpressionApplicabilityCalculator getBooleanExpressionCalculator(boolean isExtensionAdjustment)

isAdjustedExtension

public boolean isAdjustedExtension()

setAdjusted

public void setAdjusted(boolean adjusted)

setSuperClass

public void setSuperClass(IOption superClass)

needsRebuild

public boolean needsRebuild()

setRebuildState

public void setRebuildState(boolean rebuild)

matches

public boolean matches(IOption option)

getRequiredTypeIds

public java.lang.String[] getRequiredTypeIds()
Specified by:
getRequiredTypeIds in interface IBuildPropertiesRestriction

getSupportedTypeIds

public java.lang.String[] getSupportedTypeIds()
Specified by:
getSupportedTypeIds in interface IBuildPropertiesRestriction

getSupportedValueIds

public java.lang.String[] getSupportedValueIds(java.lang.String typeId)
Specified by:
getSupportedValueIds in interface IBuildPropertiesRestriction

requiresType

public boolean requiresType(java.lang.String typeId)
Specified by:
requiresType in interface IBuildPropertiesRestriction

supportsType

public boolean supportsType(java.lang.String id)
Specified by:
supportsType in interface IBuildPropertiesRestriction

supportsValue

public boolean supportsValue(java.lang.String typeId,
                             java.lang.String valueId)
Specified by:
supportsValue in interface IBuildPropertiesRestriction

getBasicStringListValue

public java.lang.String[] getBasicStringListValue()
                                           throws BuildException
Description copied from interface: IOption
in case the option basic value type is STRING_LIST, returns the String list value, throws BuildException otherwise

Specified by:
getBasicStringListValue in interface IOption
Returns:
Throws:
BuildException

getBasicStringListValueElements

public OptionStringValue[] getBasicStringListValueElements()
                                                    throws BuildException
Specified by:
getBasicStringListValueElements in interface IOption
Throws:
BuildException

getBasicValueType

public int getBasicValueType()
                      throws BuildException
Description copied from interface: IOption
Returns the type of the option value, i.e. whether it is string, boolean, string list or enumenration. As opposed to the getValueType() method, the returned type does not specifies the "sense" of the value, e.g. whether it represents the list of includes or not. possible return values: IOption.BOOLEAN IOption.STRING IOption.ENUMERATED IOption.STRING_LIST the STRING_LIST basic value type corresponds to the following option value types: INCLUDE_PATH, PREPROCESSOR_SYMBOLS, LIBRARIES, OBJECTS, INCLUDE_FILES, LIBRARY_PATHS, LIBRARY_FILES, MACRO_FILES

Specified by:
getBasicValueType in interface IOption
Throws:
BuildException

hasCustomSettings

public boolean hasCustomSettings()

getOppositeType

public static int getOppositeType(int type)