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

public abstract Class Step<T extends XSComponent>

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.xml.xsom.impl.scd.Step.Any, com.sun.xml.xsom.impl.scd.Step.Filtered
Imports
com.sun.xml.xsom.XSComponent, .XSDeclaration, .XSFacet, .XSType, .SCD, .XSSchema, com.sun.xml.xsom.impl.UName, java.util.Iterator

Building block of SCD.
Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
Step.AnonymousType

Matches anonymous types.

pack-priv static class
Step.Any

Matches any name.

pack-priv static class
Step.Facet

Matches a particular kind of facets.

private abstract static class
pack-priv static class
Step.Named

Matches a particular name.

pack-priv static class
Step.Schema

Matches a schema in a particular namespace.

Field Summary

Modifier and TypeField and Description
public final Axis<? extends T>
pack-priv int
predicate

'Predicate' in SCD designates the index of the item.

Constructor Summary

AccessConstructor and Description
protected
Step(Axis<? extends T> axis)

Method Summary

Modifier and TypeMethod and Description
public final Iterator<T>
evaluate(Iterator<XSComponent> nodeSet)

Evaluate this step against the current node set and returns matched nodes.

protected abstract Iterator<? extends T>
filter(Iterator<? extends T> base)

Perform filtering (which is different depending on the kind of step.)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

axisback to summary
public final Axis<? extends T> axis
predicateback to summary
pack-priv int predicate

'Predicate' in SCD designates the index of the item. -1 if there's no predicate. Predicate starts from 1.

Because of the parsing order this parameter cannot be marked final, even though it's immutable once it's parsed.

Constructor Detail

Stepback to summary
protected Step(Axis<? extends T> axis)

Method Detail

evaluateback to summary
public final Iterator<T> evaluate(Iterator<XSComponent> nodeSet)

Evaluate this step against the current node set and returns matched nodes.

filterback to summary
protected abstract Iterator<? extends T> filter(Iterator<? extends T> base)

Perform filtering (which is different depending on the kind of step.)

com.sun.xml.xsom.impl.scd back to summary

pack-priv final Class Step.AnonymousType

extends Step.Filtered<XSType>
Class Inheritance

Matches anonymous types.

Constructor Summary

AccessConstructor and Description
public
AnonymousType(Axis<? extends XSType> axis)

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from com.sun.xml.xsom.impl.scd.Step.Filtered:
filter

Constructor Detail

AnonymousTypeback to summary
public AnonymousType(Axis<? extends XSType> axis)

Method Detail

matchback to summary
protected boolean match(XSType node)

Implements abstract com.sun.xml.xsom.impl.scd.Step.Filtered.match.

com.sun.xml.xsom.impl.scd back to summary

pack-priv final Class Step.Any

extends Step<XSComponent>
Class Inheritance

Matches any name.

Field Summary

Inherited from com.sun.xml.xsom.impl.scd.Step:
axispredicate

Constructor Summary

AccessConstructor and Description
public
Any(Axis<? extends XSComponent> axis)

Method Summary

Modifier and TypeMethod and Description
protected Iterator<? extends XSComponent>
filter(Iterator<? extends XSComponent> base)

Implements abstract com.sun.xml.xsom.impl.scd.Step.filter.

Perform filtering (which is different depending on the kind of step.)

Inherited from com.sun.xml.xsom.impl.scd.Step:
evaluate

Constructor Detail

Anyback to summary
public Any(Axis<? extends XSComponent> axis)

Method Detail

filterback to summary
protected Iterator<? extends XSComponent> filter(Iterator<? extends XSComponent> base)

Implements abstract com.sun.xml.xsom.impl.scd.Step.filter.

Doc from com.sun.xml.xsom.impl.scd.Step.filter.

Perform filtering (which is different depending on the kind of step.)

com.sun.xml.xsom.impl.scd back to summary

pack-priv final Class Step.Facet

extends Step.Filtered<XSFacet>
Class Inheritance

Matches a particular kind of facets.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
Facet(Axis<XSFacet> axis, String facetName)

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from com.sun.xml.xsom.impl.scd.Step.Filtered:
filter

Field Detail

nameback to summary
private final String name

Constructor Detail

Facetback to summary
public Facet(Axis<XSFacet> axis, String facetName)

Method Detail

matchback to summary
protected boolean match(XSFacet f)

Implements abstract com.sun.xml.xsom.impl.scd.Step.Filtered.match.

com.sun.xml.xsom.impl.scd back to summary

private abstract Class Step.Filtered<T extends XSComponent>

extends Step<T extends XSComponent>
Class Inheritance
Known Direct Subclasses
com.sun.xml.xsom.impl.scd.Step.Named, com.sun.xml.xsom.impl.scd.Step.AnonymousType, com.sun.xml.xsom.impl.scd.Step.Facet, com.sun.xml.xsom.impl.scd.Step.Schema

Field Summary

Inherited from com.sun.xml.xsom.impl.scd.Step:
axispredicate

Constructor Summary

AccessConstructor and Description
protected
Filtered(Axis<? extends T> axis)

Method Summary

Modifier and TypeMethod and Description
protected Iterator<T>
filter(Iterator<? extends T> base)

Implements abstract com.sun.xml.xsom.impl.scd.Step.filter.

Perform filtering (which is different depending on the kind of step.)

protected abstract boolean
match(T d)

Inherited from com.sun.xml.xsom.impl.scd.Step:
evaluate

Constructor Detail

Filteredback to summary
protected Filtered(Axis<? extends T> axis)

Method Detail

filterback to summary
protected Iterator<T> filter(Iterator<? extends T> base)

Implements abstract com.sun.xml.xsom.impl.scd.Step.filter.

Doc from com.sun.xml.xsom.impl.scd.Step.filter.

Perform filtering (which is different depending on the kind of step.)

matchback to summary
protected abstract boolean match(T d)
com.sun.xml.xsom.impl.scd back to summary

pack-priv final Class Step.Named

extends Step.Filtered<XSDeclaration>
Class Inheritance

Matches a particular name.

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
Named(Axis<? extends XSDeclaration> axis, UName n)

public
Named(Axis<? extends XSDeclaration> axis, String nsUri, String localName)

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from com.sun.xml.xsom.impl.scd.Step.Filtered:
filter

Field Detail

localNameback to summary
private final String localName
nsUriback to summary
private final String nsUri

Constructor Detail

Namedback to summary
public Named(Axis<? extends XSDeclaration> axis, UName n)
Namedback to summary
public Named(Axis<? extends XSDeclaration> axis, String nsUri, String localName)

Method Detail

matchback to summary
protected boolean match(XSDeclaration d)

Implements abstract com.sun.xml.xsom.impl.scd.Step.Filtered.match.

com.sun.xml.xsom.impl.scd back to summary

pack-priv final Class Step.Schema

extends Step.Filtered<XSSchema>
Class Inheritance

Matches a schema in a particular namespace.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
Schema(Axis<XSSchema> axis, String uri)

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from com.sun.xml.xsom.impl.scd.Step.Filtered:
filter

Field Detail

uriback to summary
private final String uri

Constructor Detail

Schemaback to summary
public Schema(Axis<XSSchema> axis, String uri)

Method Detail

matchback to summary
protected boolean match(XSSchema d)

Implements abstract com.sun.xml.xsom.impl.scd.Step.Filtered.match.