public abstract class AttributeReferenceCollection<T extends ModelElementInstance> extends AttributeReferenceImpl<T> implements AttributeReference<T>
Modifier and Type | Field and Description |
---|---|
protected String |
separator |
referenceSourceAttribute
referenceTargetAttribute
Constructor and Description |
---|
AttributeReferenceCollection(AttributeImpl<String> referenceSourceAttribute) |
Modifier and Type | Method and Description |
---|---|
Collection<T> |
getReferenceTargetElements(ModelElementInstance referenceSourceElement) |
protected abstract String |
getTargetElementIdentifier(T referenceTargetElement) |
protected void |
performAddOperation(ModelElementInstance referenceSourceElement,
T referenceTargetElement) |
protected void |
performClearOperation(ModelElementInstance referenceSourceElement) |
protected void |
performRemoveOperation(ModelElementInstance referenceSourceElement,
Object o) |
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
|
getReferenceIdentifier, getReferenceSourceAttribute, getReferenceSourceElementType
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, referencedElementRemoved, referencedElementUpdated, setReferenceTargetAttribute, setReferenceTargetElement, setReferenceTargetElementType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReferenceSourceAttribute
findReferenceSourceElements, getReferenceIdentifier, getReferenceSourceElementType, getReferenceTargetAttribute, getReferenceTargetElement, setReferenceTargetElement
protected String separator
public AttributeReferenceCollection(AttributeImpl<String> referenceSourceAttribute)
protected void updateReference(ModelElementInstance referenceSourceElement, String oldIdentifier, String newIdentifier)
ReferenceImpl
updateReference
in class AttributeReferenceImpl<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 AttributeReferenceImpl<T extends ModelElementInstance>
referenceSourceElement
- the reference source model element instanceprotected abstract String getTargetElementIdentifier(T referenceTargetElement)
public Collection<T> getReferenceTargetElements(ModelElementInstance referenceSourceElement)
protected void performClearOperation(ModelElementInstance referenceSourceElement)
protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement, String referenceIdentifier)
ReferenceImpl
setReferenceIdentifier
in class AttributeReferenceImpl<T extends ModelElementInstance>
referenceSourceElement
- the reference source model element instancereferenceIdentifier
- the new reference identifierprotected void performRemoveOperation(ModelElementInstance referenceSourceElement, Object o)
referenceSourceElement
- o
- protected void performAddOperation(ModelElementInstance referenceSourceElement, T referenceTargetElement)
Copyright © 2017. All rights reserved.