org.apache.xerces.impl.xs

Class XMLSchemaValidator.XPathMatcherStack

protected static class XMLSchemaValidator.XPathMatcherStack extends Object

Stack of XPath matchers for identity constraints.

Author: Andy Clark, IBM

Field Summary
protected IntStackfContextStack
Offset stack for contexts.
protected XPathMatcher[]fMatchers
Active matchers.
protected intfMatchersCount
Count of active matchers.
Constructor Summary
XPathMatcherStack()
Method Summary
voidaddMatcher(XPathMatcher matcher)
Adds a matcher.
voidclear()
Resets the XPath matcher stack.
XPathMatchergetMatcherAt(int index)
Returns the XPath matcher at the specified index.
intgetMatcherCount()
Returns the count of XPath matchers.
voidpopContext()
Pops a context off of the stack.
voidpushContext()
Pushes a new context onto the stack.
intsize()
Returns the size of the stack.

Field Detail

fContextStack

protected IntStack fContextStack
Offset stack for contexts.

fMatchers

protected XPathMatcher[] fMatchers
Active matchers.

fMatchersCount

protected int fMatchersCount
Count of active matchers.

Constructor Detail

XPathMatcherStack

public XPathMatcherStack()

Method Detail

addMatcher

public void addMatcher(XPathMatcher matcher)
Adds a matcher.

clear

public void clear()
Resets the XPath matcher stack.

getMatcherAt

public XPathMatcher getMatcherAt(int index)
Returns the XPath matcher at the specified index.

getMatcherCount

public int getMatcherCount()
Returns the count of XPath matchers.

popContext

public void popContext()
Pops a context off of the stack.

pushContext

public void pushContext()
Pushes a new context onto the stack.

size

public int size()
Returns the size of the stack.
Copyright © 1999-2005 Apache XML Project. All Rights Reserved.