oracle.cabo.ui.validate
Class BaseClientValidater
java.lang.Object
|
+--oracle.cabo.ui.validate.BaseClientValidater
- All Implemented Interfaces:
- ClientValidater, ServerValidater
- Direct Known Subclasses:
- ByteLengthValidater, DateValidater, DecimalValidater, NonEmptyValidater, RegExpValidater, WMLPatternValidater
- public abstract class BaseClientValidater
- extends java.lang.Object
- implements ClientValidater
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseClientValidater
public BaseClientValidater()
writeDependencies
public void writeDependencies(RenderingContext context,
UINode node)
throws java.io.IOException
- Opportunity for the CLientValidater to write any of its dependencies
to the output. For HTML, this will typically be imports of
JavaScript libraries.
- Specified by:
writeDependencies
in interface ClientValidater
getValidation
public java.lang.Object getValidation(RenderingContext context,
UINode node)
- Returns the Object to use for client validation for the current
context and using the client value specified in the
valueIndentifier.
null
will be returned if for any
reason, the Validater can not validate correctly in the target
environment. An example of this are Validaters that do not
have WML implementations when generating for a WML client.
- Specified by:
getValidation
in interface ClientValidater
getValidationFormat
public java.lang.String getValidationFormat(RenderingContext context,
UINode node)
- Specified by:
getValidationFormat
in interface ClientValidater
getLookAndFeelString
protected final java.lang.String getLookAndFeelString(RenderingContext context,
java.lang.String key)
- Convenience method for retrieving a String from the LookAndFeel.
logError
protected static void logError(RenderingContext context,
java.lang.Throwable t)
- Logs a throwable to the context's error log.
getHTMLValidation
protected java.lang.String getHTMLValidation(RenderingContext context)
getWMLValidation
protected java.lang.String getWMLValidation(RenderingContext context)
getHTMLLibReference
protected java.lang.String getHTMLLibReference()
- Returns the name of the Javascript code that this validator requires.
Copyright © 2002,2003, Oracle. All Rights Reserved.