Package com.sun.xml.xsom.impl
Class EmptyImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.EmptyImpl
-
- All Implemented Interfaces:
ContentTypeImpl,Ref.ContentType,XSComponent,XSContentType
public class EmptyImpl extends ComponentImpl implements ContentTypeImpl
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Field Summary
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Constructor Description EmptyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply(XSContentTypeFunction function)Objectapply(XSFunction function)Accepts a functor.XSContentTypeasEmpty()If this content type represents the empty content, returnthis, otherwise null.XSParticleasParticle()Equivalent of(this instanceof XSParticle)?this:nullXSSimpleTypeasSimpleType()Equivalent of(this instanceof XSSimpleType)?this:nullXSContentTypegetContentType()voidvisit(XSContentTypeVisitor visitor)voidvisit(XSVisitor visitor)Accepts a visitor.-
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
-
-
-
Method Detail
-
asSimpleType
public XSSimpleType asSimpleType()
Description copied from interface:XSContentTypeEquivalent of(this instanceof XSSimpleType)?this:null- Specified by:
asSimpleTypein interfaceXSContentType
-
asParticle
public XSParticle asParticle()
Description copied from interface:XSContentTypeEquivalent of(this instanceof XSParticle)?this:null- Specified by:
asParticlein interfaceXSContentType
-
asEmpty
public XSContentType asEmpty()
Description copied from interface:XSContentTypeIf this content type represents the empty content, returnthis, otherwise null.- Specified by:
asEmptyin interfaceXSContentType
-
apply
public Object apply(XSContentTypeFunction function)
- Specified by:
applyin interfaceXSContentType
-
apply
public Object apply(XSFunction function)
Description copied from interface:XSComponentAccepts a functor.- Specified by:
applyin interfaceXSComponent
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponentAccepts a visitor.- Specified by:
visitin interfaceXSComponent
-
visit
public void visit(XSContentTypeVisitor visitor)
- Specified by:
visitin interfaceXSContentType
-
getContentType
public XSContentType getContentType()
- Specified by:
getContentTypein interfaceRef.ContentType
-
-