gov.nasa.pds.tools.label
Class GroupStatement
java.lang.Object
gov.nasa.pds.tools.label.Statement
gov.nasa.pds.tools.label.GroupStatement
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Object>
public class GroupStatement
- extends Statement
- Version:
- $Revision: 5206 $
- Author:
- pramirez, jagander
Constructor Summary |
GroupStatement(Label sourceLabel,
int lineNumber,
java.lang.String identifier)
Constructs an empty group statement |
GroupStatement(Label sourceLabel,
int lineNumber,
java.lang.String identifier,
java.util.Map<DictIdentifier,java.util.List<Statement>> statements)
Constructs a group statement that contains the given statements |
Methods inherited from class gov.nasa.pds.tools.label.Statement |
attachComment, compareTo, getComment, getIdentifier, getLineNumber, getSourceFile, getSourceURI, toString, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GroupStatement
public GroupStatement(Label sourceLabel,
int lineNumber,
java.lang.String identifier)
- Constructs an empty group statement
- Parameters:
lineNumber
- at which this statement occursidentifier
- of the statementsourceLabel
- in which this statement occurs
GroupStatement
public GroupStatement(Label sourceLabel,
int lineNumber,
java.lang.String identifier,
java.util.Map<DictIdentifier,java.util.List<Statement>> statements)
- Constructs a group statement that contains the given statements
- Parameters:
lineNumber
- at which this statement occursidentifier
- of the statementstatements
- contained within this group statement
getAttribute
public AttributeStatement getAttribute(java.lang.String id)
- Retrieves the named attribute.
- Parameters:
id
-
- Returns:
- The named AttributeStatement or null if not found.
getAttributes
public java.util.List<AttributeStatement> getAttributes()
- Retrieves the attributes of this group.
- Returns:
- The list of AttributeStatment nested within this group
addStatement
public void addStatement(Statement statement)
hasAttribute
public boolean hasAttribute(java.lang.String id)
getStatements
public java.util.List<Statement> getStatements()
Copyright © 2005-2010 Planetary Data System. All Rights Reserved.