org.apache.xerces.impl.xs.identity

Class Selector

public class Selector extends Object

Schema identity constraint selector.

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.

Version: $Id: Selector.java,v 1.20 2005/05/09 21:03:33 ankitp Exp $

Author: Andy Clark, IBM

Nested Class Summary
classSelector.Matcher
Selector matcher.
static classSelector.XPath
Schema identity constraint selector XPath expression.
Field Summary
protected IdentityConstraintfIdentityConstraint
Identity constraint.
protected IdentityConstraintfIDConstraint
protected Selector.XPathfXPath
XPath.
Constructor Summary
Selector(Selector.XPath xpath, IdentityConstraint identityConstraint)
Constructs a selector.
Method Summary
XPathMatchercreateMatcher(FieldActivator activator, int initialDepth)
Creates a selector matcher.
IdentityConstraintgetIDConstraint()
Returns the identity constraint.
XPathgetXPath()
Returns the selector XPath.
StringtoString()
Returns a string representation of this object.

Field Detail

fIdentityConstraint

protected IdentityConstraint fIdentityConstraint
Identity constraint.

fIDConstraint

protected IdentityConstraint fIDConstraint

fXPath

protected Selector.XPath fXPath
XPath.

Constructor Detail

Selector

public Selector(Selector.XPath xpath, IdentityConstraint identityConstraint)
Constructs a selector.

Method Detail

createMatcher

public XPathMatcher createMatcher(FieldActivator activator, int initialDepth)
Creates a selector matcher.

Parameters: activator The activator for this selector's fields. initialDepth The depth in the document at which this matcher began its life; used in correctly handling recursive elements.

getIDConstraint

public IdentityConstraint getIDConstraint()
Returns the identity constraint.

getXPath

public XPath getXPath()
Returns the selector XPath.

toString

public String toString()
Returns a string representation of this object.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.