oracle.cabo.ui.validate
Class NonEmptyValidater

java.lang.Object
  |
  +--oracle.cabo.ui.validate.BaseClientValidater
        |
        +--oracle.cabo.ui.validate.NonEmptyValidater
All Implemented Interfaces:
ClientValidater, ServerValidater

public class NonEmptyValidater
extends BaseClientValidater

Validater that validates that the value exists and is non-empty. While this class can be used by clients, nearly all developers will find it much, much more convenient to use the "required" attribute on the relevant UINode types instead of this class.

See Also:
TextInputBean.setRequired(java.lang.String)

Fields inherited from interface oracle.cabo.ui.validate.ServerValidater
NO_CONTENT_ERROR_OFFSET, UNKNOWN_ERROR_OFFSET
 
Constructor Summary
NonEmptyValidater()
           
 
Method Summary
protected  java.lang.String getHTMLValidation(RenderingContext context)
           
static NonEmptyValidater getNonEmptyValidater()
           
 java.lang.String getValidationFormat(RenderingContext context, UINode node)
           
 java.text.ParseException[] validate(RenderingContext context, java.lang.String value)
           
 
Methods inherited from class oracle.cabo.ui.validate.BaseClientValidater
getHTMLLibReference, 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

NonEmptyValidater

public NonEmptyValidater()
Method Detail

getNonEmptyValidater

public static NonEmptyValidater getNonEmptyValidater()

validate

public java.text.ParseException[] validate(RenderingContext context,
                                           java.lang.String value)

getValidationFormat

public java.lang.String getValidationFormat(RenderingContext context,
                                            UINode node)
Overrides:
getValidationFormat in class BaseClientValidater

getHTMLValidation

protected java.lang.String getHTMLValidation(RenderingContext context)
Overrides:
getHTMLValidation in class BaseClientValidater