org.apache.xerces.validators.datatype
Class HexBinaryDatatypeValidator

java.lang.Object
  |
  +--org.apache.xerces.validators.datatype.AbstractDatatypeValidator
        |
        +--org.apache.xerces.validators.datatype.AbstractStringValidator
              |
              +--org.apache.xerces.validators.datatype.HexBinaryDatatypeValidator
All Implemented Interfaces:
java.lang.Cloneable, DatatypeValidator

public class HexBinaryDatatypeValidator
extends AbstractStringValidator

HexBinaryValidator validates that XML content is a W3C string type.

Version:
$Id: HexBinaryDatatypeValidator.java 317407 2001-07-31 14:40:59Z neilg $
Author:
Ted Leung, Kito D. Mann, Virtua Communications Corp., Jeffrey Rodriguez, Mark Swinkles - List Validation refactoring

Fields inherited from class org.apache.xerces.validators.datatype.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.validators.datatype.AbstractDatatypeValidator
fBaseValidator, fFacetsDefined, fFlags, fLocale, fMessageProvider, fPattern, fRegex
 
Fields inherited from interface org.apache.xerces.validators.datatype.DatatypeValidator
COLLAPSE, FACET_DURATION, FACET_ENCODING, FACET_ENUMERATION, FACET_FIXED, FACET_FRACTIONDIGITS, FACET_LENGTH, FACET_MAXEXCLUSIVE, FACET_MAXINCLUSIVE, FACET_MAXLENGTH, FACET_MINEXCLUSIVE, FACET_MININCLUSIVE, FACET_MINLENGTH, FACET_PATTERN, FACET_PERIOD, FACET_TOTALDIGITS, FACET_WHITESPACE, PRESERVE, REPLACE
 
Constructor Summary
HexBinaryDatatypeValidator()
           
HexBinaryDatatypeValidator(DatatypeValidator base, java.util.Hashtable facets, boolean derivedByList)
           
 
Method Summary
protected  void assignAdditionalFacets(java.lang.String key, java.util.Hashtable facets)
           
protected  void checkValueSpace(java.lang.String content)
           
 java.lang.Object clone()
          Returns a copy of this object.
 int compare(java.lang.String value1, java.lang.String value2)
          Compares content in the Domain value vs.
protected  int getLength(java.lang.String content)
           
 
Methods inherited from class org.apache.xerces.validators.datatype.AbstractStringValidator
checkBaseFacetConstraints, derivationList, inheritAdditionalFacets, setTokenType, validate, validateToken
 
Methods inherited from class org.apache.xerces.validators.datatype.AbstractDatatypeValidator
getBaseValidator, getErrorString, getWSFacet, setLocale
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexBinaryDatatypeValidator

public HexBinaryDatatypeValidator()
                           throws InvalidDatatypeFacetException

HexBinaryDatatypeValidator

public HexBinaryDatatypeValidator(DatatypeValidator base,
                                  java.util.Hashtable facets,
                                  boolean derivedByList)
                           throws InvalidDatatypeFacetException
Method Detail

assignAdditionalFacets

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

checkValueSpace

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

getLength

protected int getLength(java.lang.String content)
Overrides:
getLength in class AbstractStringValidator

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: AbstractStringValidator
Returns a copy of this object.
Overrides:
clone in class AbstractStringValidator
Following copied from class: org.apache.xerces.validators.datatype.AbstractStringValidator
Returns:
 
Throws:
java.lang.CloneNotSupportedException -  

compare

public int compare(java.lang.String value1,
                   java.lang.String value2)
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.
Following copied from interface: org.apache.xerces.validators.datatype.DatatypeValidator
Parameters:
value1 -  
valu2 -  
Returns:
 


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