Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.schema.type
Class PrimitiveNumber

    java.lang.Object
      com.bea.schema.SOMObject
          com.bea.schema.type.SOMType
              com.bea.schema.type.SOMElementalType
                  com.bea.schema.type.PrimitiveNumber

All Implemented Interfaces:
  Serializable

Deprecated. 5/2/2001

public class PrimitiveNumber
extends SOMElementalType

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:

- totalDigits
- fractionDigits
- pattern
- whiteSpace
- enumeration
- maxInclusive
- maxExclusive
- minInclusive
- minExclusive

Since:
  3/16/2001
Version:
  1.0
Author:
  sharpe
See Also:
  W3C XML Schema number, Serialized Form

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

### PrimitiveNumber

    public PrimitiveNumber()

  Deprecated.

Method Detail

### getID

    public String getID()

  Deprecated.
  Description copied from class: `SOMType`
  <xsd:anyType>

  Overrides:
    `getID` in class `SOMType`

### getAllowedFacets

    public Vector getAllowedFacets()

  Deprecated.
  Provides a Vector of String's enumerating the valid Facets for this type.

  Overrides:
    `getAllowedFacets` in class `SOMType`
  Returns:
    vector of String(s)

### createDefault

    public String createDefault(Map restrictions)

  Deprecated.
  Overrides:
    `createDefault` in class `SOMElementalType`

### isValid

    public boolean isValid(String value,
                           Map restrictions)

  Deprecated.
  Description copied from class: `SOMElementalType`
  validate the content. External restrictions override the internal type restrictions to attempt to validate the content of value.

  Overrides:
    `isValid` in class `SOMElementalType`
  Parameters:
    `value` - content to be validated
    `restrictions` - a Map of SOMFacet values
  Returns:
    true if the content of value meets the type and external restrictions

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD