com.bea.schema.type
Class PrimitiveDate
java.lang.Object
com.bea.schema.SOMObject
com.bea.schema.type.SOMType
com.bea.schema.type.SOMElementalType
com.bea.schema.type.PrimitiveDate
- All Implemented Interfaces:
- Serializable
- public class PrimitiveDate
- extends SOMElementalType
date represents a calendar date. The value
space of date is the set of Gregorian calendar dates as defined
in § 5.2.1 of [ISO 8601]. Specifically, it is a set of one-day
long, non-periodic instances e.g. lexical 1999-10-26 to represent
the calendar date 1999-10-26, independent of how many hours this day has.
date has the following constraining facets:
- pattern
- enumeration
- whiteSpace
- maxInclusive
- maxExclusive
- minInclusive
- minExclusive
- Since:
- 3/16/2001
- Version:
- 1.0
- Author:
- sharpe
- See Also:
- Serialized Form
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 |
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 |
DATEVALIDATION
public static final String DATEVALIDATION
- See Also:
- Constant Field Values
performDateValidation
public static boolean performDateValidation
PrimitiveDate
public PrimitiveDate()
getID
public String getID()
- Description copied from class:
SOMType
- <xsd:anyType>
- Overrides:
getID
in class SOMType
getAllowedFacets
public Vector getAllowedFacets()
- Description copied from class:
SOMType
- By default, all sub-classes of SOMType do not allow
facets (restrictions). For types that do allow facets,
the getAllowedFacets() method returns an Enumeration
of String objects for the names of allowable facets.
- Overrides:
getAllowedFacets
in class SOMType
- Returns:
- Vector of String objects for the names of allowable facets
or null if facets are not allowed for this type.
isValid
public boolean isValid(String isodate,
Map restrictions)
- 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:
isodate
- content to be validatedrestrictions
- a Map of SOMFacet values
- Returns:
- true if the content of value meets the type and external restrictions