gov.nasa.pds.citool.ri
Class StatementFinder

java.lang.Object
  extended by gov.nasa.pds.citool.ri.StatementFinder

public class StatementFinder
extends java.lang.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 java.util.Map<java.lang.String,java.util.List<gov.nasa.pds.tools.label.AttributeStatement>> getStatementsRecursively(gov.nasa.pds.tools.label.Label label, java.util.List<java.lang.String> identifiers)
          Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.
static java.util.List<gov.nasa.pds.tools.label.AttributeStatement> getStatementsRecursively(gov.nasa.pds.tools.label.Label label, java.lang.String identifier)
          Recursively searches down a PDS label to find attributes that matches a user supplied keyword.
static java.util.Map<java.lang.String,java.util.List<gov.nasa.pds.tools.label.AttributeStatement>> getStatementsRecursively(java.util.List<gov.nasa.pds.tools.label.Label> labels, java.util.List<java.lang.String> identifiers)
          Recursively searches down a PDS label to find attributes that match a user supplied list of keywords.
static java.util.List<gov.nasa.pds.tools.label.AttributeStatement> getStatementsRecursively(java.util.List<gov.nasa.pds.tools.label.Label> labels, java.lang.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 java.util.List<gov.nasa.pds.tools.label.AttributeStatement> getStatementsRecursively(gov.nasa.pds.tools.label.Label label,
                                                                                                   java.lang.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 java.util.List<gov.nasa.pds.tools.label.AttributeStatement> getStatementsRecursively(java.util.List<gov.nasa.pds.tools.label.Label> labels,
                                                                                                   java.lang.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 java.util.Map<java.lang.String,java.util.List<gov.nasa.pds.tools.label.AttributeStatement>> getStatementsRecursively(java.util.List<gov.nasa.pds.tools.label.Label> labels,
                                                                                                                                   java.util.List<java.lang.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 java.util.Map<java.lang.String,java.util.List<gov.nasa.pds.tools.label.AttributeStatement>> getStatementsRecursively(gov.nasa.pds.tools.label.Label label,
                                                                                                                                   java.util.List<java.lang.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 © 2005-2010 Planetary Data System. All Rights Reserved.