|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.parameters.ParameterData
This class is used to manage the data associated with a single parameter. A ParameterData object contains errors and values associated with a given parameter.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
ParameterData(ParameterModel model,
Object value)
Construct a new ParameterData object with the specified name and value. |
Method Summary | |
void |
addError(GlobalizedMessage message)
Adds an error to this parameter. |
void |
addError(String message)
Adds a an error to this parameter. |
Object |
clone()
Clones this object making a new reference to the errors list. |
Iterator |
getErrors()
Gets the errors in this particular parameter. |
Object |
getKey()
Return the name of this parameter. |
ParameterModel |
getModel()
Return the ParameterModel underlying this parameter. |
Object |
getName()
Return the name of this parameter. |
Object |
getValue()
Return the value of this parameter. |
void |
invalidate()
Mark this ParameterData as invalid. |
boolean |
isArray()
Return true if the value is an array of values. |
boolean |
isTransformed()
|
boolean |
isValid()
|
String |
marshal()
Produce a string representation of the current value. |
void |
setInvalid()
Deprecated. Use invalidate() . |
void |
setUntransformed()
Mark this ParameterData as untransformed. |
Object |
setValue(Object value)
Sets the value of this parameter. |
String |
toString()
Convert to a String. |
void |
unmarshal(String encoded)
Set the value to the unmarshalled object represented by encoded . |
void |
validate()
Revalidate this ParameterData. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
equals, hashCode |
Field Detail |
public static final String versionId
Constructor Detail |
public ParameterData(ParameterModel model, Object value)
value
- value of this parameter.Method Detail |
public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public final Object getValue()
getValue
in interface Map.Entry
public final ParameterModel getModel()
public Object getName()
public Object getKey()
getKey
in interface Map.Entry
public final Object setValue(Object value)
setValue
in interface Map.Entry
value
- the value of this parameter
public final String marshal()
o
so that
getValue().equals(o)
.
ParameterModel.marshal(java.lang.Object)
public final void unmarshal(String encoded)
encoded
.
encoded
- the marshalled version of a parameter value.ParameterModel.unmarshal(java.lang.String)
public void addError(String message)
message
- The error message to add to this parameterpublic void addError(GlobalizedMessage message)
Adds an error to this parameter. This method is called by FormData.addError and by ParameterListeners.
message
- GlobalizedMessage representing the error to add to this
parameter.public Iterator getErrors()
public void validate() throws FormProcessException
FormProcessException
public boolean isArray()
public final boolean isValid()
public final boolean isTransformed()
public final void setInvalid()
invalidate()
.
public final void invalidate()
public final void setUntransformed()
public String toString()
this
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |