Class PrefixNamespaceTest


  • public class PrefixNamespaceTest
    extends org.jaxen.pattern.NamespaceTest

    NamespaceTest tests for a given namespace URI.

    Version:
    $Revision$
    Author:
    James Strachan
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected short nodeType  
      protected String prefix  
      • Fields inherited from class org.jaxen.pattern.Pattern

        ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, NO_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
    • Field Detail

      • prefix

        protected final String prefix
      • nodeType

        protected final short nodeType
    • Constructor Detail

      • PrefixNamespaceTest

        public PrefixNamespaceTest​(String prefix,
                                   short nodeType)
    • Method Detail

      • getURI

        protected String getURI​(Object node,
                                org.jaxen.Context context)
        Returns the URI of the current prefix or "" if no URI can be found
        Overrides:
        getURI in class org.jaxen.pattern.NamespaceTest