org.apache.xerces.impl.dv.xs
Class NOTATIONDatatypeValidator

java.lang.Object
  |
  +--org.apache.xerces.impl.dv.xs.AbstractDatatypeValidator
        |
        +--org.apache.xerces.impl.dv.xs.AbstractStringValidator
              |
              +--org.apache.xerces.impl.dv.xs.NOTATIONDatatypeValidator

public class NOTATIONDatatypeValidator
extends AbstractStringValidator

NOTATIONValidator defines the interface that data type validators must obey. These validators can be supplied by the application writer and may be useful as standalone code as well as plugins to the validator architecture.

Version:
$Id: NOTATIONDatatypeValidator.java,v 1.1 2001/10/25 20:35:58 elena Exp $
Author:
Elena Litani, Jeffrey Rodriguez-, Mark Swinkles - List Validation refactoring

Fields inherited from class org.apache.xerces.impl.dv.xs.AbstractStringValidator
FACET_SPECIAL_TOKEN, fEnumeration, fLength, fMaxLength, fMinLength, fTokenType, SPECIAL_TOKEN_ENTITY, SPECIAL_TOKEN_IDNAME, SPECIAL_TOKEN_IDNCNAME, SPECIAL_TOKEN_IDREFNAME, SPECIAL_TOKEN_IDREFNCNAME, SPECIAL_TOKEN_NAME, SPECIAL_TOKEN_NCNAME, SPECIAL_TOKEN_NMTOKEN, SPECIAL_TOKEN_NONE
 
Fields inherited from class org.apache.xerces.impl.dv.xs.AbstractDatatypeValidator
fBaseValidator, fErrorReporter, fFacetsDefined, fFinalSet, fFlags, fLocale, fLocalName, fMessageProvider, fPattern, fRegex
 
Constructor Summary
NOTATIONDatatypeValidator()
           
NOTATIONDatatypeValidator(DatatypeValidator base, java.util.Hashtable facets, boolean derivedByList, XMLErrorReporter reporter)
           
 
Method Summary
protected  void assignAdditionalFacets(java.lang.String key, java.util.Hashtable facets)
           
protected  void checkContent(java.lang.String content, ValidationContext state, boolean asBase)
           
protected  void checkValueSpace(java.lang.String content)
           
 int compare(java.lang.String content1, java.lang.String content2)
          Compares content in the Domain value vs.
 java.lang.Object validate(java.lang.String content, ValidationContext state)
          validate that a string is a W3C string type
 
Methods inherited from class org.apache.xerces.impl.dv.xs.AbstractStringValidator
checkBaseFacetConstraints, clone, derivationList, getLength, hasEnumeration, inheritAdditionalFacets, setTokenType, validateToken
 
Methods inherited from class org.apache.xerces.impl.dv.xs.AbstractDatatypeValidator
getBaseValidator, getErrorString, getFinalSet, getWSFacet, getXSType, getXSTypeName, setFinalSet, setLocale
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOTATIONDatatypeValidator

public NOTATIONDatatypeValidator()

NOTATIONDatatypeValidator

public NOTATIONDatatypeValidator(DatatypeValidator base,
                                 java.util.Hashtable facets,
                                 boolean derivedByList,
                                 XMLErrorReporter reporter)
Method Detail

assignAdditionalFacets

protected void assignAdditionalFacets(java.lang.String key,
                                      java.util.Hashtable facets)
                               throws InvalidDatatypeFacetException
Overrides:
assignAdditionalFacets in class AbstractStringValidator

validate

public java.lang.Object validate(java.lang.String content,
                                 ValidationContext state)
                          throws InvalidDatatypeValueException
Description copied from class: AbstractStringValidator
validate that a string is a W3C string type
Overrides:
validate in class AbstractStringValidator
Tags copied from class: AbstractStringValidator
Parameters:
content - A string containing the content to be validated
list -  
Throws:
throws - InvalidDatatypeException if the content is not a W3C string type
InvalidDatatypeValueException -  

checkContent

protected void checkContent(java.lang.String content,
                            ValidationContext state,
                            boolean asBase)
                     throws InvalidDatatypeValueException
Overrides:
checkContent in class AbstractStringValidator

checkValueSpace

protected void checkValueSpace(java.lang.String content)
                        throws InvalidDatatypeValueException
Overrides:
checkValueSpace in class AbstractStringValidator

compare

public int compare(java.lang.String content1,
                   java.lang.String content2)
Description copied from interface: DatatypeValidator
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.
Tags copied from interface: DatatypeValidator
Parameters:
value1 -  
valu2 -  
Returns:
 


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.