public class Reference extends StructuralFeature
StructuralFeature
representing a reference, which links several Classifier
s.Constructor and Description |
---|
Reference(String localName)
Constructs a new
Reference with the given localName . |
Modifier and Type | Method and Description |
---|---|
static Reference |
from(Attribute attribute)
Converts an
Attribute to a Reference . |
Identifier |
getIdReference()
Returns the identifier of the referenced element.
|
boolean |
isContainment()
Returns whether this reference is a containment.
|
boolean |
isReference()
Defines whether this feature is a
Reference . |
void |
setContainment(boolean containment)
Defines whether this reference is a containment.
|
void |
setIdReference(Identifier idReference)
Defines the identifier of the referenced element.
|
getId, getIndex, isAttribute, isMany, setId, setIndex, setMany
getLocalName, toString
public Reference(String localName)
Reference
with the given localName
.localName
- the name of this referencepublic static Reference from(Attribute attribute)
Attribute
to a Reference
.attribute
- the attribute to convertpublic Identifier getIdReference()
public void setIdReference(Identifier idReference)
idReference
- the identifierpublic boolean isReference()
StructuralFeature
Reference
.isReference
in class StructuralFeature
true
if this feature is a reference.public boolean isContainment()
true
if this reference is a containmentpublic void setContainment(boolean containment)
containment
- true
if this reference is a containmentCopyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.