org.camunda.bpm.model.xml.type.reference
Class AttributeReferenceCollection<T extends ModelElementInstance>

java.lang.Object
  extended by org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl<T>
      extended by org.camunda.bpm.model.xml.impl.type.reference.AttributeReferenceImpl<T>
          extended by org.camunda.bpm.model.xml.type.reference.AttributeReferenceCollection<T>
All Implemented Interfaces:
AttributeReference<T>, Reference<T>

public abstract class AttributeReferenceCollection<T extends ModelElementInstance>
extends AttributeReferenceImpl<T>
implements AttributeReference<T>

Author:
Roman Smirnov, Sebastian Menski

Field Summary
protected  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
AttributeReferenceCollection(AttributeImpl<String> referenceSourceAttribute)
           
 
Method Summary
 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
 
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
 

Field Detail

separator

protected String separator
Constructor Detail

AttributeReferenceCollection

public AttributeReferenceCollection(AttributeImpl<String> referenceSourceAttribute)
Method Detail

updateReference

protected void updateReference(ModelElementInstance referenceSourceElement,
                               String oldIdentifier,
                               String newIdentifier)
Description copied from class: ReferenceImpl
Update the reference identifier of the reference source model element instance

Overrides:
updateReference in class AttributeReferenceImpl<T extends ModelElementInstance>
Parameters:
referenceSourceElement - the reference source model element instance
oldIdentifier - the old reference identifier
newIdentifier - 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 class AttributeReferenceImpl<T extends ModelElementInstance>
Parameters:
referenceSourceElement - the reference source model element instance

getTargetElementIdentifier

protected abstract String getTargetElementIdentifier(T referenceTargetElement)

getReferenceTargetElements

public Collection<T> getReferenceTargetElements(ModelElementInstance referenceSourceElement)

performClearOperation

protected void performClearOperation(ModelElementInstance referenceSourceElement)

setReferenceIdentifier

protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement,
                                      String referenceIdentifier)
Description copied from class: ReferenceImpl
Set the reference identifier in the reference source

Overrides:
setReferenceIdentifier in class AttributeReferenceImpl<T extends ModelElementInstance>
Parameters:
referenceSourceElement - the reference source model element instance
referenceIdentifier - the new reference identifier

performRemoveOperation

protected void performRemoveOperation(ModelElementInstance referenceSourceElement,
                                      Object o)
Parameters:
referenceSourceElement -
o -

performAddOperation

protected void performAddOperation(ModelElementInstance referenceSourceElement,
                                   T referenceTargetElement)


Copyright © 2016 camunda services GmbH. All rights reserved.