Class CatalogObject


  • public class CatalogObject
    extends Object
    Class to parse a PDS catalog file
    Author:
    hlee
    • Constructor Detail

      • CatalogObject

        public CatalogObject​(IngestReport report)
    • Method Detail

      • getFilename

        public String getFilename()
      • getLabel

        public gov.nasa.pds.tools.label.Label getLabel()
      • getCatObjType

        public String getCatObjType()
      • setIsLocal

        public void setIsLocal​(boolean local)
      • getIsLocal

        public boolean getIsLocal()
      • setVersion

        public void setVersion​(float version)
      • getVersion

        public float getVersion()
      • getMetadata

        public Metadata getMetadata()
      • setFileObject

        public void setFileObject()
        Set a file object
      • getFileObject

        public FileObject getFileObject()
      • getPointerFiles

        public List<String> getPointerFiles()
      • setExtrinsicObject

        public void setExtrinsicObject​(RegistryObject product)
      • getResrcObjs

        public List<gov.nasa.pds.tools.label.ObjectStatement> getResrcObjs()
      • getCatalogObj

        protected Map<String,​gov.nasa.pds.tools.label.AttributeStatement> getCatalogObj​(List<gov.nasa.pds.tools.label.ObjectStatement> objList,
                                                                                              Map<String,​gov.nasa.pds.tools.label.AttributeStatement> pdsLabelMap)
        Gets the catalog object from the LIST, sets to hash map
        Parameters:
        objList - List of the catalog object statement(s)
        pdsLabelMap - Hashmap of the PDS label keyword and value for all ATTRIBUTE
      • object2List

        protected List<gov.nasa.pds.tools.label.ObjectStatement> object2List​(gov.nasa.pds.tools.label.Label label)
        Converts a label object to List type
        Parameters:
        label - Label object
      • getPdsLabelMap

        public Map<String,​gov.nasa.pds.tools.label.AttributeStatement> getPdsLabelMap()
      • processLabel

        public boolean processLabel​(gov.nasa.pds.tools.label.Label label)
        Processes the given label and converts attributes into the hashmap object.
        Parameters:
        label - Label object
      • getValueList

        public static List<String> getValueList​(gov.nasa.pds.tools.label.Value value)
        Determine the given string value is a multivalued or not
        Returns:
        list of string value if the given value is multivalued (surrounding within { ... }) otherwise, null value is returned.