Class PDS3LabelReader
- java.lang.Object
-
- gov.nasa.pds.imaging.generate.readers.PDS3LabelReader
-
public class PDS3LabelReader extends Object
- Author:
- jpadams, slevoe
-
-
Constructor Summary
Constructors Constructor Description PDS3LabelReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getPDSObjectNames()List<String>getPDSSimpleItemNames()List<String>getTaskNames()DocumentparseLabel(String filePath)Parse the label and create a XML DOM representation.Map<String,Map>traverseDOM(Node root)Traverses the DOM returned by the PDSLabelToDom object.
-
-
-
Method Detail
-
parseLabel
public Document parseLabel(String filePath) throws IOException
Parse the label and create a XML DOM representation. PDSLabelToDom: Within the DOM returned the Elements are: PDS3 - At top of document to describe it is a PDS3 label COMMENT - All commented text in label is contained within these elements item - A data item at base level of label GROUP - A group of related elements containing a collection of items OBJECT - A group of related elements containing a collection of items- Parameters:
filePath-- Throws:
IOException
-
traverseDOM
public Map<String,Map> traverseDOM(Node root)
Traverses the DOM returned by the PDSLabelToDom object.- Parameters:
root-
-
-