com.bea.schema.type
Class PrimitiveString
java.lang.Object
com.bea.schema.SOMObject
com.bea.schema.type.SOMType
com.bea.schema.type.SOMElementalType
com.bea.schema.type.PrimitiveString
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DerivedCDATA, DerivedNormalizedString
- public class PrimitiveString
- extends SOMElementalType
The string datatype represents character
strings in XML. The value space of string is the set of
finite-length sequences of characters (as defined in
[XML 1.0 Recommendation (Second Edition)]) that match
the Char production from [XML 1.0 Recommendation (Second
Edition)]. A character is an atomic unit of communication;
it is not further specified except to note that every
character has a corresponding Universal Code Set code point
([ISO 10646], [Unicode] and [Unicode3]), which is an integer.
string has the following constraining facets:
- length
- minLength
- maxLength
- pattern
- enumeration
- whiteSpace
- Author:
- sharpe
- See Also:
- W3C XML Schema String,
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 |
PrimitiveString
public PrimitiveString()
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.
createDefault
public String createDefault(Map restrictions)
- Overrides:
createDefault
in class SOMElementalType
isValid
public boolean isValid(String value,
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:
value
- content to be validatedrestrictions
- a Map of SOMFacet values
- Returns:
- true if the content of value meets the type and external restrictions