gov.nasa.pds.krtool.find
Class StatementFinder

java.lang.Object
  extended by gov.nasa.pds.krtool.find.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
 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.
 
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 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-2009 Planetary Data System. All Rights Reserved.