gov.nasa.pds.citool.ri
Class StatementFinder

java.lang.Object
  extended by gov.nasa.pds.citool.ri.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
StatementFinder()
           
 
Method Summary
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(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(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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementFinder

public StatementFinder()
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.


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.