| java.lang.Object com.caucho.xpath.pattern.AbstractPattern com.caucho.xpath.pattern.NSNamePattern
NSNamePattern | public class NSNamePattern extends AbstractPattern (Code) | | Matches a named node, like foo:para or @foo:id when the prefix
maps to a namespace.
|
NSNamePattern | public NSNamePattern(AbstractPattern parent, String namespace, String local, int nodeType)(Code) | | Creates the namespace pattern.
Parameters: parent - the parent pattern. Parameters: namespace - the node's namespace URL. Parameters: local - the node's local name. Parameters: nodeType - the node type to match. |
copyPosition | public AbstractPattern copyPosition()(Code) | | Copies the position (non-axis) portion of the pattern.
|
equals | public boolean equals(Object b)(Code) | | Returns true if the two patterns are equal.
|
getPriority | public double getPriority()(Code) | | Nodes have a higher default priority.
|
match | public boolean match(Node node, ExprEnvironment env) throws XPathException(Code) | | Matches if the namespace matches and the local name matches.
Parameters: node - the current node Parameters: env - the variable environment true if the node matches |
Methods inherited from com.caucho.xpath.pattern.AbstractPattern | public AbstractPattern copyAxis()(Code)(Java Doc) public AbstractPattern copyPosition()(Code)(Java Doc) public int count(Node node, Env env, AbstractPattern pattern) throws XPathException(Code)(Java Doc) public NodeIterator createNodeIterator(Node node, ExprEnvironment env, AbstractPattern pattern) throws XPathException(Code)(Java Doc) public Node findAny(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public Node firstNode(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public String getNodeName()(Code)(Java Doc) public AbstractPattern getParent()(Code)(Java Doc) protected String getPrefix()(Code)(Java Doc) public double getPriority()(Code)(Java Doc) public boolean isAscending()(Code)(Java Doc) boolean isSingleLevel()(Code)(Java Doc) boolean isSingleSelect()(Code)(Java Doc) public boolean isStrictlyAscending()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) public Node lastNode(Node node)(Code)(Java Doc) abstract public boolean match(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public Node nextNode(Node node, Node last) throws XPathException(Code)(Java Doc) public int position(Node node, Env env, AbstractPattern pattern) throws XPathException(Code)(Java Doc) public NodeIterator select(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public NodeIterator selectUnique(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public String toPatternString()(Code)(Java Doc)
|
|
|