abstract class AbstractAxisImpl<T extends XSComponent> extends java.lang.Object implements Axis<T>, XSFunction<java.util.Iterator<T>>
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.)
Axis.ModelGroupAxis
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 and Description |
---|
AbstractAxisImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
annotation(XSAnnotation ann) |
java.util.Iterator<T> |
attGroupDecl(XSAttGroupDecl decl) |
java.util.Iterator<T> |
attributeDecl(XSAttributeDecl decl) |
java.util.Iterator<T> |
attributeUse(XSAttributeUse use) |
java.util.Iterator<T> |
complexType(XSComplexType type) |
java.util.Iterator<T> |
elementDecl(XSElementDecl decl) |
protected java.util.Iterator<T> |
empty()
Returns an empty list.
|
java.util.Iterator<T> |
empty(XSContentType empty) |
java.util.Iterator<T> |
facet(XSFacet facet) |
java.lang.String |
getName()
Gets the prefix of the axis, like "foo::".
|
java.util.Iterator<T> |
identityConstraint(XSIdentityConstraint decl) |
boolean |
isModelGroup()
Returns true if this is one of the model group axis.
|
java.util.Iterator<T> |
iterator(java.util.Iterator<? extends XSComponent> contextNodes)
Default implementation that simply delegate sto
iterator(XSComponent) |
java.util.Iterator<T> |
iterator(XSComponent contextNode) |
java.util.Iterator<T> |
modelGroup(XSModelGroup group) |
java.util.Iterator<T> |
modelGroupDecl(XSModelGroupDecl decl) |
java.util.Iterator<T> |
notation(XSNotation notation) |
java.util.Iterator<T> |
particle(XSParticle particle) |
java.util.Iterator<T> |
schema(XSSchema schema) |
java.util.Iterator<T> |
simpleType(XSSimpleType simpleType) |
protected java.util.Iterator<T> |
singleton(T t)
Creates a singleton list.
|
protected java.util.Iterator<T> |
union(java.util.Iterator<? extends T> first,
java.util.Iterator<? extends T> second) |
protected java.util.Iterator<T> |
union(T... items) |
java.util.Iterator<T> |
wildcard(XSWildcard wc) |
java.util.Iterator<T> |
xpath(XSXPath xpath) |
protected final java.util.Iterator<T> union(java.util.Iterator<? extends T> first, java.util.Iterator<? extends T> second)
public java.util.Iterator<T> iterator(XSComponent contextNode)
iterator
in interface Axis<T extends XSComponent>
public java.lang.String getName()
public java.util.Iterator<T> iterator(java.util.Iterator<? extends XSComponent> contextNodes)
iterator(XSComponent)
iterator
in interface Axis<T extends XSComponent>
public boolean isModelGroup()
Axis
isModelGroup
in interface Axis<T extends XSComponent>
public java.util.Iterator<T> annotation(XSAnnotation ann)
annotation
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> attGroupDecl(XSAttGroupDecl decl)
attGroupDecl
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> attributeDecl(XSAttributeDecl decl)
attributeDecl
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> attributeUse(XSAttributeUse use)
attributeUse
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> complexType(XSComplexType type)
complexType
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> schema(XSSchema schema)
schema
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> facet(XSFacet facet)
facet
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> notation(XSNotation notation)
notation
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> identityConstraint(XSIdentityConstraint decl)
identityConstraint
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> xpath(XSXPath xpath)
xpath
in interface XSFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> simpleType(XSSimpleType simpleType)
simpleType
in interface XSContentTypeFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> particle(XSParticle particle)
particle
in interface XSContentTypeFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> empty(XSContentType empty)
empty
in interface XSContentTypeFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> wildcard(XSWildcard wc)
wildcard
in interface XSTermFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> modelGroupDecl(XSModelGroupDecl decl)
modelGroupDecl
in interface XSTermFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> modelGroup(XSModelGroup group)
modelGroup
in interface XSTermFunction<java.util.Iterator<T extends XSComponent>>
public java.util.Iterator<T> elementDecl(XSElementDecl decl)
elementDecl
in interface XSTermFunction<java.util.Iterator<T extends XSComponent>>
protected final java.util.Iterator<T> empty()