Package com.sun.xml.xsom.impl.scd
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
.
XSParticle
s 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 com.sun.xml.xsom.impl.scd.Axis
Axis.ModelGroupAxis
-
Field Summary
Fields inherited from interface com.sun.xml.xsom.impl.scd.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::".boolean
Returns 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
Creates a singleton list. -
union
-
union
-
iterator
- Specified by:
iterator
in interfaceAxis<T extends XSComponent>
-
getName
Gets the prefix of the axis, like "foo::". -
iterator
Default implementation that simply delegate stoiterator(XSComponent)
- Specified by:
iterator
in interfaceAxis<T extends XSComponent>
-
isModelGroup
public boolean isModelGroup()Description copied from interface:Axis
Returns true if this is one of the model group axis.- Specified by:
isModelGroup
in interfaceAxis<T extends XSComponent>
-
annotation
- Specified by:
annotation
in interfaceXSFunction<T extends XSComponent>
-
attGroupDecl
- Specified by:
attGroupDecl
in interfaceXSFunction<T extends XSComponent>
-
attributeDecl
- Specified by:
attributeDecl
in interfaceXSFunction<T extends XSComponent>
-
attributeUse
- Specified by:
attributeUse
in interfaceXSFunction<T extends XSComponent>
-
complexType
- Specified by:
complexType
in interfaceXSFunction<T extends XSComponent>
-
schema
- Specified by:
schema
in interfaceXSFunction<T extends XSComponent>
-
facet
- Specified by:
facet
in interfaceXSFunction<T extends XSComponent>
-
notation
- Specified by:
notation
in interfaceXSFunction<T extends XSComponent>
-
identityConstraint
- Specified by:
identityConstraint
in interfaceXSFunction<T extends XSComponent>
-
xpath
- Specified by:
xpath
in interfaceXSFunction<T extends XSComponent>
-
simpleType
- Specified by:
simpleType
in interfaceXSContentTypeFunction<T extends XSComponent>
-
particle
- Specified by:
particle
in interfaceXSContentTypeFunction<T extends XSComponent>
-
empty
- Specified by:
empty
in interfaceXSContentTypeFunction<T extends XSComponent>
-
wildcard
- Specified by:
wildcard
in interfaceXSTermFunction<T extends XSComponent>
-
modelGroupDecl
- Specified by:
modelGroupDecl
in interfaceXSTermFunction<T extends XSComponent>
-
modelGroup
- Specified by:
modelGroup
in interfaceXSTermFunction<T extends XSComponent>
-
elementDecl
- Specified by:
elementDecl
in interfaceXSTermFunction<T extends XSComponent>
-
empty
Returns an empty list.
-