com.izforge.izpack.panels
Class StringInputProcessingClient
java.lang.Object
com.izforge.izpack.panels.StringInputProcessingClient
- All Implemented Interfaces:
- ProcessingClient
public class StringInputProcessingClient
- extends java.lang.Object
- implements ProcessingClient
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
private java.lang.String input
validators
private java.util.List<ValidatorContainer> validators
currentValidator
private ValidatorContainer currentValidator
message
private java.lang.String message
StringInputProcessingClient
public StringInputProcessingClient(java.lang.String input,
java.util.List<ValidatorContainer> validators)
getFieldContents
public java.lang.String getFieldContents(int index)
- Description copied from interface:
ProcessingClient
- Returns the contents of the field indicated by
index.
- Specified by:
getFieldContents in interface ProcessingClient
- Parameters:
index - the index of the sub-field from which the contents is requested.
- Returns:
- the contents of the indicated sub-field.
getNumFields
public int getNumFields()
- Description copied from interface:
ProcessingClient
- Returns the number of sub-fields.
- Specified by:
getNumFields in interface ProcessingClient
- Returns:
- the number of sub-fields
getText
public java.lang.String getText()
- Description copied from interface:
ProcessingClient
- Returns the field contents.
- Specified by:
getText in interface ProcessingClient
- Returns:
- the field contents
getValidatorParams
public java.util.Map<java.lang.String,java.lang.String> getValidatorParams()
- Description copied from interface:
ProcessingClient
- Returns the validator parameters, if any. The caller should check for the existence of
validator parameters via the
hasParams() method prior to invoking this method.
- Specified by:
getValidatorParams in interface ProcessingClient
- Returns:
- a java.util.Map containing the validator parameters.
hasParams
public boolean hasParams()
- Specified by:
hasParams in interface ProcessingClient
- Returns:
- true if this instance has any parameters to pass to the Validator instance.
validate
public boolean validate()
getValidationMessage
public java.lang.String getValidationMessage()