|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.label.Statement
gov.nasa.pds.tools.label.AttributeStatement
public class AttributeStatement
This class represents an attribute assignment in a PDS label file.
Field Summary |
---|
Fields inherited from class gov.nasa.pds.tools.label.Statement |
---|
context, filename, identifier, lineNumber |
Constructor Summary | |
---|---|
protected |
AttributeStatement(int lineNumber,
java.lang.String identifier)
Constructs a new attribute statement with no value |
|
AttributeStatement(int lineNumber,
java.lang.String identifier,
Value value)
|
|
AttributeStatement(java.lang.String identifier)
Constructs a new attribute statement with no line number or value |
|
AttributeStatement(java.lang.String identifier,
Value value)
Constructs a new attribute statement with no line number |
Method Summary | |
---|---|
void |
attachComment(CommentStatement comment)
|
java.lang.String |
getElementIdentifier()
Gets the unqualified identifier for the att |
java.lang.String |
getNamespace()
Gets the namespace for this attribute |
Value |
getValue()
Retrieves the value of the attribute |
boolean |
hasNamespace()
|
void |
setValue(Value value)
Sets the value for this attribute |
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 |
---|
protected AttributeStatement(int lineNumber, java.lang.String identifier)
lineNumber
- Line on which the statement startsidentifier
- Uniquely identifies the statementpublic AttributeStatement(java.lang.String identifier)
identifier
- Uniquely identifies the statementpublic AttributeStatement(java.lang.String identifier, Value value)
identifier
- Uniquely identifies the statementvalue
- Value
of the attributepublic AttributeStatement(int lineNumber, java.lang.String identifier, Value value)
lineNumber
- Line on which the statement startsidentifier
- Uniquely identifies the statementvalue
- Value
of the attributeMethod Detail |
---|
public java.lang.String getNamespace()
public java.lang.String getElementIdentifier()
public Value getValue()
Value
of the attributepublic void setValue(Value value)
value
- Value
of the attributepublic void attachComment(CommentStatement comment)
attachComment
in class Statement
public boolean hasNamespace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |