public abstract class StructuralFeature extends NamedElement
Constructor and Description |
---|
StructuralFeature(String localName)
Constructs a new
StructuralFeature with the given name . |
Modifier and Type | Method and Description |
---|---|
Identifier |
getId()
Returns the identifier of this feature.
|
int |
getIndex()
Returns the index of this feature.
|
boolean |
isAttribute()
Defines whether this feature is an
Attribute . |
boolean |
isMany()
Sets whether this feature is multi-valued, or not.
|
boolean |
isReference()
Defines whether this feature is a
Reference . |
void |
setId(Identifier id)
Defines the identifier of this feature.
|
void |
setIndex(int index)
Defines the index of this feature.
|
void |
setMany(boolean many)
Defines whether this feature is multi-valued.
|
getLocalName, toString
public StructuralFeature(String localName)
StructuralFeature
with the given name
. Its index is initialized to
PersistentStore.NO_INDEX
.localName
- the name of this featurepublic Identifier getId()
public void setId(Identifier id)
id
- the identifierpublic int getIndex()
public void setIndex(int index)
index
- the indexpublic boolean isMany()
true
if this feature is multi-valuedpublic void setMany(boolean many)
many
- true
if this feature is multi-valuedpublic boolean isReference()
Reference
.true
if this feature is a reference.public boolean isAttribute()
Attribute
.true
if this feature is an attribute.Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.