|
||||||||||||
| 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.Time
Datamodel for the time RDC. The time RDC will be associated with the time input, and the maximum and minimum times within which the time input must lie.
| Nested Class Summary |
|---|
| Nested classes inherited from class org.apache.taglibs.rdc.core.BaseModel |
|---|
BaseModel.ValueInterpreter |
| Field Summary | |
|---|---|
static int |
ERR_INVALID_TIME
A constant for Error Code stating Invalid time |
static int |
ERR_NEED_EARLIER_TIME
A constant for Error Code stating the time entered is later than allowed |
static int |
ERR_NEED_LATER_TIME
A constant for Error Code stating the time entered is earlier 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 | |
|---|---|
Time()
Sets default values for all data members |
|
| Method Summary | |
|---|---|
protected java.lang.String |
calculateCanonicalizedValue(java.lang.Object time)
Builds a time string to be used for output into prompts etc. |
protected java.lang.Object |
canonicalize(java.lang.Object input,
boolean isAttribute)
Converts the min and max time strings to java.util.Date objects |
java.lang.String |
getMaxTime()
Gets the maximum allowed time |
java.lang.String |
getMinTime()
Gets the minimum allowed time |
void |
setMaxTime(java.lang.String maxTime)
Sets maximum allowed time |
void |
setMinTime(java.lang.String minTime)
Sets minimum allowed time |
void |
setValue(java.lang.Object value)
Sets the value of time. |
protected java.lang.Boolean |
validate(java.lang.Object newValue,
boolean setErrorCode)
Validates the received input against validation 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_TIME
public static final int ERR_NEED_EARLIER_TIME
public static final int ERR_NEED_LATER_TIME
| Constructor Detail |
public Time()
| Method Detail |
public java.lang.String getMaxTime()
public void setMaxTime(java.lang.String maxTime)
maxTime - the maximum allowed timepublic java.lang.String getMinTime()
public void setMinTime(java.lang.String minTime)
minTime - the minimum allowed timepublic void setValue(java.lang.Object value)
setValue in class BaseModelvalue - the value of time returned by grammar (hhmma)
5 P M will be 0500pBaseModel.setValue(Object)
protected java.lang.Object canonicalize(java.lang.Object input,
boolean isAttribute)
canonicalize in class BaseModelinput - the value
protected java.lang.Boolean validate(java.lang.Object newValue,
boolean setErrorCode)
validate in class BaseModelprotected java.lang.String calculateCanonicalizedValue(java.lang.Object time)
calculateCanonicalizedValue in class BaseModel
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||