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

public Class EmptyImpl

extends ComponentImpl
implements ContentTypeImpl
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.impl.ContentTypeImpl, com.sun.xml.xsom.XSContentType, com.sun.xml.xsom.XSComponent, com.sun.xml.xsom.impl.Ref.ContentType
Imports
com.sun.xml.xsom.XSContentType, .XSParticle, .XSSimpleType, com.sun.xml.xsom.visitor.XSContentTypeFunction, .XSContentTypeVisitor, .XSFunction, .XSVisitor

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Inherited from com.sun.xml.xsom.impl.ComponentImpl:
ownerDocument

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> T
public <T> T
apply(XSFunction<T> function)

Implements com.sun.xml.xsom.XSComponent.apply.

Accepts a functor.

public XSContentType
asEmpty()

Implements com.sun.xml.xsom.XSContentType.asEmpty.

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

public XSParticle
asParticle()

Implements com.sun.xml.xsom.XSContentType.asParticle.

Equivalent of (this instanceof XSParticle)?this:null

public XSSimpleType
asSimpleType()

Implements com.sun.xml.xsom.XSContentType.asSimpleType.

Equivalent of (this instanceof XSSimpleType)?this:null

public XSContentType
public void
visit(XSVisitor visitor)

Implements com.sun.xml.xsom.XSComponent.visit.

Accepts a visitor.

public void
Inherited from com.sun.xml.xsom.impl.ComponentImpl:
getAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSingletoString

Constructor Detail

EmptyImplback to summary
public EmptyImpl()

Method Detail

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

Implements com.sun.xml.xsom.XSContentType.apply.

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

Implements com.sun.xml.xsom.XSComponent.apply.

Doc from com.sun.xml.xsom.XSComponent.apply.

Accepts a functor.

asEmptyback to summary
public XSContentType asEmpty()

Implements com.sun.xml.xsom.XSContentType.asEmpty.

Doc from com.sun.xml.xsom.XSContentType.asEmpty.

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

asParticleback to summary
public XSParticle asParticle()

Implements com.sun.xml.xsom.XSContentType.asParticle.

Doc from com.sun.xml.xsom.XSContentType.asParticle.

Equivalent of (this instanceof XSParticle)?this:null

asSimpleTypeback to summary
public XSSimpleType asSimpleType()

Implements com.sun.xml.xsom.XSContentType.asSimpleType.

Doc from com.sun.xml.xsom.XSContentType.asSimpleType.

Equivalent of (this instanceof XSSimpleType)?this:null

getContentTypeback to summary
public XSContentType getContentType()

Implements com.sun.xml.xsom.impl.Ref.ContentType.getContentType.

visitback to summary
public void visit(XSVisitor visitor)

Implements com.sun.xml.xsom.XSComponent.visit.

Doc from com.sun.xml.xsom.XSComponent.visit.

Accepts a visitor.

visitback to summary
public void visit(XSContentTypeVisitor visitor)

Implements com.sun.xml.xsom.XSContentType.visit.