Class RealType
- java.lang.Object
-
- org.exolab.castor.xml.schema.Structure
-
- org.exolab.castor.xml.schema.Annotated
-
- org.exolab.castor.xml.schema.XMLType
-
- org.exolab.castor.xml.schema.SimpleType
-
- org.exolab.castor.xml.schema.simpletypes.AtomicType
-
- org.exolab.castor.xml.schema.simpletypes.RealType
-
- All Implemented Interfaces:
java.io.Serializable,Referable
public class RealType extends AtomicType
Represents "real numbers" (float, double and user types derived from them) Those numbers are of the form m x 2^e The min and max values for m are accessed with get/setMin/MaxMantissa e are accessed with get/setMin/MaxExponent m and e are not facets as specified by the xmlschema, they are just a way to regroup real and float under the same class.- Version:
- $Revision:
- Author:
- Arnaud Berry
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.exolab.castor.xml.schema.SimpleType
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNION
-
Fields inherited from class org.exolab.castor.xml.schema.XMLType
NULL_ARGUMENT
-
Fields inherited from class org.exolab.castor.xml.schema.Structure
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description RealType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMaxExponent()longgetMaxMantissa()longgetMinExponent()longgetMinMantissa()booleanisNumericType()Indicates whether thisSimpleTypeis a numeric type.voidsetMaxExponent(long maxExponent)voidsetMaxMantissa(long maxMantissa)voidsetMinExponent(long minExponent)voidsetMinMantissa(long minMantissa)-
Methods inherited from class org.exolab.castor.xml.schema.simpletypes.AtomicType
getMax, getMin, getPattern, isMaxInclusive, isMinInclusive
-
Methods inherited from class org.exolab.castor.xml.schema.SimpleType
addFacet, copyFacets, createReference, getBuiltInBaseType, getEffectiveFacets, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getNumberOfFacets, getParent, getReferenceId, getStructureType, getTypeCode, hasFacet, isBuiltInType, isDateTimeType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, validate
-
Methods inherited from class org.exolab.castor.xml.schema.XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, setSchema
-
Methods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
-
-
-
Method Detail
-
setMinMantissa
public void setMinMantissa(long minMantissa)
-
setMaxMantissa
public void setMaxMantissa(long maxMantissa)
-
setMinExponent
public void setMinExponent(long minExponent)
-
setMaxExponent
public void setMaxExponent(long maxExponent)
-
getMinMantissa
public long getMinMantissa()
-
getMaxMantissa
public long getMaxMantissa()
-
getMinExponent
public long getMinExponent()
-
getMaxExponent
public long getMaxExponent()
-
isNumericType
public boolean isNumericType()
Indicates whether thisSimpleTypeis a numeric type.- Overrides:
isNumericTypein classSimpleType- Returns:
- True if this SimpleType is a numeric type
- See Also:
SimpleType.isNumericType()
-
-