Class AutogenExtractor

java.lang.Object
gov.nasa.pds.registry.common.meta.AutogenExtractor

public class AutogenExtractor extends Object
Generates key-value pairs for all fields in a PDS label.
Author:
karpenko
  • Constructor Details

    • AutogenExtractor

      public AutogenExtractor()
      Constructor
  • Method Details

    • setClassFilters

      public void setClassFilters(Set<String> include, Set<String> exclude)
      Set class filters. NOTE: You could not have both include and exclude filters at the same time.
      Parameters:
      include - include classes
      exclude - exclude classes
    • extract

      public XmlNamespaces extract(File file, FieldMap fields) throws Exception
      Extracts all fields from a label file into a FieldMap
      Parameters:
      file - PDS label file
      fields - key-value pairs (output parameter)
      Returns:
      XML namespace mappings
      Throws:
      Exception - an exception