|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.WildcardName
Class that represents a WildcardName in an XPath production. A WildcardName is of the form: '*' | NCName ':' '*' | QName This implements NodeTest so WildcardName is a NodeTest in a Basis
Constructor Summary | |
WildcardName(String name,
NamespaceContext nsContext)
|
|
WildcardName(WildcardNameToken token,
NamespaceContext nsContext)
Construct a WildcardName NodeTest from the lexical token |
Method Summary | |
boolean |
evaluate(Node node)
Evaluate the NodeTest with respect to the expression context |
String |
getLocalPart()
Return the local-part of the WildcardName. |
ExpandedQName |
getName()
Return the expanded name associated with this WildcardName |
NamespaceName |
getNamespaceName()
Return the namespace name for the prefix, if any. |
String |
getPrefix()
Return the prefix for the WildcardName. |
protected void |
initName(String prefix,
String localPart,
NamespaceContext nsContext)
Initialize the namespace uri (if there is a prefix) based on the passed namespace context |
boolean |
isFullWild()
Return true if WildcardName corresponds to '*' |
boolean |
isLocalWild()
Return true if localWild corresponds to '*' or 'foo:*' |
void |
setPrincipalNodeType(int principalNodeType)
Set the node type that this WildcardName matches. |
String |
toString()
Provide a readable description for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WildcardName(WildcardNameToken token, NamespaceContext nsContext) throws XPathException
token
- token scanned that represents WildcardNamepublic WildcardName(String name, NamespaceContext nsContext) throws XPathException
Method Detail |
public void setPrincipalNodeType(int principalNodeType)
principalNodeType
- Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE, etc.public boolean evaluate(Node node)
evaluate
in interface NodeTest
node
- node to evaluate
true
if context Node is matched by NodeTest, false
otherwisepublic ExpandedQName getName()
public String getPrefix()
public String getLocalPart()
public NamespaceName getNamespaceName()
public boolean isFullWild()
public boolean isLocalWild()
public String toString()
protected void initName(String prefix, String localPart, NamespaceContext nsContext) throws XPathException
nsContext
- The namespace context with which to resolve
the prefix
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |