Top Fields Constructors Methods
com.sun.xml.xsom.impl

public Class ListSimpleTypeImpl

extends SimpleTypeImpl
implements XSListSimpleType
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.XSListSimpleType, com.sun.xml.xsom.XSSimpleType, com.sun.xml.xsom.XSContentType, com.sun.xml.xsom.XSComponent, com.sun.xml.xsom.XSType, com.sun.xml.xsom.XSDeclaration
Imports
com.sun.xml.xsom.XSFacet, .XSListSimpleType, .XSSimpleType, .XSVariety, com.sun.xml.xsom.impl.parser.SchemaDocumentImpl, com.sun.xml.xsom.visitor.XSSimpleTypeFunction, .XSSimpleTypeVisitor, org.xml.sax.Locator, java.util.Collections, .List, .Set

Field Summary

Modifier and TypeField and Description
private final Ref.SimpleType

Constructor Summary

AccessConstructor and Description
public
ListSimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref.SimpleType _itemType)

Method Summary

Modifier and TypeMethod and Description
public <T> T
public XSListSimpleType
public XSListSimpleType
getBaseListType()

Overrides com.sun.xml.xsom.impl.SimpleTypeImpl.getBaseListType.

Implements com.sun.xml.xsom.XSSimpleType.getBaseListType.

Gets the nearest ancestor XSListSimpleType (including itself) if the variety of this type is list.

public XSFacet
getFacet(String name)

Implements com.sun.xml.xsom.XSSimpleType.getFacet.

Gets the effective facet object of the given name.

public List<XSFacet>
getFacets(String name)

Implements com.sun.xml.xsom.XSSimpleType.getFacets.

For multi-valued facets (enumeration and pattern), obtain all values.

public XSSimpleType
public XSSimpleType
getPrimitiveType()

Implements com.sun.xml.xsom.XSSimpleType.getPrimitiveType.

Gets the ancestor primitive if this type is atomic.

public XSVariety
getVariety()

Implements com.sun.xml.xsom.XSSimpleType.getVariety.

Gets the variety of this simple type.

public boolean
isList()

Overrides com.sun.xml.xsom.impl.SimpleTypeImpl.isList.

Implements com.sun.xml.xsom.XSSimpleType.isList.

Returns true if this instanceof XSListSimpleType.

public void
Inherited from com.sun.xml.xsom.impl.SimpleTypeImpl:
applyapplyasComplexTypeasEmptyasParticleasRestrictionasSimpleTypeasUniongetBaseTypegetBaseUnionTypegetContentTypegetDerivationMethodgetRedefinedBygetRedefinedCountgetSimpleBaseTypegetTypeisComplexTypeisDerivedFromisFinalisPrimitiveisRestrictionisSimpleTypeisUnionlistSubstitutablesredefinevisitvisit

Field Detail

itemTypeback to summary
private final Ref.SimpleType itemType

Constructor Detail

ListSimpleTypeImplback to summary
public ListSimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref.SimpleType _itemType)

Method Detail

applyback to summary
public <T> T apply(XSSimpleTypeFunction<T> function)

Implements com.sun.xml.xsom.XSSimpleType.apply.

asListback to summary
public XSListSimpleType asList()

Overrides com.sun.xml.xsom.impl.SimpleTypeImpl.asList.

Implements com.sun.xml.xsom.XSSimpleType.asList.

getBaseListTypeback to summary
public XSListSimpleType getBaseListType()

Overrides com.sun.xml.xsom.impl.SimpleTypeImpl.getBaseListType.

Implements com.sun.xml.xsom.XSSimpleType.getBaseListType.

Doc from com.sun.xml.xsom.XSSimpleType.getBaseListType.

Gets the nearest ancestor XSListSimpleType (including itself) if the variety of this type is list.

getFacetback to summary
public XSFacet getFacet(String name)

Implements com.sun.xml.xsom.XSSimpleType.getFacet.

Doc from com.sun.xml.xsom.XSSimpleType.getFacet.

Gets the effective facet object of the given name.

For example, if a simple type "foo" is derived from xs:string by restriction with the "maxLength" facet and another simple type "bar" is derived from "foo" by restriction with another "maxLength" facet, this method will return the latter one, because that is the most restrictive, effective facet.

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

Todo

allow clients to access all of them by some means.

getFacetsback to summary
public List<XSFacet> getFacets(String name)

Implements com.sun.xml.xsom.XSSimpleType.getFacets.

Doc from com.sun.xml.xsom.XSSimpleType.getFacets.

For multi-valued facets (enumeration and pattern), obtain all values.

getItemTypeback to summary
public XSSimpleType getItemType()

Implements com.sun.xml.xsom.XSListSimpleType.getItemType.

getPrimitiveTypeback to summary
public XSSimpleType getPrimitiveType()

Implements com.sun.xml.xsom.XSSimpleType.getPrimitiveType.

Doc from com.sun.xml.xsom.XSSimpleType.getPrimitiveType.

Gets the ancestor primitive if this type is atomic.

getVarietyback to summary
public XSVariety getVariety()

Implements com.sun.xml.xsom.XSSimpleType.getVariety.

Doc from com.sun.xml.xsom.XSSimpleType.getVariety.

Gets the variety of this simple type.

isListback to summary
public boolean isList()

Overrides com.sun.xml.xsom.impl.SimpleTypeImpl.isList.

Implements com.sun.xml.xsom.XSSimpleType.isList.

Doc from com.sun.xml.xsom.XSSimpleType.isList.

Returns true if this instanceof XSListSimpleType.

visitback to summary
public void visit(XSSimpleTypeVisitor visitor)

Implements com.sun.xml.xsom.XSSimpleType.visit.