Class SimpleAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
com.regnosys.rosetta.rosetta.simple.util.SimpleAdapterFactory
- All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory
public class SimpleAdapterFactory
extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
The Adapter Factory for the model.
It provides an adapter
createXXX method for each class of the model.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static SimplePackageThe cached model package.protected SimpleSwitch<org.eclipse.emf.common.notify.Adapter>The switch that delegates to thecreateXXXmethods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.notify.AdaptercreateAdapter(org.eclipse.emf.common.notify.Notifier target) Creates an adapter for thetarget.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Annotated'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Annotation'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Annotation Qualifier'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Annotation Ref'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Assign Path Root'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Attribute'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Choice'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Choice Option'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Condition'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Data'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for the default case.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Function'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Function Dispatch'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Operation'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'References'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Root Element'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Callable With Args'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Definable'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Feature'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Named'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Root Element'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Rosetta Rule Reference'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Symbol'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Type'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Typed'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Typed Feature'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Segment'.org.eclipse.emf.common.notify.AdapterCreates a new adapter for an object of class 'Shortcut Declaration'.booleanisFactoryForType(Object object) Returns whether this factory is applicable for the type of the object.Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
-
Field Details
-
modelPackage
The cached model package. -
modelSwitch
The switch that delegates to thecreateXXXmethods.
-
-
Constructor Details
-
SimpleAdapterFactory
public SimpleAdapterFactory()Creates an instance of the adapter factory.
-
-
Method Details
-
isFactoryForType
Returns whether this factory is applicable for the type of the object. This implementation returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceorg.eclipse.emf.common.notify.AdapterFactory- Overrides:
isFactoryForTypein classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl- Returns:
- whether this factory is applicable for the type of the object.
-
createAdapter
public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target) Creates an adapter for thetarget.- Overrides:
createAdapterin classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl- Parameters:
target- the object to adapt.- Returns:
- the adapter for the
target.
-
createRootElementAdapter
public org.eclipse.emf.common.notify.Adapter createRootElementAdapter()Creates a new adapter for an object of class 'Root Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createAnnotationAdapter
public org.eclipse.emf.common.notify.Adapter createAnnotationAdapter()Creates a new adapter for an object of class 'Annotation'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createAnnotatedAdapter
public org.eclipse.emf.common.notify.Adapter createAnnotatedAdapter()Creates a new adapter for an object of class 'Annotated'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createAnnotationQualifierAdapter
public org.eclipse.emf.common.notify.Adapter createAnnotationQualifierAdapter()Creates a new adapter for an object of class 'Annotation Qualifier'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createAnnotationRefAdapter
public org.eclipse.emf.common.notify.Adapter createAnnotationRefAdapter()Creates a new adapter for an object of class 'Annotation Ref'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createAssignPathRootAdapter
public org.eclipse.emf.common.notify.Adapter createAssignPathRootAdapter()Creates a new adapter for an object of class 'Assign Path Root'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createAttributeAdapter
public org.eclipse.emf.common.notify.Adapter createAttributeAdapter()Creates a new adapter for an object of class 'Attribute'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createDataAdapter
public org.eclipse.emf.common.notify.Adapter createDataAdapter()Creates a new adapter for an object of class 'Data'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createChoiceAdapter
public org.eclipse.emf.common.notify.Adapter createChoiceAdapter()Creates a new adapter for an object of class 'Choice'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createChoiceOptionAdapter
public org.eclipse.emf.common.notify.Adapter createChoiceOptionAdapter()Creates a new adapter for an object of class 'Choice Option'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createFunctionAdapter
public org.eclipse.emf.common.notify.Adapter createFunctionAdapter()Creates a new adapter for an object of class 'Function'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createFunctionDispatchAdapter
public org.eclipse.emf.common.notify.Adapter createFunctionDispatchAdapter()Creates a new adapter for an object of class 'Function Dispatch'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createConditionAdapter
public org.eclipse.emf.common.notify.Adapter createConditionAdapter()Creates a new adapter for an object of class 'Condition'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createOperationAdapter
public org.eclipse.emf.common.notify.Adapter createOperationAdapter()Creates a new adapter for an object of class 'Operation'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createSegmentAdapter
public org.eclipse.emf.common.notify.Adapter createSegmentAdapter()Creates a new adapter for an object of class 'Segment'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createShortcutDeclarationAdapter
public org.eclipse.emf.common.notify.Adapter createShortcutDeclarationAdapter()Creates a new adapter for an object of class 'Shortcut Declaration'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createReferencesAdapter
public org.eclipse.emf.common.notify.Adapter createReferencesAdapter()Creates a new adapter for an object of class 'References'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaRuleReferenceAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaRuleReferenceAdapter()Creates a new adapter for an object of class 'Rosetta Rule Reference'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaRootElementAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaRootElementAdapter()Creates a new adapter for an object of class 'Root Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaNamedAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaNamedAdapter()Creates a new adapter for an object of class 'Named'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaDefinableAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaDefinableAdapter()Creates a new adapter for an object of class 'Definable'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaSymbolAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaSymbolAdapter()Creates a new adapter for an object of class 'Symbol'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaFeatureAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaFeatureAdapter()Creates a new adapter for an object of class 'Feature'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaTypedAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaTypedAdapter()Creates a new adapter for an object of class 'Typed'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaTypedFeatureAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaTypedFeatureAdapter()Creates a new adapter for an object of class 'Typed Feature'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaTypeAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaTypeAdapter()Creates a new adapter for an object of class 'Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createRosettaCallableWithArgsAdapter
public org.eclipse.emf.common.notify.Adapter createRosettaCallableWithArgsAdapter()Creates a new adapter for an object of class 'Callable With Args'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
-
createEObjectAdapter
public org.eclipse.emf.common.notify.Adapter createEObjectAdapter()Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
-