com.primix.tapestry.spec
Class ParameterSpecification
java.lang.Object
|
+--com.primix.tapestry.spec.ParameterSpecification
- public class ParameterSpecification
- extends java.lang.Object
Defines a formal parameter to a component. A ParameterSpecification
is contained by a ComponentSpecification
.
TBD: Support for specifying read, write, read/write. Identify arrays in some
way. Distinguish between the type allowed and the type cooreced to (to boolean,
to int, to String). In reality, very little is done with the parameter type, and
the required property just ensures that the parameter has a binding, not that the binding
produces a non-null value.
- Version:
- $Id: ParameterSpecification.java,v 1.4 2001/05/02 14:15:16 hship Exp $
- Author:
- Howard Ship
Method Summary |
java.lang.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 |
setRequired(boolean value)
|
void |
setType(java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterSpecification
public ParameterSpecification()
getType
public java.lang.String getType()
- Returns the class name of the expected type of the parameter. The default value
is
java.lang.Object
which matches anything.
isRequired
public boolean isRequired()
- Returns true if the parameter is required by the component.
The default is false, meaning the parameter is optional.
setRequired
public void setRequired(boolean value)
setType
public void setType(java.lang.String value)