Package gov.nasa.pds.label.jaxb
Class PDSNamespacePrefixMapper
- java.lang.Object
-
- org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
-
- gov.nasa.pds.label.jaxb.PDSNamespacePrefixMapper
-
public class PDSNamespacePrefixMapper extends org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
Class to hold namespace information set in a product label.- Author:
- mcayanan
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE
-
Constructor Summary
Constructors Constructor Description PDSNamespacePrefixMapper()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNamespaceURIMapping(java.lang.String prefix, java.lang.String URI)
Adds a namespace to the map.java.lang.String
getDefaultNamespaceURI()
java.lang.String
getPreferredPrefix(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)
void
setDefaultNamespaceURI(java.lang.String defaultNamespaceURI)
Sets the default namespace uri.
-
-
-
Field Detail
-
FILE
public static final java.lang.String FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDefaultNamespaceURI
public void setDefaultNamespaceURI(java.lang.String defaultNamespaceURI)
Sets the default namespace uri.- Parameters:
defaultNamespaceURI
- namespace uri.
-
getDefaultNamespaceURI
public java.lang.String getDefaultNamespaceURI()
- Returns:
- Gets the default namespace uri.
-
addNamespaceURIMapping
public void addNamespaceURIMapping(java.lang.String prefix, java.lang.String URI)
Adds a namespace to the map.- Parameters:
prefix
- The namespace prefix.URI
- The namespace uri.
-
getPreferredPrefix
public java.lang.String getPreferredPrefix(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)
- Specified by:
getPreferredPrefix
in classorg.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
-
-