| java.lang.Object org.cougaar.tools.csmart.core.property.PropertyBase org.cougaar.tools.csmart.core.property.ConfigurableComponentProperty
All known Subclasses: org.cougaar.tools.csmart.recipe.AgentQueryProperty, org.cougaar.tools.csmart.recipe.ComponentTypeProperty, org.cougaar.tools.csmart.recipe.PriorityProperty, org.cougaar.tools.csmart.recipe.RecipeQueryProperty,
ConfigurableComponentProperty | public class ConfigurableComponentProperty extends PropertyBase implements Property(Code) | | A ConfigurableComponentProperty is a property within a ConfigurableComponent.
Usually these properties are displayed on the GUI, however, they don't always
have to be displayed.
Every property has these attributes:
name, propertyClass, label, defaultValue, value, allowedValues,
These values should be get/set through the ComponentProperties interface.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
ConfigurableComponentProperty | public ConfigurableComponentProperty(ConfigurableComponent c, String name, Property prop)(Code) | | Copy constructor creates a new ConfigurableComponentProperty from
an existing Property
|
getAllowedValues | public Set getAllowedValues()(Code) | | Gets a Set of all allowed values.
Properties allow ranges of allowable values,
If defined, they method returns that list.
a Set value |
getDefaultValue | public Object getDefaultValue()(Code) | | Gets the default value of this Property. All Properties
should contain a default value.
an Object value |
getLabel | public String getLabel()(Code) | | Gets the Label of this Property. The Label is a text string
describing this property.
a String value |
getName | public CompositeName getName()(Code) | | Gets the name of this Property
a CompositeName value |
getPropertyClass | public Class getPropertyClass()(Code) | | Gets the class of this Property. The Class of the Property
is the Class Type of values that are accepted by this property.
a Class value |
getValue | public Object getValue()(Code) | | Gets the value of this Property
an Object value |
isValueSet | public boolean isValueSet()(Code) | | Indicates if a value has been set for this Property.
a boolean value |
setAllowedValues | public void setAllowedValues(Set allowedValues)(Code) | | Sets a range of allowed values.
Properties allow ranges of allowable values,
Parameters: allowedValues - |
setDefaultValue | public void setDefaultValue(Object defaultValue)(Code) | | Sets the default value for this Property. All Properties
should contain a default value.
Parameters: defaultValue - of the Property |
setLabel | public void setLabel(String label)(Code) | | Sets the label of this Property. The label is a text string
describing this property.
Parameters: label - of this property |
setPropertyClass | public void setPropertyClass(Class c)(Code) | | Sets the class of this Property. The Class indicates what type
of values are excepted in this Property.
Parameters: c - Class of this property |
setValue | public void setValue(Object value)(Code) | | Sets the value of this Property
Parameters: value - of the property |
|
|