public class AttributeStatement extends Statement
comment, identifier, label, lineNumber, sourceFile, sourceURI
Modifier | Constructor and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
attachComment, compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType
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 String getNamespace()
public String getElementIdentifier()
public Value getValue()
Value
of the attributepublic void setValue(Value value)
value
- Value
of the attributepublic boolean hasNamespace()
public int hashcode()
Copyright © 2005–2015 Planetary Data System. All rights reserved.