|
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.ByteLengthValidater
Validater for validating the byte length of strings.
If the specified encoding is not an encoding specifically supported by this class, then no client-side validation will take place, but server-side validation will still function.
Fields inherited from interface oracle.cabo.ui.validate.ServerValidater |
NO_CONTENT_ERROR_OFFSET, UNKNOWN_ERROR_OFFSET |
Constructor Summary | |
ByteLengthValidater(int maxBytes,
java.lang.String encoding)
Creates a ByteLengthValidater. |
Method Summary | |
java.lang.String |
formatObject(java.lang.Object value,
LocaleContext localeContext)
Formats the value into a String in a potentially Locale-specific manner. |
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 |
getValidationFormat(RenderingContext context,
UINode node)
|
static boolean |
isSingleByteEncoding(java.lang.String encoding)
Returns true if the given character set encoding is a single-byte encoding. |
java.lang.Object |
parseString(java.lang.String value,
LocaleContext localeContext)
Returns the value, unless it is too long, in which case a ParseException is thrown. |
java.text.ParseException[] |
validate(RenderingContext context,
java.lang.String value)
|
Methods inherited from class oracle.cabo.ui.validate.BaseClientValidater |
getLookAndFeelString, getValidation, getWMLValidation, logError, writeDependencies |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteLengthValidater(int maxBytes, java.lang.String encoding) throws java.io.UnsupportedEncodingException
maxBytes
- the maximum number of bytes allowed when
the string is encoded as UTF-8.encoding
- the Java character set encoding. This
must be an encoding supported by Java. If it is not an
encoding specifically supported by this class, then no client-side
validation will take place, but server-side validation will
still function.java.io.UnsupportedEncodingException
- if the encoding is
not an encoding supported by Java.Method Detail |
public static boolean isSingleByteEncoding(java.lang.String encoding)
public java.text.ParseException[] validate(RenderingContext context, java.lang.String value)
public java.lang.String formatObject(java.lang.Object value, LocaleContext localeContext)
Formatter
formatObject
in interface Formatter
public java.lang.Object parseString(java.lang.String value, LocaleContext localeContext) throws java.text.ParseException
parseString
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()
BaseClientValidater
getHTMLLibReference
in class BaseClientValidater
|
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 |