com.sun.msv.datatype.xsd

Class NumberType

public class NumberType extends BuiltinAtomicType implements Comparator

"decimal" type. type of the value object is java.math.BigDecimal. See http://www.w3.org/TR/xmlschema-2/#decimal for the spec. It was once known as "number" type.

Author: Kohsuke KAWAGUCHI

Field Summary
static NumberTypetheInstance
Method Summary
intcompare(Object o1, Object o2)
StringconvertToLexicalValue(Object o, SerializationContext context)
XSDatatypegetBaseType()
ClassgetJavaObjectType()
intisFacetApplicable(String facetName)
static BigDecimalload(String content)
static Stringsave(Object o)
Object_createValue(String content, ValidationContext context)

Field Detail

theInstance

public static final NumberType theInstance

Method Detail

compare

public final int compare(Object o1, Object o2)

convertToLexicalValue

public String convertToLexicalValue(Object o, SerializationContext context)

getBaseType

public final XSDatatype getBaseType()

getJavaObjectType

public Class getJavaObjectType()

isFacetApplicable

public final int isFacetApplicable(String facetName)

load

public static BigDecimal load(String content)

save

public static String save(Object o)

_createValue

public Object _createValue(String content, ValidationContext context)