Interface IAccessorFactory
-
- All Known Implementing Classes:
AbstractAccessorFactory,ComparisonAccessorFactory,ContainmentReferenceChangeAccessorFactory,FeatureMapChangeMoveAccessorFactory,FeatureMapKeyChangeAccessorFactory,ManyStructuralFeatureAccessorFactory,MatchAccessorFactory,MatchResourceAccessorFactory,ResourceContentsAccessorFactory,SingleStructuralFeatureAccessorFactory,StringAttributeChangeAccessorFactory
public interface IAccessorFactoryA factory ofITypedElements.- Since:
- 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIAccessorFactory.RegistryThe registry ofIAccessorFactory.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITypedElementcreateAncestor(AdapterFactory adapterFactory, Object target)Creates anITypedElementfrom anAdapterFactoryand a given object.ITypedElementcreateLeft(AdapterFactory adapterFactory, Object target)Creates anITypedElementfrom anAdapterFactoryand a given object.ITypedElementcreateRight(AdapterFactory adapterFactory, Object target)Creates anITypedElementfrom anAdapterFactoryand a given object.intgetRanking()The ranking of the factory.booleanisFactoryFor(Object target)Checks if the target object is applicable to the factory.voidsetRanking(int value)Set the ranking of the factory.
-
-
-
Method Detail
-
isFactoryFor
boolean isFactoryFor(Object target)
Checks if the target object is applicable to the factory.- Parameters:
target- the object for which we want to know if it is applicable to the factory.- Returns:
- true if the object is applicable to the factory, false otherwise.
-
getRanking
int getRanking()
The ranking of the factory.- Returns:
- the ranking of the factory.
-
setRanking
void setRanking(int value)
Set the ranking of the factory.- Parameters:
value- the ranking value.
-
createLeft
ITypedElement createLeft(AdapterFactory adapterFactory, Object target)
Creates anITypedElementfrom anAdapterFactoryand a given object. This accessor is specific for the left side of the comparison.- Parameters:
adapterFactory- the given adapter factory.target- the given object.- Returns:
- an ITypedElement.
-
createRight
ITypedElement createRight(AdapterFactory adapterFactory, Object target)
Creates anITypedElementfrom anAdapterFactoryand a given object. This accessor is specific for the right side of the comparison.- Parameters:
adapterFactory- the given adapter factory.target- the given object.- Returns:
- an ITypedElement.
-
createAncestor
ITypedElement createAncestor(AdapterFactory adapterFactory, Object target)
Creates anITypedElementfrom anAdapterFactoryand a given object. This accessor is specific for the ancestor side of the comparison.- Parameters:
adapterFactory- the given adapter factory.target- the given object.- Returns:
- an ITypedElement.
-
-