Class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl<Target>
-
- org.camunda.bpm.model.xml.impl.type.reference.ElementReferenceCollectionImpl<Target,Source>
-
- All Implemented Interfaces:
ElementReferenceCollection<Target,Source>
,Reference<Target>
- Direct Known Subclasses:
ElementReferenceImpl
,IdsElementReferenceCollectionImpl
,QNameElementReferenceCollectionImpl
,UriElementReferenceCollectionImpl
public class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance> extends ReferenceImpl<Target> implements ElementReferenceCollection<Target,Source>
- Author:
- Sebastian Menski
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl
referenceTargetAttribute
-
-
Constructor Summary
Constructors Constructor Description ElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Get the reference identifier which is set in the reference sourceChildElementCollection<Source>
getReferenceSourceCollection()
ModelElementType
getReferenceSourceElementType()
java.util.Collection<Target>
getReferenceTargetElements(ModelElementInstanceImpl referenceSourceParentElement)
protected java.util.Collection<DomElement>
getView(ModelElementInstanceImpl referenceSourceParentElement)
protected void
performAddOperation(ModelElementInstanceImpl referenceSourceParentElement, Target referenceTargetElement)
protected void
performClearOperation(ModelElementInstanceImpl referenceSourceParentElement, java.util.Collection<DomElement> elementsToRemove)
protected void
performRemoveOperation(ModelElementInstanceImpl referenceSourceParentElement, java.lang.Object referenceTargetElement)
protected void
removeReference(ModelElementInstance referenceSourceElement, ModelElementInstance referenceTargetElement)
Remove the reference in the reference source model element instanceprotected void
setReferenceIdentifier(ModelElementInstance referenceSourceElement, java.lang.String referenceIdentifier)
Set the reference identifier in the reference sourcevoid
setReferenceSourceElementType(ModelElementTypeImpl referenceSourceType)
protected void
updateReference(ModelElementInstance referenceSourceElement, java.lang.String oldIdentifier, java.lang.String newIdentifier)
Update the reference identifier of the reference source model element instance-
Methods inherited from class org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, referencedElementRemoved, referencedElementUpdated, setReferenceTargetAttribute, setReferenceTargetElement, setReferenceTargetElementType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.model.xml.type.reference.Reference
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, setReferenceTargetElement
-
-
-
-
Constructor Detail
-
ElementReferenceCollectionImpl
public ElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
-
-
Method Detail
-
getReferenceSourceCollection
public ChildElementCollection<Source> getReferenceSourceCollection()
- Specified by:
getReferenceSourceCollection
in interfaceElementReferenceCollection<Target extends ModelElementInstance,Source extends ModelElementInstance>
-
setReferenceIdentifier
protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement, java.lang.String referenceIdentifier)
Description copied from class:ReferenceImpl
Set the reference identifier in the reference source- Specified by:
setReferenceIdentifier
in classReferenceImpl<Target extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instancereferenceIdentifier
- the new reference identifier
-
performAddOperation
protected void performAddOperation(ModelElementInstanceImpl referenceSourceParentElement, Target referenceTargetElement)
-
performRemoveOperation
protected void performRemoveOperation(ModelElementInstanceImpl referenceSourceParentElement, java.lang.Object referenceTargetElement)
-
performClearOperation
protected void performClearOperation(ModelElementInstanceImpl referenceSourceParentElement, java.util.Collection<DomElement> elementsToRemove)
-
getReferenceIdentifier
public java.lang.String getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Description copied from interface:Reference
Get the reference identifier which is set in the reference source- Specified by:
getReferenceIdentifier
in interfaceReference<Target extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instance- Returns:
- the reference identifier
-
updateReference
protected void updateReference(ModelElementInstance referenceSourceElement, java.lang.String oldIdentifier, java.lang.String newIdentifier)
Description copied from class:ReferenceImpl
Update the reference identifier of the reference source model element instance- Specified by:
updateReference
in classReferenceImpl<Target extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instanceoldIdentifier
- the old reference identifiernewIdentifier
- the new reference identifier
-
removeReference
protected void removeReference(ModelElementInstance referenceSourceElement, ModelElementInstance referenceTargetElement)
Description copied from class:ReferenceImpl
Remove the reference in the reference source model element instance- Specified by:
removeReference
in classReferenceImpl<Target extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instance
-
setReferenceSourceElementType
public void setReferenceSourceElementType(ModelElementTypeImpl referenceSourceType)
-
getReferenceSourceElementType
public ModelElementType getReferenceSourceElementType()
- Specified by:
getReferenceSourceElementType
in interfaceReference<Target extends ModelElementInstance>
- Returns:
- the
ModelElementType
of the source element.
-
getView
protected java.util.Collection<DomElement> getView(ModelElementInstanceImpl referenceSourceParentElement)
-
getReferenceTargetElements
public java.util.Collection<Target> getReferenceTargetElements(ModelElementInstanceImpl referenceSourceParentElement)
- Specified by:
getReferenceTargetElements
in interfaceElementReferenceCollection<Target extends ModelElementInstance,Source extends ModelElementInstance>
-
-