Class AttributeReferenceCollection<T extends ModelElementInstance>
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl<T>
-
- org.camunda.bpm.model.xml.impl.type.reference.AttributeReferenceImpl<T>
-
- org.camunda.bpm.model.xml.type.reference.AttributeReferenceCollection<T>
-
- All Implemented Interfaces:
AttributeReference<T>
,Reference<T>
- Direct Known Subclasses:
CmmnAttributeElementReferenceCollection
public abstract class AttributeReferenceCollection<T extends ModelElementInstance> extends AttributeReferenceImpl<T> implements AttributeReference<T>
- Author:
- Roman Smirnov, Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
separator
-
Fields inherited from class org.camunda.bpm.model.xml.impl.type.reference.AttributeReferenceImpl
referenceSourceAttribute
-
Fields inherited from class org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl
referenceTargetAttribute
-
-
Constructor Summary
Constructors Constructor Description AttributeReferenceCollection(AttributeImpl<java.lang.String> referenceSourceAttribute)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Collection<T>
getReferenceTargetElements(ModelElementInstance referenceSourceElement)
protected abstract java.lang.String
getTargetElementIdentifier(T referenceTargetElement)
protected void
performAddOperation(ModelElementInstance referenceSourceElement, T referenceTargetElement)
protected void
performClearOperation(ModelElementInstance referenceSourceElement)
protected void
performRemoveOperation(ModelElementInstance referenceSourceElement, java.lang.Object o)
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 sourceprotected 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.AttributeReferenceImpl
getReferenceIdentifier, getReferenceSourceAttribute, getReferenceSourceElementType
-
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.AttributeReference
getReferenceSourceAttribute
-
Methods inherited from interface org.camunda.bpm.model.xml.type.reference.Reference
findReferenceSourceElements, getReferenceIdentifier, getReferenceSourceElementType, getReferenceTargetAttribute, getReferenceTargetElement, setReferenceTargetElement
-
-
-
-
Constructor Detail
-
AttributeReferenceCollection
public AttributeReferenceCollection(AttributeImpl<java.lang.String> referenceSourceAttribute)
-
-
Method Detail
-
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- Overrides:
updateReference
in classAttributeReferenceImpl<T 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- Overrides:
removeReference
in classAttributeReferenceImpl<T extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instance
-
getTargetElementIdentifier
protected abstract java.lang.String getTargetElementIdentifier(T referenceTargetElement)
-
getReferenceTargetElements
public java.util.Collection<T> getReferenceTargetElements(ModelElementInstance referenceSourceElement)
-
performClearOperation
protected void performClearOperation(ModelElementInstance referenceSourceElement)
-
setReferenceIdentifier
protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement, java.lang.String referenceIdentifier)
Description copied from class:ReferenceImpl
Set the reference identifier in the reference source- Overrides:
setReferenceIdentifier
in classAttributeReferenceImpl<T extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instancereferenceIdentifier
- the new reference identifier
-
performRemoveOperation
protected void performRemoveOperation(ModelElementInstance referenceSourceElement, java.lang.Object o)
- Parameters:
referenceSourceElement
-o
-
-
performAddOperation
protected void performAddOperation(ModelElementInstance referenceSourceElement, T referenceTargetElement)
-
-