Class AutogenExtractor
java.lang.Object
gov.nasa.pds.registry.common.meta.AutogenExtractor
Generates key-value pairs for all fields in a PDS label.
- Author:
- karpenko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts all fields from a label file into a FieldMapvoidsetClassFilters(Set<String> include, Set<String> exclude) Set class filters.
-
Constructor Details
-
AutogenExtractor
public AutogenExtractor()Constructor
-
-
Method Details
-
setClassFilters
Set class filters. NOTE: You could not have both include and exclude filters at the same time.- Parameters:
include- include classesexclude- exclude classes
-
extract
Extracts all fields from a label file into a FieldMap- Parameters:
file- PDS label filefields- key-value pairs (output parameter)- Returns:
- XML namespace mappings
- Throws:
Exception- an exception
-