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<java.util.Iterator<T>>,XSFunction<java.util.Iterator<T>>,XSTermFunction<java.util.Iterator<T>>
- Direct Known Subclasses:
Axis.ModelGroupAxis
abstract class AbstractAxisImpl<T extends XSComponent> extends java.lang.Object implements Axis<T>, XSFunction<java.util.Iterator<T>>
Partial default implementation ofAxis.XSParticles are skipped in SCD, so this class compensates that. For example, when we are considering a path fromXSComplexType, 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 Constructor Description AbstractAxisImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.StringgetName()Gets the prefix of the axis, like "foo::".java.util.Iterator<T>identityConstraint(XSIdentityConstraint decl)booleanisModelGroup()Returns true if this is one of the model group axis.java.util.Iterator<T>iterator(XSComponent contextNode)java.util.Iterator<T>iterator(java.util.Iterator<? extends XSComponent> contextNodes)Default implementation that simply delegate stoiterator(XSComponent)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)
-
-
-
Method Detail
-
union
protected final java.util.Iterator<T> union(java.util.Iterator<? extends T> first, java.util.Iterator<? extends T> second)
-
iterator
public java.util.Iterator<T> iterator(XSComponent contextNode)
- Specified by:
iteratorin interfaceAxis<T extends XSComponent>
-
getName
public java.lang.String getName()
Gets the prefix of the axis, like "foo::".
-
iterator
public java.util.Iterator<T> iterator(java.util.Iterator<? extends XSComponent> contextNodes)
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
public java.util.Iterator<T> annotation(XSAnnotation ann)
- Specified by:
annotationin interfaceXSFunction<T extends XSComponent>
-
attGroupDecl
public java.util.Iterator<T> attGroupDecl(XSAttGroupDecl decl)
- Specified by:
attGroupDeclin interfaceXSFunction<T extends XSComponent>
-
attributeDecl
public java.util.Iterator<T> attributeDecl(XSAttributeDecl decl)
- Specified by:
attributeDeclin interfaceXSFunction<T extends XSComponent>
-
attributeUse
public java.util.Iterator<T> attributeUse(XSAttributeUse use)
- Specified by:
attributeUsein interfaceXSFunction<T extends XSComponent>
-
complexType
public java.util.Iterator<T> complexType(XSComplexType type)
- Specified by:
complexTypein interfaceXSFunction<T extends XSComponent>
-
schema
public java.util.Iterator<T> schema(XSSchema schema)
- Specified by:
schemain interfaceXSFunction<T extends XSComponent>
-
facet
public java.util.Iterator<T> facet(XSFacet facet)
- Specified by:
facetin interfaceXSFunction<T extends XSComponent>
-
notation
public java.util.Iterator<T> notation(XSNotation notation)
- Specified by:
notationin interfaceXSFunction<T extends XSComponent>
-
identityConstraint
public java.util.Iterator<T> identityConstraint(XSIdentityConstraint decl)
- Specified by:
identityConstraintin interfaceXSFunction<T extends XSComponent>
-
xpath
public java.util.Iterator<T> xpath(XSXPath xpath)
- Specified by:
xpathin interfaceXSFunction<T extends XSComponent>
-
simpleType
public java.util.Iterator<T> simpleType(XSSimpleType simpleType)
- Specified by:
simpleTypein interfaceXSContentTypeFunction<T extends XSComponent>
-
particle
public java.util.Iterator<T> particle(XSParticle particle)
- Specified by:
particlein interfaceXSContentTypeFunction<T extends XSComponent>
-
empty
public java.util.Iterator<T> empty(XSContentType empty)
- Specified by:
emptyin interfaceXSContentTypeFunction<T extends XSComponent>
-
wildcard
public java.util.Iterator<T> wildcard(XSWildcard wc)
- Specified by:
wildcardin interfaceXSTermFunction<T extends XSComponent>
-
modelGroupDecl
public java.util.Iterator<T> modelGroupDecl(XSModelGroupDecl decl)
- Specified by:
modelGroupDeclin interfaceXSTermFunction<T extends XSComponent>
-
modelGroup
public java.util.Iterator<T> modelGroup(XSModelGroup group)
- Specified by:
modelGroupin interfaceXSTermFunction<T extends XSComponent>
-
elementDecl
public java.util.Iterator<T> elementDecl(XSElementDecl decl)
- Specified by:
elementDeclin interfaceXSTermFunction<T extends XSComponent>
-
empty
protected final java.util.Iterator<T> empty()
Returns an empty list.
-
-