Class com.ibm.xml.parser.Match
java.lang.Object
|
+----com.ibm.xml.parser.Match
- public class Match
- extends java.lang.Object
Match is a utility class which handles namespace matching.
- Version:
- Revision: 10 1.3 src/com/ibm/xml/parser/Match.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4
- See Also:
- Namespace, TXElement, TXAttribute, TXPI
Constructor Summary
|
Match()
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNAME
public static final int QNAME
NSLOCAL
public static final int NSLOCAL
NS
public static final int NS
Match
public Match()
matchName
public static boolean matchName(Namespace target,
int matchType,
java.lang.String uri,
java.lang.String qNameOrLocalName)
- Returns the first TXElement match through all child Element Nodes.
All specified input parameters must match for an element to be judged as matched (see Namespace for details).
Various namespace matching algorithms are supported: qualified name, local name & URI, or URI.
Searching is done recursively, not just for immediate Child Nodes.
- Parameters:
matchType
- Namespace match type: Match.QNAME, Match.NSLOCAL, Match.NS
uri
- When matching a URI, specify the value to match; otherwise, specify null.
qNameOrLocalName
- When matching a qualified name or local name, specify the value to match; otherwise, specify null.
- Returns:
- An array of matched TXElement Nodes, or null if no matches.
- See Also:
- Namespace