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:
- Comparable<Object>
public class GroupStatement
- extends Statement
- Version:
- $Revision: 8250 $
- Author:
- pramirez, jagander
Methods inherited from class gov.nasa.pds.tools.label.Statement |
attachComment, compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, toString, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType |
GroupStatement
public GroupStatement(Label sourceLabel,
int lineNumber,
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,
String identifier,
Map<DictIdentifier,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(String id)
- Retrieves the named attribute.
- Parameters:
id
-
- Returns:
- The named AttributeStatement or null if not found.
getAttributes
public 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(String id)
getStatements
public List<Statement> getStatements()
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashcode
public int hashcode()
Copyright © 2005-2011 Planetary Data System. All Rights Reserved.