|
||||||||||
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.ISBN
public class ISBN
Datamodel for the isbn (International Standards Book number) RDC. The isbn RDC is associated with the International Standards Book Number input and a pattern to which the input must confirm. The ISBN is a 10 digit number and should conform to this length.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.taglibs.rdc.core.BaseModel |
---|
BaseModel.ValueInterpreter |
Field Summary | |
---|---|
static int |
ERR_INVALID_ISBN_CODE
A constant for Error Code stating Invalid ISBN Code |
static int |
ERR_NEED_CORRECT_LENGTH_ISBN_CODE
A constant for Error Code stating the incorrect length of ISBN Code |
static int |
ISBN_LENGTH
|
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 | |
---|---|
ISBN()
Sets default values for all data members |
Method Summary | |
---|---|
java.lang.String |
getPattern()
Gets the pattern string |
void |
setPattern(java.lang.String pattern)
Sets the pattern string to which the ISBN 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_ISBN_CODE
public static final int ERR_NEED_CORRECT_LENGTH_ISBN_CODE
public static final int ISBN_LENGTH
Constructor Detail |
---|
public ISBN()
Method Detail |
---|
public void setPattern(java.lang.String pattern)
pattern
- the pattern string to which the ISBN must conformpublic java.lang.String getPattern()
protected 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 |