|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.validate.BaseClientValidater | +--oracle.cabo.ui.validate.DateValidater
Validater for validating dates and times using a pattern for a Simple Date pattern or date and time style constants of the DateFormat.
DateFormat
,
Field Summary | |
static int |
FULL
Constant for full style pattern. |
static int |
LONG
Constant for long style pattern. |
static int |
MEDIUM
Constant for medium style pattern. |
static int |
NO_STYLE
Style flag indicating that no style should be used for this paramter, |
static int |
SHORT
Constant for short style pattern. |
static int |
SHORTISH
SHORT pattern with no year abbreviation. |
Fields inherited from interface oracle.cabo.ui.validate.ServerValidater |
NO_CONTENT_ERROR_OFFSET, UNKNOWN_ERROR_OFFSET |
Constructor Summary | |
DateValidater()
Creates a DateValidator for short times and days. |
|
DateValidater(int timeStyle)
Creates a DateValidator with the specified DateFormat time style. |
|
DateValidater(int timeStyle,
int dateStyle)
Creates a DateValidator with the specified DateFormat time and date styles. |
|
DateValidater(java.lang.String pattern)
Creates a DateValidator with the specified SimpleDateFormat format pattern. |
|
DateValidater(java.lang.String pattern,
java.lang.String secondaryPattern)
Creates a DateValidator with the specified SimpleDateFormat format pattern and a secondary pattern. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
formatObject(java.lang.Object data,
LocaleContext localeContext)
Formats the value into a String in a potentially Locale-specific manner. |
int |
getColumns()
Deprecated. in favor of getColumns(LocaleContext localeContext) |
int |
getColumns(LocaleContext localeContext)
Returns the number of columns of text a field should have to fully display the contents of a valid string. |
int |
getDateStyle()
|
protected java.lang.String |
getHTMLLibReference()
Returns the name of the Javascript code that this validator requires. |
protected java.lang.String |
getHTMLValidation(RenderingContext context)
|
java.lang.String |
getPattern()
|
int |
getTimeStyle()
|
java.lang.String |
getValidationFormat(RenderingContext context,
UINode node)
|
int |
hashCode()
|
java.lang.Object |
parseString(java.lang.String value,
LocaleContext localeContext)
Returns the value as a Date. |
java.text.ParseException[] |
validate(RenderingContext context,
java.lang.String value)
|
void |
writeDependencies(RenderingContext context,
UINode node)
Opportunity for the CLientValidater to write any of its dependencies to the output. |
Methods inherited from class oracle.cabo.ui.validate.BaseClientValidater |
getLookAndFeelString, getValidation, getWMLValidation, logError |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NO_STYLE
public static final int FULL
public static final int LONG
public static final int MEDIUM
public static final int SHORT
public static final int SHORTISH
Constructor Detail |
public DateValidater()
public DateValidater(java.lang.String pattern)
public DateValidater(java.lang.String pattern, java.lang.String secondaryPattern)
pattern
- a primary pattern; this will be used to format
stringssecondaryPattern
- a second pattern, which will be used
as a second attempt to parse a string, but is never used for
formatting strings.public DateValidater(int timeStyle)
public DateValidater(int timeStyle, int dateStyle)
NO_STYLE
to have one of the
styles ignored.Method Detail |
public void writeDependencies(RenderingContext context, UINode node) throws java.io.IOException
BaseClientValidater
writeDependencies
in class BaseClientValidater
public final java.lang.String getPattern()
public int getColumns(LocaleContext localeContext)
public int getColumns()
public final int getTimeStyle()
public final int getDateStyle()
public java.text.ParseException[] validate(RenderingContext context, java.lang.String value)
public java.lang.Object parseString(java.lang.String value, LocaleContext localeContext) throws java.text.ParseException
parseString
in interface Formatter
public java.lang.String formatObject(java.lang.Object data, LocaleContext localeContext)
Formatter
formatObject
in interface Formatter
public java.lang.String getValidationFormat(RenderingContext context, UINode node)
getValidationFormat
in class BaseClientValidater
protected java.lang.String getHTMLValidation(RenderingContext context)
getHTMLValidation
in class BaseClientValidater
protected java.lang.String getHTMLLibReference()
getHTMLLibReference
in class BaseClientValidater
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |