XSComponentXSElementDecl, XSModelGroup, XSModelGroupDecl, XSWildcard, XSWildcard.Any, XSWildcard.Other, XSWildcard.UnionElementDecl, ModelGroupDeclImpl, ModelGroupImpl, WildcardImpl, WildcardImpl.Any, WildcardImpl.Finite, WildcardImpl.Otherpublic interface XSTerm extends XSComponent
XSParticle
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;
}
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
apply(XSTermFunction<T> function) |
|
<T,P> T |
apply(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) |
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visitvoid visit(XSTermVisitor visitor)
<T> T apply(XSTermFunction<T> function)
<T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
boolean isWildcard()
boolean isModelGroupDecl()
boolean isModelGroup()
boolean isElementDecl()
XSWildcard asWildcard()
XSModelGroupDecl asModelGroupDecl()
XSModelGroup asModelGroup()
XSElementDecl asElementDecl()
Copyright © 2017 Oracle Corporation. All rights reserved.