public class

Selector.Matcher

extends XPathMatcher
java.lang.Object
   ↳ org.apache.xerces.impl.xs.identity.XPathMatcher
     ↳ org.apache.xerces.impl.xs.identity.Selector.Matcher

Class Overview

Selector matcher.

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.impl.xs.identity.XPathMatcher
Fields
protected int fElementDepth Element depth.
protected FieldActivator fFieldActivator Field activator.
protected int fInitialDepth Initial depth in the document at which this matcher was created.
protected int fMatchedDepth Depth at match.
[Expand]
Inherited Fields
From class org.apache.xerces.impl.xs.identity.XPathMatcher
Public Constructors
Selector.Matcher(Selector.XPath xpath, FieldActivator activator, int initialDepth)
Constructs a selector matcher.
Public Methods
void endElement(QName element, XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, ShortList itemValueType)
IdentityConstraint getIdentityConstraint()
Returns the identity constraint.
int getInitialDepth()
get the initial depth at which this selector matched.
void startDocumentFragment()
The start of the document fragment.
void startElement(QName element, XMLAttributes attributes)
The start of an element.
[Expand]
Inherited Methods
From class org.apache.xerces.impl.xs.identity.XPathMatcher
From class java.lang.Object

Fields

protected int fElementDepth

Element depth.

protected FieldActivator fFieldActivator

Field activator.

protected int fInitialDepth

Initial depth in the document at which this matcher was created.

protected int fMatchedDepth

Depth at match.

Public Constructors

public Selector.Matcher (Selector.XPath xpath, FieldActivator activator, int initialDepth)

Constructs a selector matcher.

Public Methods

public void endElement (QName element, XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, ShortList itemValueType)

Parameters
element name of the element.
type content type of this element. IOW, the XML schema type of the value. Note that this may not be the type declared in the element declaration, but it is "the actual type". For example, if the XML is <foo xsi:type="xs:string">aaa</foo>, this parameter will be "xs:string".
nillable - nillable true if the element declaration is nillable.
actualValue - actual value the typed value of the content of this element.

public IdentityConstraint getIdentityConstraint ()

Returns the identity constraint.

public int getInitialDepth ()

get the initial depth at which this selector matched.

public void startDocumentFragment ()

The start of the document fragment.

public void startElement (QName element, XMLAttributes attributes)

The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods.

Parameters
element The name of the element.
attributes The element attributes.