|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.schema.SOMObject
com.bea.schema.type.SOMType
com.bea.schema.type.SOMElementalType
com.bea.schema.type.PrimitiveNumber
number represents arbitrary precision decimal numbers. The value space of number is the set of the values i × 10^-n, where i and n are integers such that n >= 0. The order-relation on number is: x < y iff y - x is positive.
[Definition:] The value space of types derived from number with a value for totalDigits of p is the set of values i × 10^-n, where n and i are integers such that p >= n >= 0 and the number of significant decimal digits in i is less than or equal to p.
[Definition:] The value space of types derived from number with a value for fractionDigits of s is the set of values i × 10^-n, where i and n are integers such that 0 <= n <= s.
number has a lexical representation consisting of a finite-length sequence of decimal digits (#x30-#x39) separated by a period as a decimal indicator. If totalDigits is specified, the number of digits must be less than or equal to totalDigits. If fractionDigits is specified, the number of digits following the decimal point must be less than or equal to the fractionDigits. An optional leading sign is allowed. If the sign is omitted, "+" is assumed. Leading and trailing zeroes are optional. If the fractional part is zero, the period and following zero(es) can be omitted. For example: -1.23, 12678967.543233, +100000.00, 210.
number has the following constraining facets:
Field Summary |
Fields inherited from class com.bea.schema.type.SOMType |
ANYURI, BASE64BINARY, BINARY, BOOLEAN, BYTE, CDATA, CENTURY, DATE, DATETIME, DECIMAL, DOUBLE, DURATION, ENTITIES, ENTITY, FLOAT, GDAY, GMONTH, GMONTHDAY, GYEAR, GYEARMONTH, HEXBINARY, ID, IDREF, IDREFS, INT, INTEGER, LANGUAGE, LONG, MONTH, NAME, NCNAME, NEGATIVEINTEGER, NMTOKEN, NMTOKENS, NONNEGATIVEINTEGER, NONPOSITIVEINTEGER, NORMALIZEDSTRING, NOTATION, NUMBER, POSITIVEINTEGER, QNAME, RECURRINGDATE, RECURRINGDAY, RECURRINGDURATION, SHORT, STRING, TIME, TIMEDURATION, TIMEINSTANT, TIMEPERIOD, TOKEN, UNSIGNEDBYTE, UNSIGNEDINT, UNSIGNEDLONG, UNSIGNEDSHORT, URIREFERENCE, YEAR |
Constructor Summary | |
PrimitiveNumber()
Deprecated. |
Method Summary | |
String |
createDefault(Map restrictions)
Deprecated. |
Vector |
getAllowedFacets()
Deprecated. Provides a Vector of String's enumerating the valid Facets for this type. |
String |
getID()
Deprecated. <xsd:anyType> |
boolean |
isValid(String value,
Map restrictions)
Deprecated. validate the content. |
Methods inherited from class com.bea.schema.type.SOMElementalType |
getTypeRestrictions, isSchemaChild |
Methods inherited from class com.bea.schema.type.SOMType |
getType, isElementalType, isUserDefinedType, toXML |
Methods inherited from class com.bea.schema.SOMObject |
addPrefixMapping, getContainmentXPath, getEffectivePrefixMappings, getID_UQ, getParent, getParentName, getParentSchema, getPrefixForTargetNamespace, getPrefixMapping, getTargetNamespace, getURIForPrefix, isCircularReference, msg, msg, removeNamespaceQualifier, removePrefixMapping, setIndent, setParent, setTargetNamespace, toString, toXML, toXML, toXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PrimitiveNumber()
Method Detail |
public String getID()
SOMType
getID
in class SOMType
public Vector getAllowedFacets()
getAllowedFacets
in class SOMType
public String createDefault(Map restrictions)
createDefault
in class SOMElementalType
public boolean isValid(String value, Map restrictions)
SOMElementalType
isValid
in class SOMElementalType
value
- content to be validatedrestrictions
- a Map of SOMFacet values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |