Package org.eclipse.ant.core
Class Property
java.lang.Object
org.eclipse.ant.core.Property
Represents a Ant property. Clients may instantiate this class; it is not intended to be subclassed.
- Since:
- 2.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Gets the nameReturns the label of the plug-in that contributed this Ant property via an extension point.getValue()Returns the value.getValue(boolean substituteVariables) Returns the value.inthashCode()booleanReturns whether this Ant property has been created because of an extension point definition.booleanReturns whether this property requires the Eclipse runtime to be relevant.voidsetEclipseRuntimeRequired(boolean eclipseRuntime) voidSets the namevoidsetPluginLabel(String pluginLabel) Sets the label of the plug-in that contributed this Ant property via an extension point.voidSets the value.voidsetValueProvider(String className, ClassLoader loader) Sets the name of the class that is anIAntPropertyValueProviderto be used to dynamically provide a value for this property.toString()
-
Constructor Details
-
Property
-
Property
public Property()
-
-
Method Details
-
getName
Gets the name- Returns:
- Returns a String
-
setName
Sets the name- Parameters:
name- The name to set
-
equals
-
hashCode
public int hashCode() -
getValue
Returns the value. Equivalent to calling #getValue(true);- Returns:
- String
-
getValue
Returns the value.- Parameters:
substituteVariables- whether the value has any variables resolved.- Returns:
- String
- Since:
- 3.0
-
setValue
Sets the value.- Parameters:
value- The value to set
-
isDefault
public boolean isDefault()Returns whether this Ant property has been created because of an extension point definition.- Returns:
- boolean
- Since:
- 3.0
-
setPluginLabel
Sets the label of the plug-in that contributed this Ant property via an extension point.- Parameters:
pluginLabel- The label of the plug-in- Since:
- 3.0
-
getPluginLabel
Returns the label of the plug-in that contributed this Ant property via an extension point.- Returns:
- pluginLabel The label of the plug-in
- Since:
- 3.0
-
setValueProvider
Sets the name of the class that is anIAntPropertyValueProviderto be used to dynamically provide a value for this property. Sets the class loader to load theIAntPropertyValueProviderto be used to dynamically provide a value for this property.- Parameters:
className- The name of the value provider class to use to resolve the value of this propertyloader- The class loader to use to load the value provider class to use to resolve the value of this property- Since:
- 3.0
-
toString
-
isEclipseRuntimeRequired
public boolean isEclipseRuntimeRequired()Returns whether this property requires the Eclipse runtime to be relevant. Defaults value istrue- Returns:
- whether this property requires the Eclipse runtime
- Since:
- 3.0
-
setEclipseRuntimeRequired
public void setEclipseRuntimeRequired(boolean eclipseRuntime)
-