Package gov.nasa.pds.harvest.search.util
Class PDSNamespaceContext
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.util.PDSNamespaceContext
 
- 
- All Implemented Interfaces:
- NamespaceContext
 
 public class PDSNamespaceContext extends Object implements NamespaceContext Class that provides support for handling namespaces in PDS4 data products.- Author:
- mcayanan
 
- 
- 
Constructor SummaryConstructors Constructor Description PDSNamespaceContext()Constructor.PDSNamespaceContext(List<Namespace> namespaces)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNamespace(Namespace namespace)Adds a namespace.StringgetNamespaceURI(String prefix)Gets the namespace URI.StringgetPrefix(String arg0)Method not neededIteratorgetPrefixes(String arg0)Method not needed
 
- 
- 
- 
Method Detail- 
addNamespacepublic void addNamespace(Namespace namespace) Adds a namespace.- Parameters:
- namespace- A namespace to support.
 
 - 
getNamespaceURIpublic String getNamespaceURI(String prefix) Gets the namespace URI.- Specified by:
- getNamespaceURIin interface- NamespaceContext
- Parameters:
- prefix- The prefix
- Returns:
- The URI to the given prefix. Returns the PDS namespace URI if the given prefix is empty or null.
 
 - 
getPrefixpublic String getPrefix(String arg0) Method not needed- Specified by:
- getPrefixin interface- NamespaceContext
 
 - 
getPrefixespublic Iterator getPrefixes(String arg0) Method not needed- Specified by:
- getPrefixesin interface- NamespaceContext
 
 
- 
 
-