| de.odysseus.calyxo.forms.FormInputResult
All known Subclasses: de.odysseus.calyxo.forms.impl.InputResult, de.odysseus.calyxo.forms.impl.IgnoredFormInputResult,
format | public Object format(HttpServletRequest request)(Code) | | Format property.
The formatted value answered here is used to be presented to
the user again. Usually, this is the user input itself for invalid
values and the user input in "canonical form" for valid inputs.
Parameters: request - the request we process if this is an array input, an array of strings; a string else |
format | public String format(HttpServletRequest request, int index)(Code) | | Format indexed property.
The formatted value answered here is used to be presented to
the user again. Usually, this is the user input itself for invalid
values and the user input in "canonical form" for valid inputs.
Parameters: request - the request we process Parameters: index - formatted value |
getFirstMessage | public Message getFirstMessage()(Code) | | Get error message.
For array inputs, return the first (smallest index) message.
|
getFormInput | public FormInput getFormInput()(Code) | | Get corresponding form input
|
getInputValue | public Object getInputValue()(Code) | | Get the input value.
For array inputs, this method returns a string array.
For scalar inputs, this method returns a string.
|
getInputValue | public String getInputValue(int index)(Code) | | Get the input value for specified index.
The result is undefined for invalid results.
For scalar inputs, this method returns the input value for
index 0 and null otherwise.
|
getLastMessages | public Iterator getLastMessages()(Code) | | Get
Message second to last error messages.
For scalar inputs, return an empty iterator.
|
getMessage | public Message getMessage(int index)(Code) | | Get error message for specified index.
If validation for the specified index succeeded, return null .
|
getProperty | public String getProperty()(Code) | | Get corresponding form data property, if not null
|
getSize | public int getSize()(Code) | | Answer array size for array inputs, 1 for scalar inputs
|
getValue | public Object getValue()(Code) | | Get the validated value.
The result is undefined for invalid results.
For array inputs, this method returns an array.
|
getValue | public Object getValue(int index)(Code) | | Get the validated value for specified index.
The result is undefined for invalid results.
For scalar inputs, this method returns the validated value for
index 0 and null otherwise.
|
isIgnored | public boolean isIgnored()(Code) | | Anwer true iff the input corrensponding to this input result has
been "ignored". If so, the input has not been validated at all.
|
isRelaxed | public boolean isRelaxed()(Code) | | Answer true iff this input result should be treated "relaxed".
No visual feedback should be given to the user, if a relaxed
field is invalid.
|
isValid | public boolean isValid()(Code) | | true iff validation succeeded.
For array-inputs, all inputs must be valid
|
isValid | public boolean isValid(int index)(Code) | | true iff validation succeeded for specified index
|
populate | public void populate(FormData bean) throws Exception(Code) | | Populate forma data.
Parameters: bean - the form data to be populated throws: Exception - if property access fails |
|
|