FloatDVpublic class FloatDV extends TypeValidator Represent the schema type "float" |
Methods Summary |
---|
public int | compare(java.lang.Object value1, java.lang.Object value2)
return ((XFloat)value1).compareTo((XFloat)value2);
| public java.lang.Object | getActualValue(java.lang.String content, com.sun.org.apache.xerces.internal.impl.dv.ValidationContext context)
try{
return new XFloat(content);
} catch (NumberFormatException ex){
throw new InvalidDatatypeValueException("cvc-datatype-valid.1.2.1", new Object[]{content, "float"});
}
| public short | getAllowedFacets()
return ( XSSimpleTypeDecl.FACET_PATTERN | XSSimpleTypeDecl.FACET_WHITESPACE | XSSimpleTypeDecl.FACET_ENUMERATION |XSSimpleTypeDecl.FACET_MAXINCLUSIVE |XSSimpleTypeDecl.FACET_MININCLUSIVE | XSSimpleTypeDecl.FACET_MAXEXCLUSIVE | XSSimpleTypeDecl.FACET_MINEXCLUSIVE );
| public boolean | isIdentical(java.lang.Object value1, java.lang.Object value2)
if (value2 instanceof XFloat) {
return ((XFloat)value1).isIdentical((XFloat)value2);
}
return false;
|
|