|
||||||||||
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
Field Summary |
---|
Fields inherited from class gov.nasa.pds.tools.label.Statement |
---|
comment, identifier, label, lineNumber, sourceFile, sourceURI |
Constructor Summary | |
---|---|
protected |
AttributeStatement(Label sourcelabel,
int lineNumber,
String identifier)
Constructs a new attribute statement with no value |
|
AttributeStatement(Label sourcelabel,
int lineNumber,
String identifier,
Value value)
|
|
AttributeStatement(Label sourcelabel,
String identifier)
Constructs a new attribute statement with no line number or value |
|
AttributeStatement(Label sourcelabel,
String identifier,
Value value)
Constructs a new attribute statement with no line number |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getElementIdentifier()
Gets the unqualified identifier for the att |
String |
getNamespace()
Gets the namespace for this attribute |
Value |
getValue()
Retrieves the value of the attribute |
int |
hashcode()
|
boolean |
hasNamespace()
|
void |
setValue(Value value)
Sets the value for this attribute |
String |
toString()
|
Methods inherited from class gov.nasa.pds.tools.label.Statement |
---|
attachComment, compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AttributeStatement(Label sourcelabel, int lineNumber, String identifier)
lineNumber
- Line on which the statement startsidentifier
- Uniquely identifies the statementpublic AttributeStatement(Label sourcelabel, String identifier)
identifier
- Uniquely identifies the statementpublic AttributeStatement(Label sourcelabel, String identifier, Value value)
identifier
- Uniquely identifies the statementvalue
- Value
of the attributepublic AttributeStatement(Label sourcelabel, int lineNumber, String identifier, Value value)
lineNumber
- Line on which the statement startsidentifier
- Uniquely identifies the statementvalue
- Value
of the attributeMethod Detail |
---|
public String getNamespace()
public String getElementIdentifier()
public Value getValue()
Value
of the attributepublic void setValue(Value value)
value
- Value
of the attributepublic boolean hasNamespace()
public String toString()
toString
in class Statement
public boolean equals(Object object)
equals
in class Object
public int hashcode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |