Top Description Methods
com.sun.xml.xsom

public Interface XSRestrictionSimpleType

extends XSSimpleType
Known Direct Implementers
com.sun.xml.xsom.impl.RestrictionSimpleTypeImpl, com.sun.xml.xsom.impl.SchemaSetImpl.AnySimpleType
Imports
java.util.Iterator, .Collection, .List

Restriction simple type.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public XSFacet

Returns:

Null if the facet is not specified in the last step of derivation.
getDeclaredFacet
(String name)

Gets the declared facet object of the given name.

public Collection<? extends XSFacet>

Returns:

Can be empty but always non-null.
getDeclaredFacets
()

Gets all the facets that are declared on this restriction.

public List<XSFacet>

Returns:

can be empty but never be null.
getDeclaredFacets
(String name)

Gets the declared facets of the given name.

public Iterator<XSFacet>
iterateDeclaredFacets()

Iterates facets that are specified in this step of derivation.

Inherited from com.sun.xml.xsom.XSSimpleType:
applyasListasRestrictionasUniongetBaseListTypegetBaseUnionTypegetFacetgetFacetsgetPrimitiveTypegetRedefinedBygetSimpleBaseTypegetVarietyisFinalisListisPrimitiveisRestrictionisUnionvisit

Method Detail

getDeclaredFacetback to summary
public XSFacet getDeclaredFacet(String name)

Gets the declared facet object of the given name.

This method returns a facet object that is added in this type and does not recursively check the ancestors.

For those facets that can have multiple values (pattern facets and enumeration facets), this method will return only the first one.

Returns:XSFacet

Null if the facet is not specified in the last step of derivation.

getDeclaredFacetsback to summary
public Collection<? extends XSFacet> getDeclaredFacets()

Gets all the facets that are declared on this restriction.

Returns:Collection<? extends XSFacet>

Can be empty but always non-null.

getDeclaredFacetsback to summary
public List<XSFacet> getDeclaredFacets(String name)

Gets the declared facets of the given name. This method is for those facets (such as 'pattern') that can be specified multiple times on a simple type.

Returns:List<XSFacet>

can be empty but never be null.

iterateDeclaredFacetsback to summary
public Iterator<XSFacet> iterateDeclaredFacets()

Iterates facets that are specified in this step of derivation.