org.apache.xerces.impl.xs.identity

Class Selector.Matcher

public class Selector.Matcher extends XPathMatcher

Selector matcher.

Author: Andy Clark, IBM

Field Summary
protected intfElementDepth
Element depth.
protected FieldActivatorfFieldActivator
Field activator.
protected intfInitialDepth
Initial depth in the document at which this matcher was created.
protected intfMatchedDepth
Depth at match.
Constructor Summary
Matcher(Selector.XPath xpath, FieldActivator activator, int initialDepth)
Constructs a selector matcher.
Method Summary
voidendElement(QName element, XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, ShortList itemValueType)
IdentityConstraintgetIdentityConstraint()
Returns the identity constraint.
intgetInitialDepth()
get the initial depth at which this selector matched.
voidstartDocumentFragment()
voidstartElement(QName element, XMLAttributes attributes)
The start of an element.

Field Detail

fElementDepth

protected int fElementDepth
Element depth.

fFieldActivator

protected FieldActivator fFieldActivator
Field activator.

fInitialDepth

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

fMatchedDepth

protected int fMatchedDepth
Depth at match.

Constructor Detail

Matcher

public Matcher(Selector.XPath xpath, FieldActivator activator, int initialDepth)
Constructs a selector matcher.

Method Detail

endElement

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

getIdentityConstraint

public IdentityConstraint getIdentityConstraint()
Returns the identity constraint.

getInitialDepth

public int getInitialDepth()
get the initial depth at which this selector matched.

startDocumentFragment

public void startDocumentFragment()

startElement

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.

Copyright © 1999-2005 Apache XML Project. All Rights Reserved.