Package gov.nasa.pds.harvest.search.util
Class StatementFinder
- java.lang.Object
-
- gov.nasa.pds.harvest.search.util.StatementFinder
-
public class StatementFinder extends Object
Class that finds statements in a PDS label that matches a user supplied list of keywords.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description StatementFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<gov.nasa.pds.tools.label.AttributeStatement>
getStatementsRecursively(gov.nasa.pds.tools.label.Label label, String identifier)
Recursively searches down a PDS label to find attributes that matches a user supplied keyword.static Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>>
getStatementsRecursively(gov.nasa.pds.tools.label.Label label, List<String> identifiers)
Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.static List<gov.nasa.pds.tools.label.AttributeStatement>
getStatementsRecursively(List<gov.nasa.pds.tools.label.Label> labels, String identifier)
Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.static Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>>
getStatementsRecursively(List<gov.nasa.pds.tools.label.Label> labels, List<String> identifiers)
Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.
-
-
-
Method Detail
-
getStatementsRecursively
public static List<gov.nasa.pds.tools.label.AttributeStatement> getStatementsRecursively(gov.nasa.pds.tools.label.Label label, String identifier)
Recursively searches down a PDS label to find attributes that matches a user supplied keyword.- Parameters:
label
- A PDS label file.identifier
- An identifier to search for in the labels.- Returns:
- A list of attributes that match the supplied identifier.
-
getStatementsRecursively
public static List<gov.nasa.pds.tools.label.AttributeStatement> getStatementsRecursively(List<gov.nasa.pds.tools.label.Label> labels, String identifier)
Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.- Parameters:
labels
- A list of PDS label files.identifier
- An identifier to search for in the labels.- Returns:
- A list of attributes that match the supplied identifier.
-
getStatementsRecursively
public static Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>> getStatementsRecursively(List<gov.nasa.pds.tools.label.Label> labels, List<String> identifiers)
Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.- Parameters:
labels
- A list of PDS label files.identifiers
- A list of keywords to find in a PDS label.- Returns:
- A map containing the attribute statements that were found in the PDS label.
-
getStatementsRecursively
public static Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>> getStatementsRecursively(gov.nasa.pds.tools.label.Label label, List<String> identifiers)
Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.- Parameters:
label
- An object representation of a PDS label.identifiers
- A list of keywords to find in a PDS label.- Returns:
- A map containing the attribute statements that were found in the PDS label.
-
-