public class Attribute extends StructuralFeature
StructuralFeature
representing an attribute, with a value.Constructor and Description |
---|
Attribute(String localName)
Constructs a new
Attribute with the given localName . |
Modifier and Type | Method and Description |
---|---|
static Attribute |
from(Reference reference)
Converts a
Reference to an Attribute . |
Object |
getValue()
Returns the value of this attribute.
|
boolean |
isAttribute()
Defines whether this feature is an
Attribute . |
void |
setValue(Object value)
Defines the value of this attribute.
|
getId, getIndex, isMany, isReference, setId, setIndex, setMany
getLocalName, toString
public Attribute(String localName)
Attribute
with the given localName
.localName
- the name of this attributepublic static Attribute from(Reference reference)
Reference
to an Attribute
.reference
- the reference to convertpublic Object getValue()
public void setValue(Object value)
value
- the valuepublic boolean isAttribute()
StructuralFeature
Attribute
.isAttribute
in class StructuralFeature
true
if this feature is an attribute.Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.