Package gov.nasa.pds.label.jaxb
Class XMLLabelContext
java.lang.Object
gov.nasa.pds.label.jaxb.XMLLabelContext
Class to hold context information from a PDS4 product label.
- Author:
- mcayanan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddXmlModel(String model) Adds the xml-model value to the list already captured.voidsetNamespaces(PDSNamespacePrefixMapper namespaces) Sets the namespaces.voidsetSchemaLocation(String location) Sets the schemalocation.
-
Constructor Details
-
XMLLabelContext
public XMLLabelContext()Constructor.
-
-
Method Details
-
getNamespaces
- Returns:
- get the namespaces.
-
setNamespaces
Sets the namespaces.- Parameters:
namespaces- a mapping of namespace prefixes to URIs.
-
getSchemaLocation
- Returns:
- get the SchemaLocation that was set in the label.
-
setSchemaLocation
Sets the schemalocation.- Parameters:
location- What was set in the SchemaLocation attribute.
-
getXmlModels
- Returns:
- Returns the values set in the xml-models processing instructions.
-
getXmlModelPIs
- Returns:
- Returns string representations of the xml-models processing instructions set in the label.
-
addXmlModel
Adds the xml-model value to the list already captured.- Parameters:
model- The xml-model value.
-