public class IdsElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance> extends ElementReferenceCollectionImpl<Target,Source>
Modifier and Type | Field and Description |
---|---|
protected String |
separator |
referenceTargetAttribute
Constructor and Description |
---|
IdsElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getReferenceIdentifiers(ModelElementInstance referenceSourceElement) |
protected Collection<DomElement> |
getView(ModelElementInstanceImpl referenceSourceParentElement) |
void |
referencedElementRemoved(ModelElementInstance referenceTargetElement,
Object referenceIdentifier)
Remove the reference if the target element is removed
|
protected void |
setReferenceIdentifiers(ModelElementInstance referenceSourceElement,
List<String> referenceIdentifiers) |
protected void |
updateReference(ModelElementInstance referenceSourceElement,
String oldIdentifier,
String newIdentifier)
Update the reference identifier of the reference source model element instance
|
getReferenceIdentifier, getReferenceSourceCollection, getReferenceSourceElementType, getReferenceTargetElements, performAddOperation, performClearOperation, performRemoveOperation, removeReference, setReferenceIdentifier, setReferenceSourceElementType
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, referencedElementUpdated, setReferenceTargetAttribute, setReferenceTargetElement, setReferenceTargetElementType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, setReferenceTargetElement
protected String separator
public IdsElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
protected List<String> getReferenceIdentifiers(ModelElementInstance referenceSourceElement)
protected void setReferenceIdentifiers(ModelElementInstance referenceSourceElement, List<String> referenceIdentifiers)
protected Collection<DomElement> getView(ModelElementInstanceImpl referenceSourceParentElement)
getView
in class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>
protected void updateReference(ModelElementInstance referenceSourceElement, String oldIdentifier, String newIdentifier)
ReferenceImpl
updateReference
in class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>
referenceSourceElement
- the reference source model element instanceoldIdentifier
- the old reference identifiernewIdentifier
- the new reference identifierpublic void referencedElementRemoved(ModelElementInstance referenceTargetElement, Object referenceIdentifier)
ReferenceImpl
referencedElementRemoved
in class ReferenceImpl<Target extends ModelElementInstance>
referenceTargetElement
- the reference target model element instance, which is removedreferenceIdentifier
- the identifier of the reference to filter reference source elementsCopyright © 2017. All rights reserved.