Interface Reference<T extends ModelElementInstance>
-
- Type Parameters:
T
- the type of the referenced element
- All Known Subinterfaces:
AttributeReference<T>
,ElementReference<Target,Source>
,ElementReferenceCollection<Target,Source>
- All Known Implementing Classes:
AttributeReferenceCollection
,AttributeReferenceImpl
,CmmnAttributeElementReferenceCollection
,ElementReferenceCollectionImpl
,ElementReferenceImpl
,IdsElementReferenceCollectionImpl
,QNameAttributeReferenceImpl
,QNameElementReferenceCollectionImpl
,QNameElementReferenceImpl
,ReferenceImpl
,UriElementReferenceCollectionImpl
,UriElementReferenceImpl
public interface Reference<T extends ModelElementInstance>
- Author:
- Sebastian Menski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ModelElementInstance>
findReferenceSourceElements(ModelElementInstance referenceTargetElement)
Find all reference source element instances of the reference target model element instancejava.lang.String
getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Get the reference identifier which is set in the reference sourceModelElementType
getReferenceSourceElementType()
Attribute<java.lang.String>
getReferenceTargetAttribute()
T
getReferenceTargetElement(ModelElementInstance modelElement)
void
setReferenceTargetElement(ModelElementInstance referenceSourceElement, T referenceTargetElement)
-
-
-
Method Detail
-
getReferenceIdentifier
java.lang.String getReferenceIdentifier(ModelElementInstance referenceSourceElement)
Get the reference identifier which is set in the reference source- Parameters:
referenceSourceElement
- the reference source model element instance- Returns:
- the reference identifier
-
getReferenceTargetElement
T getReferenceTargetElement(ModelElementInstance modelElement)
-
setReferenceTargetElement
void setReferenceTargetElement(ModelElementInstance referenceSourceElement, T referenceTargetElement)
-
getReferenceTargetAttribute
Attribute<java.lang.String> getReferenceTargetAttribute()
-
findReferenceSourceElements
java.util.Collection<ModelElementInstance> findReferenceSourceElements(ModelElementInstance referenceTargetElement)
Find all reference source element instances of the reference target model element instance- Parameters:
referenceTargetElement
- the reference target model element instance- Returns:
- the collection of all reference source element instances
-
getReferenceSourceElementType
ModelElementType getReferenceSourceElementType()
- Returns:
- the
ModelElementType
of the source element.
-
-