Package com.sun.xml.xsom
Interface XSContentType
-
- All Superinterfaces:
XSComponent
- All Known Subinterfaces:
ContentTypeImpl
,XSListSimpleType
,XSParticle
,XSRestrictionSimpleType
,XSSimpleType
,XSUnionSimpleType
- All Known Implementing Classes:
EmptyImpl
,ListSimpleTypeImpl
,ParticleImpl
,RestrictionSimpleTypeImpl
,SimpleTypeImpl
,UnionSimpleTypeImpl
public interface XSContentType extends XSComponent
Content of a complex type.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
apply(XSContentTypeFunction<T> function)
XSContentType
asEmpty()
If this content type represents the empty content, returnthis
, otherwise null.XSParticle
asParticle()
Equivalent of(this instanceof XSParticle)?this:null
XSSimpleType
asSimpleType()
Equivalent of(this instanceof XSSimpleType)?this:null
void
visit(XSContentTypeVisitor visitor)
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
-
-
-
Method Detail
-
asSimpleType
XSSimpleType asSimpleType()
Equivalent of(this instanceof XSSimpleType)?this:null
-
asParticle
XSParticle asParticle()
Equivalent of(this instanceof XSParticle)?this:null
-
asEmpty
XSContentType asEmpty()
If this content type represents the empty content, returnthis
, otherwise null.
-
apply
<T> T apply(XSContentTypeFunction<T> function)
-
visit
void visit(XSContentTypeVisitor visitor)
-
-