Class AbstractAxisImpl<T extends XSComponent>
java.lang.Object
com.sun.xml.xsom.impl.scd.AbstractAxisImpl<T>
- All Implemented Interfaces:
Axis<T>, XSContentTypeFunction<Iterator<T>>, XSFunction<Iterator<T>>, XSTermFunction<Iterator<T>>
- Direct Known Subclasses:
Axis.ModelGroupAxis
abstract class AbstractAxisImpl<T extends XSComponent>
extends Object
implements Axis<T>, XSFunction<Iterator<T>>
Partial default implementation of
Axis.
XSParticles are skipped in SCD, so this class compensates that.
For example, when we are considering a path from XSComplexType,
we need to also consider a path from its content type particle (if any.)
-
Nested Class Summary
Nested classes/interfaces inherited from interface Axis
Axis.ModelGroupAxis -
Field Summary
Fields inherited from interface Axis
ATTRIBUTE, ATTRIBUTE_GROUP, ATTRIBUTE_WILDCARD, BASETYPE, DESCENDANTS, ELEMENT, FACET, IDENTITY_CONSTRAINT, INTERMEDIATE_SKIP, ITEM_TYPE, MEMBER_TYPE, MODEL_GROUP_DECL, MODELGROUP_ALL, MODELGROUP_ANY, MODELGROUP_CHOICE, MODELGROUP_SEQUENCE, NOTATION, PRIMITIVE_TYPE, REFERENCED_KEY, ROOT, SCOPE, SUBSTITUTION_GROUP, TYPE_DEFINITION, WILDCARD, X_SCHEMA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotation(XSAnnotation ann) attGroupDecl(XSAttGroupDecl decl) attributeDecl(XSAttributeDecl decl) complexType(XSComplexType type) elementDecl(XSElementDecl decl) empty()Returns an empty list.empty(XSContentType empty) getName()Gets the prefix of the axis, like "foo::".booleanReturns true if this is one of the model group axis.iterator(XSComponent contextNode) iterator(Iterator<? extends XSComponent> contextNodes) Default implementation that simply delegate stoiterator(XSComponent)modelGroup(XSModelGroup group) notation(XSNotation notation) particle(XSParticle particle) simpleType(XSSimpleType simpleType) Creates a singleton list.wildcard(XSWildcard wc)
-
Constructor Details
-
AbstractAxisImpl
AbstractAxisImpl()
-
-
Method Details
-
singleton
-
union
-
union
-
iterator
- Specified by:
iteratorin interfaceAxis<T extends XSComponent>
-
getName
Gets the prefix of the axis, like "foo::". -
iterator
Default implementation that simply delegate stoiterator(XSComponent)- Specified by:
iteratorin interfaceAxis<T extends XSComponent>
-
isModelGroup
public boolean isModelGroup()Description copied from interface:AxisReturns true if this is one of the model group axis.- Specified by:
isModelGroupin interfaceAxis<T extends XSComponent>
-
annotation
- Specified by:
annotationin interfaceXSFunction<T extends XSComponent>
-
attGroupDecl
- Specified by:
attGroupDeclin interfaceXSFunction<T extends XSComponent>
-
attributeDecl
- Specified by:
attributeDeclin interfaceXSFunction<T extends XSComponent>
-
attributeUse
- Specified by:
attributeUsein interfaceXSFunction<T extends XSComponent>
-
complexType
- Specified by:
complexTypein interfaceXSFunction<T extends XSComponent>
-
schema
- Specified by:
schemain interfaceXSFunction<T extends XSComponent>
-
facet
- Specified by:
facetin interfaceXSFunction<T extends XSComponent>
-
notation
- Specified by:
notationin interfaceXSFunction<T extends XSComponent>
-
identityConstraint
- Specified by:
identityConstraintin interfaceXSFunction<T extends XSComponent>
-
xpath
- Specified by:
xpathin interfaceXSFunction<T extends XSComponent>
-
simpleType
- Specified by:
simpleTypein interfaceXSContentTypeFunction<T extends XSComponent>
-
particle
- Specified by:
particlein interfaceXSContentTypeFunction<T extends XSComponent>
-
empty
- Specified by:
emptyin interfaceXSContentTypeFunction<T extends XSComponent>
-
wildcard
- Specified by:
wildcardin interfaceXSTermFunction<T extends XSComponent>
-
modelGroupDecl
- Specified by:
modelGroupDeclin interfaceXSTermFunction<T extends XSComponent>
-
modelGroup
- Specified by:
modelGroupin interfaceXSTermFunction<T extends XSComponent>
-
elementDecl
- Specified by:
elementDeclin interfaceXSTermFunction<T extends XSComponent>
-
empty
-