|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.validators.schema.identity.XPathMatcher
XPath matcher.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
protected static boolean |
DEBUG_ALL
Compile to true to debug everything. |
protected static boolean |
DEBUG_ANY
Don't touch this value unless you add more debug constants. |
protected static boolean |
DEBUG_MATCH
Compile to true to debug match. |
protected static boolean |
DEBUG_METHODS
Compile to true to debug method callbacks. |
protected static boolean |
DEBUG_METHODS2
Compile to true to debug important method callbacks. |
protected static boolean |
DEBUG_METHODS3
Compile to true to debug the really important methods. |
protected static boolean |
DEBUG_STACK
Compile to true to debug step index stack. |
protected IdentityConstraint |
fIDConstraint
|
protected NamespacesScope |
fNamespacesScope
Namespace scope. |
protected StringPool |
fStringPool
String pool. |
Constructor Summary | |
XPathMatcher(XPath xpath)
Constructs an XPath matcher that implements a document fragment handler. |
|
XPathMatcher(XPath xpath,
boolean shouldBufferContent,
IdentityConstraint idConstraint)
Constructs an XPath matcher that implements a document fragment handler. |
Method Summary | |
void |
characters(char[] ch,
int offset,
int length)
Character content. |
void |
endDocumentFragment()
The end of the document fragment. |
void |
endElement(QName element,
int eIndex,
SchemaGrammar grammar)
The end of an element. |
IdentityConstraint |
getIDConstraint()
|
boolean |
getIsSelector()
|
java.lang.String |
getMatchedString()
Returns the matched string. |
boolean |
isMatched()
Returns true if XPath has been matched. |
protected void |
matched(java.lang.String content,
DatatypeValidator val,
boolean isNil)
This method is called when the XPath handler matches the XPath expression. |
void |
startDocumentFragment(StringPool stringPool)
The start of the document fragment. |
void |
startElement(QName element,
XMLAttrList attributes,
int handle,
int eIndex,
SchemaGrammar grammar)
The start of an element. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final boolean DEBUG_ALL
protected static final boolean DEBUG_METHODS
protected static final boolean DEBUG_METHODS2
protected static final boolean DEBUG_METHODS3
protected static final boolean DEBUG_MATCH
protected static final boolean DEBUG_STACK
protected static final boolean DEBUG_ANY
protected StringPool fStringPool
protected NamespacesScope fNamespacesScope
protected IdentityConstraint fIDConstraint
Constructor Detail |
public XPathMatcher(XPath xpath)
xpath
- The xpath.public XPathMatcher(XPath xpath, boolean shouldBufferContent, IdentityConstraint idConstraint)
xpath
- The xpath.shouldBufferContent
- True if the matcher should buffer the
matched content.idConstraint:
- the identity constraint we're matching for;
null unless it's a Selector.Method Detail |
public boolean isMatched()
public boolean getIsSelector()
public IdentityConstraint getIDConstraint()
public java.lang.String getMatchedString()
protected void matched(java.lang.String content, DatatypeValidator val, boolean isNil) throws java.lang.Exception
public void startDocumentFragment(StringPool stringPool) throws java.lang.Exception
namespaceScope
- The namespace scope in effect at the
start of this document fragment.grammar:
- the schema grammar we're validating against.public void startElement(QName element, XMLAttrList attributes, int handle, int eIndex, SchemaGrammar grammar) throws java.lang.Exception
element
- The name of the element.attributes
- The element attributes.eIndex:
- the element index of the current elementgrammar:
- the currently-active Schema Grammarpublic void characters(char[] ch, int offset, int length) throws java.lang.Exception
public void endElement(QName element, int eIndex, SchemaGrammar grammar) throws java.lang.Exception
element
- The name of the element.eIndex:
- the elementDeclIndex of the current element;
needed so that we can look up its datatypeValidator.public void endDocumentFragment() throws java.lang.Exception
public java.lang.String toString()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |