|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.spec.ParameterSpecification
public class ParameterSpecification
Defines a formal parameter to a component. A
IParameterSpecification is contained by a
IComponentSpecification.
TBD: Identify arrays in some way.
| Constructor Summary | |
|---|---|
ParameterSpecification()
|
|
| Method Summary | |
|---|---|
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. |
String |
getDefaultValue()
Returns the default value for the parameter (or null if the parameter has no default value). |
String |
getDescription()
Returns the documentation for this parameter. |
String |
getParameterName()
Returns the (primary) name of the parameter. |
String |
getPropertyName()
Returns the name of the JavaBeans property to connect the parameter to. |
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(String nameList)
Sets the list of aliases as a comma-seperated list. |
void |
setCache(boolean cache)
|
void |
setDefaultValue(String defaultValue)
Sets the default value of the JavaBeans property if no binding is provided. |
void |
setDeprecated(boolean deprecated)
|
void |
setDescription(String description)
Sets the documentation for this parameter. |
void |
setParameterName(String name)
|
void |
setPropertyName(String propertyName)
Sets the property name (of the component class) to connect the parameter to. |
void |
setRequired(boolean value)
|
void |
setType(String value)
Sets the type of value expected for the parameter. |
| Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
|---|
getLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hivemind.LocationHolder |
|---|
setLocation |
| Methods inherited from interface org.apache.hivemind.Locatable |
|---|
getLocation |
| Constructor Detail |
|---|
public ParameterSpecification()
| Method Detail |
|---|
public 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(String value)
setType in interface IParameterSpecificationpublic String getDescription()
getDescription in interface IParameterSpecificationpublic void setDescription(String description)
setDescription in interface IParameterSpecificationpublic void setPropertyName(String propertyName)
setPropertyName in interface IParameterSpecificationpublic String getPropertyName()
getPropertyName in interface IParameterSpecificationpublic String getDefaultValue()
IParameterSpecification
getDefaultValue in interface IParameterSpecificationIParameterSpecification.getDefaultValue()public void setDefaultValue(String defaultValue)
IParameterSpecification
setDefaultValue in interface IParameterSpecificationIParameterSpecification.setDefaultValue(java.lang.String)public boolean getCache()
IParameterSpecification
getCache in interface IParameterSpecificationpublic void setCache(boolean cache)
setCache in interface IParameterSpecificationpublic Collection getAliasNames()
IParameterSpecification
getAliasNames in interface IParameterSpecificationpublic String getParameterName()
IParameterSpecification
getParameterName in interface IParameterSpecificationpublic void setAliases(String nameList)
IParameterSpecification
setAliases in interface IParameterSpecificationnameList - a comma seperated list of names, which may be null or emptypublic void setParameterName(String name)
setParameterName in interface IParameterSpecificationpublic boolean isDeprecated()
IParameterSpecification
isDeprecated in interface IParameterSpecificationpublic void setDeprecated(boolean deprecated)
setDeprecated in interface IParameterSpecification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||