XSComponent
XSElementDecl
, XSModelGroup
, XSModelGroupDecl
, XSWildcard
, XSWildcard.Any
, XSWildcard.Other
, XSWildcard.Union
ElementDecl
, ModelGroupDeclImpl
, ModelGroupImpl
, WildcardImpl
, WildcardImpl.Any
, WildcardImpl.Finite
, WildcardImpl.Other
public 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, visit
void 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 © 2018 Oracle Corporation. All rights reserved.