Class XMLLabelContext


  • public class XMLLabelContext
    extends java.lang.Object
    Class to hold context information from a PDS4 product label.
    Author:
    mcayanan
    • Constructor Detail

      • XMLLabelContext

        public XMLLabelContext()
        Constructor.
    • Method Detail

      • setNamespaces

        public void setNamespaces​(PDSNamespacePrefixMapper namespaces)
        Sets the namespaces.
        Parameters:
        namespaces - a mapping of namespace prefixes to URIs.
      • getSchemaLocation

        public java.lang.String getSchemaLocation()
        Returns:
        get the SchemaLocation that was set in the label.
      • setSchemaLocation

        public void setSchemaLocation​(java.lang.String location)
        Sets the schemalocation.
        Parameters:
        location - What was set in the SchemaLocation attribute.
      • getXmlModels

        public java.util.List<java.lang.String> getXmlModels()
        Returns:
        Returns the values set in the xml-models processing instructions.
      • getXmlModelPIs

        public java.lang.String getXmlModelPIs()
        Returns:
        Returns string representations of the xml-models processing instructions set in the label.
      • addXmlModel

        public void addXmlModel​(java.lang.String model)
        Adds the xml-model value to the list already captured.
        Parameters:
        model - The xml-model value.