public class ParameterSpecification extends org.apache.hivemind.impl.BaseLocatable implements IParameterSpecification
IParameterSpecification is contained
by a IComponentSpecification.
TBD: Identify arrays in some way.
| Constructor and Description |
|---|
ParameterSpecification() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getAliasNames()
Returns a non-null collection of strings for the aliases of the parameter.
|
boolean |
getCache()
Returns true if the parameter property should cache the result of the binding.
|
java.lang.String |
getDefaultValue()
Returns the default value for the parameter (or null if the parameter has no default value).
|
java.lang.String |
getDescription()
Returns the documentation for this parameter.
|
java.lang.String |
getParameterName()
Returns the (primary) name of the parameter.
|
java.lang.String |
getPropertyName()
Returns the name of the JavaBeans property to connect the parameter to.
|
java.lang.String |
getType()
Returns the class name of the expected type of the parameter.
|
boolean |
isDeprecated()
Returns true if the parameter is deprecated.
|
boolean |
isRequired()
Returns true if the parameter is required by the component.
|
void |
setAliases(java.lang.String nameList)
Sets the list of aliases as a comma-seperated list.
|
void |
setCache(boolean cache) |
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value of the JavaBeans property if no binding is provided
|
void |
setDeprecated(boolean deprecated) |
void |
setDescription(java.lang.String description)
Sets the documentation for this parameter.
|
void |
setParameterName(java.lang.String name) |
void |
setPropertyName(java.lang.String propertyName)
Sets the property name (of the component class) to connect the parameter to.
|
void |
setRequired(boolean value) |
void |
setType(java.lang.String value)
Sets the type of value expected for the parameter.
|
public ParameterSpecification()
public java.lang.String getType()
java.lang.Object which matches anything.getType in interface IParameterSpecificationpublic boolean isRequired()
isRequired in interface IParameterSpecificationpublic void setRequired(boolean value)
setRequired in interface IParameterSpecificationpublic void setType(java.lang.String value)
setType in interface IParameterSpecificationpublic java.lang.String getDescription()
getDescription in interface IParameterSpecificationpublic void setDescription(java.lang.String description)
setDescription in interface IParameterSpecificationpublic void setPropertyName(java.lang.String propertyName)
setPropertyName in interface IParameterSpecificationpublic java.lang.String getPropertyName()
getPropertyName in interface IParameterSpecificationpublic java.lang.String getDefaultValue()
IParameterSpecificationgetDefaultValue in interface IParameterSpecificationIParameterSpecification.getDefaultValue()public void setDefaultValue(java.lang.String defaultValue)
IParameterSpecificationsetDefaultValue in interface IParameterSpecificationIParameterSpecification.setDefaultValue(java.lang.String)public boolean getCache()
IParameterSpecificationgetCache in interface IParameterSpecificationpublic void setCache(boolean cache)
setCache in interface IParameterSpecificationpublic java.util.Collection getAliasNames()
IParameterSpecificationgetAliasNames in interface IParameterSpecificationpublic java.lang.String getParameterName()
IParameterSpecificationgetParameterName in interface IParameterSpecificationpublic void setAliases(java.lang.String nameList)
IParameterSpecificationsetAliases in interface IParameterSpecificationnameList - a comma seperated list of names, which may be null or emptypublic void setParameterName(java.lang.String name)
setParameterName in interface IParameterSpecificationpublic boolean isDeprecated()
IParameterSpecificationisDeprecated in interface IParameterSpecificationpublic void setDeprecated(boolean deprecated)
setDeprecated in interface IParameterSpecification