FileDocCategorySizeDatePackage
XSSimpleTypeDefinition.javaAPI DocJava SE 5 API8724Fri Aug 26 14:55:52 BST 2005com.sun.org.apache.xerces.internal.impl.xs.psvi

XSSimpleTypeDefinition

public interface XSSimpleTypeDefinition implements XSTypeDefinition
This interface represents the Simple Type Definition schema component. The interface may be updated or replaced.

Fields Summary
public static final short
VARIETY_ABSENT
The variety is absent for the anySimpleType definition.
public static final short
VARIETY_ATOMIC
Atomic type.
public static final short
VARIETY_LIST
List type.
public static final short
VARIETY_UNION
Union type.
public static final short
FACET_NONE
No facets defined.
public static final short
FACET_LENGTH
4.3.1 Length
public static final short
FACET_MINLENGTH
4.3.2 minLength.
public static final short
FACET_MAXLENGTH
4.3.3 maxLength.
public static final short
FACET_PATTERN
4.3.4 pattern.
public static final short
FACET_WHITESPACE
4.3.5 whitespace.
public static final short
FACET_MAXINCLUSIVE
4.3.7 maxInclusive.
public static final short
FACET_MAXEXCLUSIVE
4.3.9 maxExclusive.
public static final short
FACET_MINEXCLUSIVE
4.3.9 minExclusive.
public static final short
FACET_MININCLUSIVE
4.3.10 minInclusive.
public static final short
FACET_TOTALDIGITS
4.3.11 totalDigits .
public static final short
FACET_FRACTIONDIGITS
4.3.12 fractionDigits.
public static final short
FACET_ENUMERATION
4.3.5 enumeration.
public static final short
ORDERED_FALSE
A constant defined for the 'ordered' fundamental facet: Not ordered.
public static final short
ORDERED_PARTIAL
A constant defined for the 'ordered' fundamental facet: partially ordered.
public static final short
ORDERED_TOTAL
A constant defined for the 'ordered' fundamental facet: total ordered.
Constructors Summary
Methods Summary
public XSObjectListgetAnnotations()
Optional. A set of [annotation]s.

public booleangetBounded()
Fundamental Facet: bounded.

public shortgetDefinedFacets()
[facets]: get all facets defined on this type. The value is a bit combination of FACET_XXX constants of all defined facets.

public XSObjectListgetFacets()

return
list of constraining facets. This method must not be used to retrieve values for enumeration and pattern facets.

public booleangetFinite()
Fundamental Facet: cardinality.

public shortgetFixedFacets()
[facets]: get all facets defined and fixed on this type.

public com.sun.org.apache.xerces.internal.impl.xs.psvi.XSSimpleTypeDefinitiongetItemType()
If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null.

public StringListgetLexicalEnumeration()
Returns a list of enumeration values.

public java.lang.StringgetLexicalFacetValue(short facetName)
Convenience method. Returns a value of a single constraining facet for this simple type definition. This method must not be used to retrieve values for enumeration and pattern facets.

param
facetName The name of the facet, i.e. FACET_LENGTH, FACET_TOTALDIGITS (see XSConstants).To retrieve value for pattern or enumeration, see enumeration and pattern.
return
A value of the facet specified in facetName for this simple type definition or null.

public StringListgetLexicalPattern()
Returns a list of pattern values.

public XSObjectListgetMemberTypes()
If variety is union the list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwise null.

public XSObjectListgetMultiValueFacets()

return
list of enumeration and pattern facets.

public booleangetNumeric()
Fundamental Facet: numeric.

public shortgetOrdered()
Fundamental Facet: ordered

public com.sun.org.apache.xerces.internal.impl.xs.psvi.XSSimpleTypeDefinitiongetPrimitiveType()
If variety is atomic the primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwise null.

public shortgetVariety()
[variety]: one of {atomic, list, union} or absent

public booleanisDefinedFacet(short facetName)
Convenience method. [Facets]: check whether a facet is defined on this type.

param
facetName The name of the facet.
return
True if the facet is defined, false otherwise.

public booleanisFixedFacet(short facetName)
Convenience method. [Facets]: check whether a facet is defined and fixed on this type.

param
facetName The name of the facet.
return
True if the facet is fixed, false otherwise.