org.apache.xerces.impl.dv.xs
Class FloatDatatypeValidator
java.lang.Object
|
+--org.apache.xerces.impl.dv.xs.AbstractDatatypeValidator
|
+--org.apache.xerces.impl.dv.xs.AbstractNumericFacetValidator
|
+--org.apache.xerces.impl.dv.xs.AbstractNumericValidator
|
+--org.apache.xerces.impl.dv.xs.FloatDatatypeValidator
- public class FloatDatatypeValidator
- extends AbstractNumericValidator
- Version:
- $Id: FloatDatatypeValidator.java,v 1.1 2001/10/25 20:35:58 elena Exp $
- Author:
- Elena Litani, Ted Leung, Jeffrey Rodriguez, Mark Swinkles - List Validation refactoring
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FloatDatatypeValidator
public FloatDatatypeValidator()
FloatDatatypeValidator
public FloatDatatypeValidator(DatatypeValidator base,
java.util.Hashtable facets,
boolean derivedByList,
XMLErrorReporter reporter)
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.
- Tags copied from interface: DatatypeValidator
- Parameters:
value1
- valu2
- - Returns:
-
assignAdditionalFacets
protected void assignAdditionalFacets(java.lang.String key,
java.util.Hashtable facets)
throws InvalidDatatypeFacetException
- Overrides:
- assignAdditionalFacets in class AbstractNumericFacetValidator
compareValues
protected int compareValues(java.lang.Object value1,
java.lang.Object value2)
- Overrides:
- compareValues in class AbstractNumericFacetValidator
setMaxInclusive
protected void setMaxInclusive(java.lang.String value)
- Overrides:
- setMaxInclusive in class AbstractNumericFacetValidator
setMinInclusive
protected void setMinInclusive(java.lang.String value)
- Overrides:
- setMinInclusive in class AbstractNumericFacetValidator
setMaxExclusive
protected void setMaxExclusive(java.lang.String value)
- Overrides:
- setMaxExclusive in class AbstractNumericFacetValidator
setMinExclusive
protected void setMinExclusive(java.lang.String value)
- Overrides:
- setMinExclusive in class AbstractNumericFacetValidator
setEnumeration
protected void setEnumeration(java.util.Vector enumeration)
throws InvalidDatatypeValueException
- Overrides:
- setEnumeration in class AbstractNumericFacetValidator
getMaxInclusive
protected java.lang.String getMaxInclusive(boolean isBase)
- Overrides:
- getMaxInclusive in class AbstractNumericFacetValidator
getMinInclusive
protected java.lang.String getMinInclusive(boolean isBase)
- Overrides:
- getMinInclusive in class AbstractNumericFacetValidator
getMaxExclusive
protected java.lang.String getMaxExclusive(boolean isBase)
- Overrides:
- getMaxExclusive in class AbstractNumericFacetValidator
getMinExclusive
protected java.lang.String getMinExclusive(boolean isBase)
- Overrides:
- getMinExclusive in class AbstractNumericFacetValidator
checkContent
protected void checkContent(java.lang.String content,
ValidationContext state,
java.util.Vector enumeration,
boolean asBase)
throws InvalidDatatypeValueException
- validate if the content is valid against base datatype and facets (if any)
this function might be called directly from UnionDatatype or ListDatatype
- Overrides:
- checkContent in class AbstractNumericValidator
- Parameters:
content
- A string containing the content to be validatedenumeration
- A vector with enumeration strings- Throws:
- throws - InvalidDatatypeException if the content is
is not a W3C float type;
- throws - InvalidDatatypeFacetException if enumeration is not float
getInvalidFacetMsg
protected int getInvalidFacetMsg()
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.