|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.spec.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 | |
|---|---|
String |
getDefaultValue()
Returns the default value of the JavaBeans property if no binding is provided or null if it has not been specified |
String |
getDescription()
Returns the documentation for this parameter. |
Direction |
getDirection()
Returns the parameter value direction, defaulting to Direction.CUSTOM
if not otherwise specified. |
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 |
isRequired()
Returns true if the parameter is required by the component. |
void |
setDefaultValue(String defaultValue)
Sets the default value of the JavaBeans property if no binding is provided |
void |
setDescription(String description)
Sets the documentation for this parameter. |
void |
setDirection(Direction direction)
|
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.tapestry.spec.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.tapestry.ILocationHolder |
|---|
setLocation |
| Methods inherited from interface org.apache.tapestry.ILocatable |
|---|
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 Direction getDirection()
Direction.CUSTOM
if not otherwise specified.
getDirection in interface IParameterSpecificationpublic void setDirection(Direction direction)
setDirection 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||