Class XTCENamespaceContext

  • All Implemented Interfaces:
    NamespaceContext

    public class XTCENamespaceContext
    extends Object
    implements NamespaceContext
    The XTCE Namespace Context class is used to support XPath Queries by mapping the "xtce" prefix to the URI in the XTCEConstants class.
    Author:
    David Overeem
    • Constructor Detail

      • XTCENamespaceContext

        public XTCENamespaceContext()
    • Method Detail

      • getNamespaceURI

        public String getNamespaceURI​(String prefix)
        Retrieve the URI associated with the XML node name prefix.
        Specified by:
        getNamespaceURI in interface NamespaceContext
        Parameters:
        prefix - String containing the prefix.
        Returns:
        String containing the URI.
      • getPrefixes

        public Iterator<String> getPrefixes​(String val)
        Retrieve the declared prefixes for this Node context
        Specified by:
        getPrefixes in interface NamespaceContext
        Parameters:
        val - String containing something I don't know what is and is not used in this application.
        Returns:
        Iterator over the list of known prefixes.
      • getPrefix

        public String getPrefix​(String uri)
        Retrieve the prefix associated with a URI.
        Specified by:
        getPrefix in interface NamespaceContext
        Parameters:
        uri - String containing the URI declared in the XML.
        Returns:
        String containing the prefix.