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 Details

    • modelPackage

      protected static SimplePackage modelPackage
      The cached model package.
    • modelSwitch

      protected SimpleSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
      The switch that delegates to the createXXX methods.
  • Constructor Details

    • SimpleAdapterFactory

      public SimpleAdapterFactory()
      Creates an instance of the adapter factory.
  • Method Details

    • isFactoryForType

      public boolean isFactoryForType(Object object)
      Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.
      Specified by:
      isFactoryForType in interface org.eclipse.emf.common.notify.AdapterFactory
      Overrides:
      isFactoryForType in class org.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 the target.
      Overrides:
      createAdapter in class org.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.