org.apache.xerces.impl.xs

Class XMLSchemaValidator.XPathMatcherStack

Enclosing Class:
XMLSchemaValidator

protected static class XMLSchemaValidator.XPathMatcherStack
extends java.lang.Object

Stack of XPath matchers for identity constraints.
Author:
Andy Clark, IBM

Field Summary

protected IntStack
fContextStack
Offset stack for contexts.
protected XPathMatcher[]
fMatchers
Active matchers.
protected int
fMatchersCount
Count of active matchers.

Constructor Summary

XPathMatcherStack()

Method Summary

void
addMatcher(XPathMatcher matcher)
Adds a matcher.
void
clear()
Resets the XPath matcher stack.
XPathMatcher
getMatcherAt(int index)
Returns the XPath matcher at the specified index.
int
getMatcherCount()
Returns the count of XPath matchers.
void
popContext()
Pops a context off of the stack.
void
pushContext()
Pushes a new context onto the stack.
int
size()
Returns the size of the stack.

Field Details

fContextStack

protected IntStack fContextStack
Offset stack for contexts.

fMatchers

protected XPathMatcher[] fMatchers
Active matchers.

fMatchersCount

protected int fMatchersCount
Count of active matchers.

Constructor Details

XPathMatcherStack

public XPathMatcherStack()

Method Details

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 B) 1999-2005 Apache XML Project. All Rights Reserved.