Top Description Fields Constructors Methods
com.sun.msv.datatype.xsd

pack-priv abstract Class FloatingNumberType

extends BuiltinAtomicType
implements Comparator
Class Inheritance
All Implemented Interfaces
com.sun.msv.datatype.xsd.Comparator
Known Direct Subclasses
com.sun.msv.datatype.xsd.FloatType, com.sun.msv.datatype.xsd.DoubleType
Imports
org.relaxng.datatype.ValidationContext

base class of FloatType and DoubleType
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected final boolean
public final int
compare(Object lhs, Object rhs)

Implements com.sun.msv.datatype.xsd.Comparator.compare.

compare to value types and decides its order relation
protected static boolean
public final int
isFacetApplicable(String facetName)

Implements com.sun.msv.datatype.xsd.XSDatatype.isFacetApplicable.

returns if the specified facet is applicable to this datatype.
Inherited from com.sun.msv.datatype.xsd.BuiltinAtomicType:
displayNamegetVarietyreadResolve

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.BuiltinAtomicType.serialVersionUID.

Constructor Detail

FloatingNumberTypeback to summary
protected FloatingNumberType(String typeName)

Method Detail

checkFormatback to summary
protected final boolean checkFormat(String lexicalValue, ValidationContext context)

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl.checkFormat.

compareback to summary
public final int compare(Object lhs, Object rhs)

Implements com.sun.msv.datatype.xsd.Comparator.compare.

Doc from com.sun.msv.datatype.xsd.Comparator.compare.

compare to value types and decides its order relation

isDigitOrPeriodOrSignback to summary
protected static boolean isDigitOrPeriodOrSign(char ch)
isFacetApplicableback to summary
public final int isFacetApplicable(String facetName)

Implements com.sun.msv.datatype.xsd.XSDatatype.isFacetApplicable.

Doc from com.sun.msv.datatype.xsd.XSDatatype.isFacetApplicable.

returns if the specified facet is applicable to this datatype.

Returns:int

APPLICABLE
if the facet is applicable
FIXED
if the facet is already fixed (that is,not applicable)
NOT_ALLOWED
if the facet is not applicable to this datatype at all. this value is also returned for unknown facets.