|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.taglibs.rdc.core.BaseModel org.apache.taglibs.rdc.Alphanum
public class Alphanum
Datamodel for the alphanumeric RDC. The alphanum RDC will be associated with the alphanumeric input, the maximum and minimum length within which the input's length must lie, and a pattern to which the input must conform.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.taglibs.rdc.core.BaseModel |
---|
BaseModel.ValueInterpreter |
Field Summary | |
---|---|
static int |
ERR_INVALID_ALPHANUM
A constant for Error Code stating Invalid aphanum |
static int |
ERR_NEED_LONGER_ALPHANUM
A constant for Error Code stating the alphanum entered is smaller than allowed |
static int |
ERR_NEED_SHORTER_ALPHANUM
A constant for Error Code stating the alphanum entered is larger than allowed |
Fields inherited from class org.apache.taglibs.rdc.core.BaseModel |
---|
ambiguousValues, candidates, canonicalizedValue, className, configuration, confirm, confirmed, DEFAULT_INITIAL_GRAMMAR_NAME, DEFAULT_MIN_CONFIDENCE, DEFAULT_NUM_N_BEST, echo, ERR_NO_DEFAULT, ERR_NONE, errorCode, exitStatus, grammars, id, initial, initialGrammar, interpretation, isAmbiguous, isValid, locale, maxNoInput, maxNoMatch, minConfidence, numNBest, paramsMap, PROPERTY_INITIAL_GRAMMAR, rdcLocale, rdcResourceBundle, skipSubmit, state, subdialog, submit, utterance, value |
Constructor Summary | |
---|---|
Alphanum()
Sets default values for all data members |
Method Summary | |
---|---|
java.lang.String |
getMaxLength()
Gets the maximum allowed length of alphanum |
java.lang.String |
getMinLength()
Gets the minimum allowed length of alphanum |
java.lang.String |
getPattern()
Gets the pattern string |
void |
setMaxLength(java.lang.String maxLength)
Sets the maximum allowed length of input |
void |
setMinLength(java.lang.String minLength)
Sets the minimum allowed length of input |
void |
setPattern(java.lang.String pattern)
Sets the pattern string to which the input must conform |
protected java.lang.Boolean |
validate(java.lang.Object newValue,
boolean setErrorCode)
Validates the input against the given constraints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERR_INVALID_ALPHANUM
public static final int ERR_NEED_SHORTER_ALPHANUM
public static final int ERR_NEED_LONGER_ALPHANUM
Constructor Detail |
---|
public Alphanum()
Method Detail |
---|
public java.lang.String getMaxLength()
public void setMaxLength(java.lang.String maxLength)
maxLength
- the maximum allowed length of inputpublic java.lang.String getMinLength()
public void setMinLength(java.lang.String minLength)
minLength
- the minimum allowed length of inputpublic java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- the pattern string to which the input must conformprotected java.lang.Boolean validate(java.lang.Object newValue, boolean setErrorCode)
validate
in class BaseModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |