Package org.xtce.toolkit
Class XTCENamespaceContext
- java.lang.Object
-
- org.xtce.toolkit.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 Summary
Constructors Constructor Description XTCENamespaceContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNamespaceURI(String prefix)Retrieve the URI associated with the XML node name prefix.StringgetPrefix(String uri)Retrieve the prefix associated with a URI.Iterator<String>getPrefixes(String val)Retrieve the declared prefixes for this Node context
-
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI(String prefix)
Retrieve the URI associated with the XML node name prefix.- Specified by:
getNamespaceURIin interfaceNamespaceContext- 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:
getPrefixesin interfaceNamespaceContext- 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:
getPrefixin interfaceNamespaceContext- Parameters:
uri- String containing the URI declared in the XML.- Returns:
- String containing the prefix.
-
-