BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xerces.validators.datatype
Class AbstractDatatypeValidator

java.lang.Object
  |
  +--weblogic.apache.xerces.validators.datatype.AbstractDatatypeValidator
Direct Known Subclasses:
BinaryDatatypeValidator, BooleanDatatypeValidator, DecimalDatatypeValidator, DoubleDatatypeValidator, ENTITYDatatypeValidator, FloatDatatypeValidator, IDDatatypeValidator, IDREFDatatypeValidator, ListDatatypeValidator, NOTATIONDatatypeValidator, QNameDatatypeValidator, RecurringDurationDatatypeValidator, StringDatatypeValidator, TimeDurationDatatypeValidator, UnionDatatypeValidator, URIReferenceDatatypeValidator

public abstract class AbstractDatatypeValidator
extends java.lang.Object
implements DatatypeValidator, java.lang.Cloneable


Constructor Summary
AbstractDatatypeValidator()
           
 
Method Summary
abstract  java.lang.Object clone()
           
 int compare(java.lang.String value1, java.lang.String value2)
          Compares content in the Domain value vs.
 java.util.Hashtable getFacets()
          returns the datatype facet if any is set as a Hashtable
 short getWSFacet()
          default value for whiteSpace facet is collapse this function is overwritten in StringDatatypeValidator
abstract  java.lang.Object validate(java.lang.String content, java.lang.Object state)
          Checks that "content" string is valid datatype.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDatatypeValidator

public AbstractDatatypeValidator()
Method Detail

validate

public abstract java.lang.Object validate(java.lang.String content,
                                          java.lang.Object state)
                                   throws InvalidDatatypeValueException
Checks that "content" string is valid datatype. If invalid a Datatype validation exception is thrown.
Specified by:
validate in interface DatatypeValidator

Parameters:
content - A string containing the content to be validated
derivedBylist - Flag which is true when type is derived by list otherwise it it is derived by extension.
Throws:
throws - InvalidDatatypeException if the content is invalid according to the rules for the validators
InvalidDatatypeValueException -  
See Also:
InvalidDatatypeValueException

clone

public abstract java.lang.Object clone()
                                throws java.lang.CloneNotSupportedException

Overrides:
clone in class java.lang.Object

getFacets

public java.util.Hashtable getFacets()
returns the datatype facet if any is set as a Hashtable
Specified by:
getFacets in interface DatatypeValidator

Returns:
 

getWSFacet

public short getWSFacet()
default value for whiteSpace facet is collapse this function is overwritten in StringDatatypeValidator
Specified by:
getWSFacet in interface DatatypeValidator


compare

public int compare(java.lang.String value1,
                   java.lang.String value2)
Compares content in the Domain value vs. lexical value. e.g. If type is a float then 1.0 may be equivalent to 1 even tough both are lexically different.
Specified by:
compare in interface DatatypeValidator

Parameters:
value1 -  
valu2 -  
Returns:
 

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.