Class AttributeReferenceImpl<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>
-
- All Implemented Interfaces:
AttributeReference<T>
,Reference<T>
- Direct Known Subclasses:
AttributeReferenceCollection
,QNameAttributeReferenceImpl
public class AttributeReferenceImpl<T extends ModelElementInstance> extends ReferenceImpl<T> implements AttributeReference<T>
- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeImpl<java.lang.String>
referenceSourceAttribute
-
Fields inherited from class org.camunda.bpm.model.xml.impl.type.reference.ReferenceImpl
referenceTargetAttribute
-
-
Constructor Summary
Constructors Constructor Description AttributeReferenceImpl(AttributeImpl<java.lang.String> referenceSourceAttribute)
-
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 sourceAttribute<java.lang.String>
getReferenceSourceAttribute()
Get the reference source attributeModelElementType
getReferenceSourceElementType()
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.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
-
-
-
-
Field Detail
-
referenceSourceAttribute
protected final AttributeImpl<java.lang.String> referenceSourceAttribute
-
-
Constructor Detail
-
AttributeReferenceImpl
public AttributeReferenceImpl(AttributeImpl<java.lang.String> referenceSourceAttribute)
-
-
Method Detail
-
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<T extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instance- Returns:
- the reference identifier
-
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<T extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instancereferenceIdentifier
- the new reference identifier
-
getReferenceSourceAttribute
public Attribute<java.lang.String> getReferenceSourceAttribute()
Get the reference source attribute- Specified by:
getReferenceSourceAttribute
in interfaceAttributeReference<T extends ModelElementInstance>
- Returns:
- the reference source attribute
-
getReferenceSourceElementType
public ModelElementType getReferenceSourceElementType()
- Specified by:
getReferenceSourceElementType
in interfaceReference<T extends ModelElementInstance>
- Returns:
- the
ModelElementType
of the source element.
-
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<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- Specified by:
removeReference
in classReferenceImpl<T extends ModelElementInstance>
- Parameters:
referenceSourceElement
- the reference source model element instance
-
-