org.jboss.dna.jcr.xpath
Class XPath.NameTest
java.lang.Object
   org.jboss.dna.jcr.xpath.XPath.Component
org.jboss.dna.jcr.xpath.XPath.Component
       org.jboss.dna.jcr.xpath.XPath.NodeTest
org.jboss.dna.jcr.xpath.XPath.NodeTest
           org.jboss.dna.jcr.xpath.XPath.NameTest
org.jboss.dna.jcr.xpath.XPath.NameTest
- Enclosing class:
- XPath
- public static class XPath.NameTest 
- extends XPath.NodeTest
 
 
 
 
 
XPath.NameTest
public XPath.NameTest(String prefixTest,
                      String localTest)
getPrefixTest
public String getPrefixTest()
- 
- Returns:
- the prefix criteria, or null if the prefix criteria is a wildcard
 
getLocalTest
public String getLocalTest()
- 
- Returns:
- the local name criteria, or null if the local name criteria is a wildcard
 
matches
public boolean matches(String prefix,
                       String local)
- Determine if this name test exactly matches the supplied prefix and local name values.
 
- 
- Parameters:
- prefix- the prefix; may be null
- local- the local name; may be null
- Returns:
- true if this name matches the supplied values, or false otherwise.
 
isWildcard
public boolean isWildcard()
- Return whether this represents a wildcard, meaning both getPrefixTest()andgetLocalTest()are null.
 
- 
- Returns:
- true if this is a wildcard name test.
 
hashCode
public int hashCode()
- 
 
- 
- Overrides:
- hashCodein class- Object
 
- 
- See Also:
- Object.hashCode()
 
equals
public boolean equals(Object obj)
- 
 
- 
- Overrides:
- equalsin class- Object
 
- 
- See Also:
- Object.equals(java.lang.Object)
 
toString
public String toString()
- 
 
- 
- Overrides:
- toStringin class- Object
 
- 
- See Also:
- Object.toString()
 
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.