Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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


Fields inherited from interface oracle.cabo.ui.validate.ServerValidater
NO_CONTENT_ERROR_OFFSET, UNKNOWN_ERROR_OFFSET
 
Constructor Summary
BaseClientValidater()
           
 
Method Summary
protected  java.lang.String getHTMLLibReference()
          Returns the name of the Javascript code that this validator requires.
protected  java.lang.String getHTMLValidation(RenderingContext context)
           
protected  java.lang.String getLookAndFeelString(RenderingContext context, java.lang.String key)
          Convenience method for retrieving a String from the LookAndFeel.
 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.
 java.lang.String getValidationFormat(RenderingContext context, UINode node)
           
protected  java.lang.String getWMLValidation(RenderingContext context)
           
protected static void logError(RenderingContext context, java.lang.Throwable t)
          Logs a throwable to the context's error log.
 void writeDependencies(RenderingContext context, UINode node)
          Opportunity for the CLientValidater to write any of its dependencies to the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.cabo.ui.validate.ServerValidater
validate
 

Constructor Detail

BaseClientValidater

public BaseClientValidater()
Method Detail

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.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.