org.camunda.bpm.model.xml.impl.type.reference
Class IdsElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>

java.lang.Object
  extended by org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl<Target>
      extended by org.camunda.bpm.model.xml.impl.type.reference.ElementReferenceCollectionImpl<Target,Source>
          extended by org.camunda.bpm.model.xml.impl.type.reference.IdsElementReferenceCollectionImpl<Target,Source>
All Implemented Interfaces:
ElementReferenceCollection<Target,Source>, Reference<Target>

public class IdsElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>
extends ElementReferenceCollectionImpl<Target,Source>


Field Summary
protected  String separator
           
 
Fields inherited from class org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl
referenceTargetAttribute
 
Constructor Summary
IdsElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
           
 
Method Summary
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
 
Methods inherited from class org.camunda.bpm.model.xml.impl.type.reference.ElementReferenceCollectionImpl
getReferenceIdentifier, getReferenceSourceCollection, getReferenceSourceElementType, getReferenceTargetElements, performAddOperation, performClearOperation, performRemoveOperation, removeReference, setReferenceIdentifier, setReferenceSourceElementType
 
Methods inherited from class org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl
findReferenceSourceElements, getReferenceTargetAttribute, getReferenceTargetElement, 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
 

Field Detail

separator

protected String separator
Constructor Detail

IdsElementReferenceCollectionImpl

public IdsElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
Method Detail

getReferenceIdentifiers

protected List<String> getReferenceIdentifiers(ModelElementInstance referenceSourceElement)

setReferenceIdentifiers

protected void setReferenceIdentifiers(ModelElementInstance referenceSourceElement,
                                       List<String> referenceIdentifiers)

getView

protected Collection<DomElement> getView(ModelElementInstanceImpl referenceSourceParentElement)
Overrides:
getView in class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>

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 ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>
Parameters:
referenceSourceElement - the reference source model element instance
oldIdentifier - the old reference identifier
newIdentifier - the new reference identifier

referencedElementRemoved

public void referencedElementRemoved(ModelElementInstance referenceTargetElement,
                                     Object referenceIdentifier)
Description copied from class: ReferenceImpl
Remove the reference if the target element is removed

Overrides:
referencedElementRemoved in class ReferenceImpl<Target extends ModelElementInstance>
Parameters:
referenceTargetElement - the reference target model element instance, which is removed
referenceIdentifier - the identifier of the reference to filter reference source elements


Copyright © 2016 camunda services GmbH. All rights reserved.