Top Description Constructors Methods
com.sun.xml.xsom.impl.scd

pack-priv abstract Class AbstractAxisImpl<T extends XSComponent>

extends Object
implements Axis<T extends XSComponent>, XSFunction<Iterator<T extends XSComponent>>
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.visitor.XSFunction, com.sun.xml.xsom.visitor.XSTermFunction, com.sun.xml.xsom.visitor.XSContentTypeFunction, com.sun.xml.xsom.impl.scd.Axis
Known Direct Subclasses
com.sun.xml.xsom.impl.scd.Axis.ModelGroupAxis
Imports
com.sun.xml.xsom.XSAnnotation, .XSAttGroupDecl, .XSAttributeDecl, .XSAttributeUse, .XSComplexType, .XSComponent, .XSContentType, .XSElementDecl, .XSFacet, .XSIdentityConstraint, .XSModelGroup, .XSModelGroupDecl, .XSNotation, .XSParticle, .XSSchema, .XSSimpleType, .XSWildcard, .XSXPath, com.sun.xml.xsom.visitor.XSFunction, java.util.Iterator

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.)

Author
Kohsuke Kawaguchi

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
protected final Iterator<T>
empty()

Returns an empty list.

public Iterator<T>
public String
getName()

Gets the prefix of the axis, like "foo::".

public Iterator<T>
public boolean
isModelGroup()

Implements com.sun.xml.xsom.impl.scd.Axis.isModelGroup.

Returns true if this is one of the model group axis.

public Iterator<T>
public Iterator<T>
iterator(Iterator<? extends XSComponent> contextNodes)

Implements com.sun.xml.xsom.impl.scd.Axis.iterator.

Default implementation that simply delegate sto iterator(XSComponent)

public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
public Iterator<T>
protected final Iterator<T>
singleton(T t)

Creates a singleton list.

protected final Iterator<T>
union(T[] items)

protected final Iterator<T>
union(Iterator<? extends T> first, Iterator<? extends T> second)

public Iterator<T>
public Iterator<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractAxisImplback to summary
pack-priv AbstractAxisImpl()

Method Detail

annotationback to summary
public Iterator<T> annotation(XSAnnotation ann)

Implements com.sun.xml.xsom.visitor.XSFunction.annotation.

attGroupDeclback to summary
public Iterator<T> attGroupDecl(XSAttGroupDecl decl)

Implements com.sun.xml.xsom.visitor.XSFunction.attGroupDecl.

attributeDeclback to summary
public Iterator<T> attributeDecl(XSAttributeDecl decl)

Implements com.sun.xml.xsom.visitor.XSFunction.attributeDecl.

attributeUseback to summary
public Iterator<T> attributeUse(XSAttributeUse use)

Implements com.sun.xml.xsom.visitor.XSFunction.attributeUse.

complexTypeback to summary
public Iterator<T> complexType(XSComplexType type)

Implements com.sun.xml.xsom.visitor.XSFunction.complexType.

elementDeclback to summary
public Iterator<T> elementDecl(XSElementDecl decl)

Implements com.sun.xml.xsom.visitor.XSTermFunction.elementDecl.

emptyback to summary
public Iterator<T> empty(XSContentType empty)

Implements com.sun.xml.xsom.visitor.XSContentTypeFunction.empty.

emptyback to summary
protected final Iterator<T> empty()

Returns an empty list.

facetback to summary
public Iterator<T> facet(XSFacet facet)

Implements com.sun.xml.xsom.visitor.XSFunction.facet.

getNameback to summary
public String getName()

Gets the prefix of the axis, like "foo::".

identityConstraintback to summary
public Iterator<T> identityConstraint(XSIdentityConstraint decl)

Implements com.sun.xml.xsom.visitor.XSFunction.identityConstraint.

isModelGroupback to summary
public boolean isModelGroup()

Implements com.sun.xml.xsom.impl.scd.Axis.isModelGroup.

Doc from com.sun.xml.xsom.impl.scd.Axis.isModelGroup.

Returns true if this is one of the model group axis.

iteratorback to summary
public Iterator<T> iterator(XSComponent contextNode)

Implements com.sun.xml.xsom.impl.scd.Axis.iterator.

iteratorback to summary
public Iterator<T> iterator(Iterator<? extends XSComponent> contextNodes)

Implements com.sun.xml.xsom.impl.scd.Axis.iterator.

Default implementation that simply delegate sto iterator(XSComponent)

modelGroupback to summary
public Iterator<T> modelGroup(XSModelGroup group)

Implements com.sun.xml.xsom.visitor.XSTermFunction.modelGroup.

modelGroupDeclback to summary
public Iterator<T> modelGroupDecl(XSModelGroupDecl decl)

Implements com.sun.xml.xsom.visitor.XSTermFunction.modelGroupDecl.

notationback to summary
public Iterator<T> notation(XSNotation notation)

Implements com.sun.xml.xsom.visitor.XSFunction.notation.

particleback to summary
public Iterator<T> particle(XSParticle particle)

Implements com.sun.xml.xsom.visitor.XSContentTypeFunction.particle.

schemaback to summary
public Iterator<T> schema(XSSchema schema)

Implements com.sun.xml.xsom.visitor.XSFunction.schema.

simpleTypeback to summary
public Iterator<T> simpleType(XSSimpleType simpleType)

Implements com.sun.xml.xsom.visitor.XSContentTypeFunction.simpleType.

singletonback to summary
protected final Iterator<T> singleton(T t)

Creates a singleton list.

unionback to summary
protected final Iterator<T> union(T[] items)
unionback to summary
protected final Iterator<T> union(Iterator<? extends T> first, Iterator<? extends T> second)
wildcardback to summary
public Iterator<T> wildcard(XSWildcard wc)

Implements com.sun.xml.xsom.visitor.XSTermFunction.wildcard.

xpathback to summary
public Iterator<T> xpath(XSXPath xpath)

Implements com.sun.xml.xsom.visitor.XSFunction.xpath.