public class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance> extends ReferenceImpl<Target> implements ElementReferenceCollection<Target,Source>
referenceTargetAttribute
Constructor and Description |
---|
ElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection) |
Modifier and Type | Method and Description |
---|---|
String |
getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Get the reference identifier which is set in the reference source
|
ChildElementCollection<Source> |
getReferenceSourceCollection() |
ModelElementType |
getReferenceSourceElementType() |
Collection<Target> |
getReferenceTargetElements(ModelElementInstanceImpl referenceSourceParentElement) |
protected Collection<DomElement> |
getView(ModelElementInstanceImpl referenceSourceParentElement) |
protected void |
performAddOperation(ModelElementInstanceImpl referenceSourceParentElement,
Target referenceTargetElement) |
protected void |
performClearOperation(ModelElementInstanceImpl referenceSourceParentElement,
Collection<DomElement> elementsToRemove) |
protected void |
performRemoveOperation(ModelElementInstanceImpl referenceSourceParentElement,
Object referenceTargetElement) |
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
|
void |
setReferenceSourceElementType(ModelElementTypeImpl referenceSourceType) |
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
public ElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
public ChildElementCollection<Source> getReferenceSourceCollection()
getReferenceSourceCollection
in interface ElementReferenceCollection<Target extends ModelElementInstance,Source extends ModelElementInstance>
protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement, String referenceIdentifier)
ReferenceImpl
setReferenceIdentifier
in class ReferenceImpl<Target extends ModelElementInstance>
referenceSourceElement
- the reference source model element instancereferenceIdentifier
- the new reference identifierprotected void performAddOperation(ModelElementInstanceImpl referenceSourceParentElement, Target referenceTargetElement)
protected void performRemoveOperation(ModelElementInstanceImpl referenceSourceParentElement, Object referenceTargetElement)
protected void performClearOperation(ModelElementInstanceImpl referenceSourceParentElement, Collection<DomElement> elementsToRemove)
public String getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Reference
getReferenceIdentifier
in interface Reference<Target extends ModelElementInstance>
referenceSourceElement
- the reference source model element instanceprotected void updateReference(ModelElementInstance referenceSourceElement, String oldIdentifier, String newIdentifier)
ReferenceImpl
updateReference
in class ReferenceImpl<Target 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<Target extends ModelElementInstance>
referenceSourceElement
- the reference source model element instancepublic void setReferenceSourceElementType(ModelElementTypeImpl referenceSourceType)
public ModelElementType getReferenceSourceElementType()
getReferenceSourceElementType
in interface Reference<Target extends ModelElementInstance>
ModelElementType
of the source element.protected Collection<DomElement> getView(ModelElementInstanceImpl referenceSourceParentElement)
public Collection<Target> getReferenceTargetElements(ModelElementInstanceImpl referenceSourceParentElement)
getReferenceTargetElements
in interface ElementReferenceCollection<Target extends ModelElementInstance,Source extends ModelElementInstance>
Copyright © 2017. All rights reserved.