|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.validators.MultiValidator
public class MultiValidator
Most controls only allow that one pattern be set on the control at one time. This 'validator' concatenates all of the validators supplied.
Constructor Summary | |
---|---|
MultiValidator()
Creates a new instance of this validator. |
Method Summary | |
---|---|
void |
add(IValidator validator)
Adds a validator to the list of validators. |
IValidator |
get(int index)
Returns the validator at the given index. |
boolean |
isBeingValid(java.lang.String value)
Determines if the current value is valid. |
boolean |
isValid(java.lang.String value,
Messages messages)
Determines if the overall input is valid. |
int |
size()
Returns the number of validators added to this validator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiValidator()
Method Detail |
---|
public int size()
public IValidator get(int index)
index
- the index of the required validator
java.lang.IndexOutOfBoundsException
- if index is out of range (index < 0 || index >= size()).public void add(IValidator validator)
validator
- public boolean isBeingValid(java.lang.String value)
IValidator
isBeingValid
in interface IValidator
value
- the string value which has been entered by the end user and requires validation.
public boolean isValid(java.lang.String value, Messages messages)
IValidator
messages
bundle. Any messages added will be displayed to the end user in the form of a messagebox.
isValid
in interface IValidator
value
- the string value which has been entered by the end user and requires validation.messages
- a bundle of messages to be displayed to the end user in the event that validation fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |