Package com.sun.xml.xsom
Interface XSTerm
-
- All Superinterfaces:
XSComponent
- All Known Subinterfaces:
XSElementDecl
,XSModelGroup
,XSModelGroupDecl
,XSWildcard
,XSWildcard.Any
,XSWildcard.Other
,XSWildcard.Union
- All Known Implementing Classes:
ElementDecl
,ModelGroupDeclImpl
,ModelGroupImpl
,WildcardImpl
,WildcardImpl.Any
,WildcardImpl.Finite
,WildcardImpl.Other
public interface XSTerm extends XSComponent
A component that can be referenced fromXSParticle
This interface provides a set of type check functions (isXXX
), which are essentially:boolean isXXX() { return this instanceof XXX; }
and a set of cast functions (
asXXX
), which are essentially:XXX asXXX() { if(isXXX()) return (XXX)this; else return null; }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
apply(XSTermFunction<T> function)
<T,P>
Tapply(XSTermFunctionWithParam<T,P> function, P param)
XSElementDecl
asElementDecl()
XSModelGroup
asModelGroup()
XSModelGroupDecl
asModelGroupDecl()
XSWildcard
asWildcard()
boolean
isElementDecl()
boolean
isModelGroup()
boolean
isModelGroupDecl()
boolean
isWildcard()
void
visit(XSTermVisitor visitor)
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
-
-
-
Method Detail
-
visit
void visit(XSTermVisitor visitor)
-
apply
<T> T apply(XSTermFunction<T> function)
-
apply
<T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
-
isWildcard
boolean isWildcard()
-
isModelGroupDecl
boolean isModelGroupDecl()
-
isModelGroup
boolean isModelGroup()
-
isElementDecl
boolean isElementDecl()
-
asWildcard
XSWildcard asWildcard()
-
asModelGroupDecl
XSModelGroupDecl asModelGroupDecl()
-
asModelGroup
XSModelGroup asModelGroup()
-
asElementDecl
XSElementDecl asElementDecl()
-
-