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
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Field Summary
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(XSContentTypeFunction function) apply
(XSFunction function) Accepts a functor.asEmpty()
If this content type represents the empty content, returnthis
, otherwise null.Equivalent of(this instanceof XSParticle)?this:null
Equivalent of(this instanceof XSSimpleType)?this:null
void
visit
(XSContentTypeVisitor visitor) void
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
-
Constructor Details
-
EmptyImpl
public EmptyImpl()
-
-
Method Details
-
asSimpleType
Description copied from interface:XSContentType
Equivalent of(this instanceof XSSimpleType)?this:null
- Specified by:
asSimpleType
in interfaceXSContentType
-
asParticle
Description copied from interface:XSContentType
Equivalent of(this instanceof XSParticle)?this:null
- Specified by:
asParticle
in interfaceXSContentType
-
asEmpty
Description copied from interface:XSContentType
If this content type represents the empty content, returnthis
, otherwise null.- Specified by:
asEmpty
in interfaceXSContentType
-
apply
- Specified by:
apply
in interfaceXSContentType
-
apply
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
visit
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
visit
- Specified by:
visit
in interfaceXSContentType
-
getContentType
- Specified by:
getContentType
in interfaceRef.ContentType
-