gov.nasa.pds.tools.label
Class GroupStatement

java.lang.Object
  extended by gov.nasa.pds.tools.label.Statement
      extended by gov.nasa.pds.tools.label.GroupStatement
All Implemented Interfaces:
java.lang.Comparable

public class GroupStatement
extends Statement

Version:
$Revision: 2915 $
Author:
pramirez

Field Summary
 
Fields inherited from class gov.nasa.pds.tools.label.Statement
context, filename, identifier, lineNumber
 
Constructor Summary
GroupStatement(int lineNumber, java.lang.String identifier)
           
 
Method Summary
 void addStatement(Statement statement)
           
 void attachComment(CommentStatement comment)
           
 AttributeStatement getAttribute(java.lang.String identifier)
          Retrieves the named attribute.
 java.util.List getAttributes()
          Retrieves the attributes of this group.
 java.util.List getStatements()
           
 boolean hasAttribute(java.lang.String identifier)
           
 
Methods inherited from class gov.nasa.pds.tools.label.Statement
compareTo, getContext, getFilename, getIdentifier, getLineNumber, setContext, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupStatement

public GroupStatement(int lineNumber,
                      java.lang.String identifier)
Parameters:
lineNumber -
identifier -
Method Detail

getAttribute

public AttributeStatement getAttribute(java.lang.String identifier)
Retrieves the named attribute.

Parameters:
identifier -
Returns:
The named AttributeStatement or null if not found.

getAttributes

public java.util.List getAttributes()
Retrieves the attributes of this group.

Returns:
The list of AttributeStatment.

addStatement

public void addStatement(Statement statement)

hasAttribute

public boolean hasAttribute(java.lang.String identifier)

attachComment

public void attachComment(CommentStatement comment)
Specified by:
attachComment in class Statement

getStatements

public java.util.List getStatements()


Copyright © 2005-2007 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.