public class AttributeReferenceImpl<T extends ModelElementInstance> extends ReferenceImpl<T> implements AttributeReference<T>
Modifier and Type | Field and Description |
---|---|
protected AttributeImpl<String> |
referenceSourceAttribute |
referenceTargetAttribute
Constructor and Description |
---|
AttributeReferenceImpl(AttributeImpl<String> referenceSourceAttribute) |
Modifier and Type | Method and Description |
---|---|
String |
getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Get the reference identifier which is set in the reference source
|
Attribute<String> |
getReferenceSourceAttribute()
Get the reference source attribute
|
ModelElementType |
getReferenceSourceElementType() |
protected void |
removeReference(ModelElementInstance referenceSourceElement,
ModelElementInstance referenceTargetElement)
Remove the reference in the reference source model element instance
|
protected void |
setReferenceIdentifier(ModelElementInstance referenceSourceElement,
String referenceIdentifier)
Set the reference identifier in the reference source
|
protected void |
updateReference(ModelElementInstance referenceSourceElement,
String oldIdentifier,
String newIdentifier)
Update the reference identifier of the reference source model element instance
|
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, referencedElementRemoved, referencedElementUpdated, setReferenceTargetAttribute, setReferenceTargetElement, setReferenceTargetElementType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, setReferenceTargetElement
protected final AttributeImpl<String> referenceSourceAttribute
public AttributeReferenceImpl(AttributeImpl<String> referenceSourceAttribute)
public String getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Reference
getReferenceIdentifier
in interface Reference<T extends ModelElementInstance>
referenceSourceElement
- the reference source model element instanceprotected void setReferenceIdentifier(ModelElementInstance referenceSourceElement, String referenceIdentifier)
ReferenceImpl
setReferenceIdentifier
in class ReferenceImpl<T extends ModelElementInstance>
referenceSourceElement
- the reference source model element instancereferenceIdentifier
- the new reference identifierpublic Attribute<String> getReferenceSourceAttribute()
getReferenceSourceAttribute
in interface AttributeReference<T extends ModelElementInstance>
public ModelElementType getReferenceSourceElementType()
getReferenceSourceElementType
in interface Reference<T extends ModelElementInstance>
ModelElementType
of the source element.protected void updateReference(ModelElementInstance referenceSourceElement, String oldIdentifier, String newIdentifier)
ReferenceImpl
updateReference
in class ReferenceImpl<T extends ModelElementInstance>
referenceSourceElement
- the reference source model element instanceoldIdentifier
- the old reference identifiernewIdentifier
- the new reference identifierprotected void removeReference(ModelElementInstance referenceSourceElement, ModelElementInstance referenceTargetElement)
ReferenceImpl
removeReference
in class ReferenceImpl<T extends ModelElementInstance>
referenceSourceElement
- the reference source model element instanceCopyright © 2019. All rights reserved.