Top Description Methods
com.sun.xml.xsom

public Interface XSContentType

extends XSComponent
Known Direct Subinterfaces
com.sun.xml.xsom.XSParticle, com.sun.xml.xsom.XSSimpleType, com.sun.xml.xsom.impl.ContentTypeImpl
Imports
com.sun.xml.xsom.visitor.XSContentTypeFunction, .XSContentTypeVisitor

Content of a complex type.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public <T> T
public XSContentType
asEmpty()

If this content type represents the empty content, return this, otherwise null.

public XSParticle
asParticle()

Equivalent of (this instanceof XSParticle)?this:null

public XSSimpleType
asSimpleType()

Equivalent of (this instanceof XSSimpleType)?this:null

public void
Inherited from com.sun.xml.xsom.XSComponent:
applygetAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSinglevisit

Method Detail

applyback to summary
public <T> T apply(XSContentTypeFunction<T> function)
asEmptyback to summary
public XSContentType asEmpty()

If this content type represents the empty content, return this, otherwise null.

asParticleback to summary
public XSParticle asParticle()

Equivalent of (this instanceof XSParticle)?this:null

asSimpleTypeback to summary
public XSSimpleType asSimpleType()

Equivalent of (this instanceof XSSimpleType)?this:null

visitback to summary
public void visit(XSContentTypeVisitor visitor)