org.camunda.bpm.model.xml.impl.type.reference
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, QNameElementReferenceCollectionImpl
public class ElementReferenceCollectionImpl<Target extends ModelElementInstance,Source extends ModelElementInstance>
- extends ReferenceImpl<Target>
- implements ElementReferenceCollection<Target,Source>
- Author:
- Sebastian Menski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementReferenceCollectionImpl
public ElementReferenceCollectionImpl(ChildElementCollection<Source> referenceSourceCollection)
getReferenceSourceCollection
public ChildElementCollection<Source> getReferenceSourceCollection()
- Specified by:
getReferenceSourceCollection in interface ElementReferenceCollection<Target extends ModelElementInstance,Source extends ModelElementInstance>
setReferenceIdentifier
protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement,
String referenceIdentifier)
- Description copied from class:
ReferenceImpl
- Set the reference identifier in the reference source
- Specified by:
setReferenceIdentifier in class ReferenceImpl<Target extends ModelElementInstance>
- Parameters:
referenceSourceElement - the reference source model element instancereferenceIdentifier - the new reference identifier
getReferenceIdentifier
public String getReferenceIdentifier(ModelElementInstance referenceSourceElement)
- Description copied from interface:
Reference
- Get the reference identifier which is set in the reference source
- Specified by:
getReferenceIdentifier in interface Reference<Target extends ModelElementInstance>
- Parameters:
referenceSourceElement - the reference source model element instance
- Returns:
- the reference identifier
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
- Specified by:
updateReference in class ReferenceImpl<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 class ReferenceImpl<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 interface Reference<Target extends ModelElementInstance>
- Returns:
- the
ModelElementType of the source element.
getReferenceTargetElements
public Collection<Target> getReferenceTargetElements(ModelElementInstanceImpl referenceSourceParentElement)
- Specified by:
getReferenceTargetElements in interface ElementReferenceCollection<Target extends ModelElementInstance,Source extends ModelElementInstance>
Copyright © 2015 camunda services GmbH. All rights reserved.