org.eclipse.ocl.types.util
Class TypesAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.ocl.types.util.TypesAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory
Direct Known Subclasses:
TypesItemProviderAdapterFactory

public class TypesAdapterFactory
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:
TypesPackage
Generated

Field Summary
protected static TypesPackage modelPackage
          The cached model package.
protected  TypesSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
TypesAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
          Creates an adapter for the target.
 org.eclipse.emf.common.notify.Adapter createAnyTypeAdapter()
          Creates a new adapter for an object of class 'Any Type'.
 org.eclipse.emf.common.notify.Adapter createASTNodeAdapter()
          Creates a new adapter for an object of class 'AST Node'.
 org.eclipse.emf.common.notify.Adapter createBagTypeAdapter()
          Creates a new adapter for an object of class 'Bag Type'.
 org.eclipse.emf.common.notify.Adapter createCollectionTypeAdapter()
          Creates a new adapter for an object of class 'Collection Type'.
 org.eclipse.emf.common.notify.Adapter createElementTypeAdapter()
          Creates a new adapter for an object of class 'Element Type'.
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 org.eclipse.emf.common.notify.Adapter createInvalidTypeAdapter()
          Creates a new adapter for an object of class 'Invalid Type'.
 org.eclipse.emf.common.notify.Adapter createMessageTypeAdapter()
          Creates a new adapter for an object of class 'Message Type'.
 org.eclipse.emf.common.notify.Adapter createOrderedSetTypeAdapter()
          Creates a new adapter for an object of class 'Ordered Set Type'.
 org.eclipse.emf.common.notify.Adapter createPredefinedTypeAdapter()
          Creates a new adapter for an object of class 'Predefined Type'.
 org.eclipse.emf.common.notify.Adapter createPrimitiveTypeAdapter()
          Creates a new adapter for an object of class 'Primitive Type'.
 org.eclipse.emf.common.notify.Adapter createSequenceTypeAdapter()
          Creates a new adapter for an object of class 'Sequence Type'.
 org.eclipse.emf.common.notify.Adapter createSetTypeAdapter()
          Creates a new adapter for an object of class 'Set Type'.
 org.eclipse.emf.common.notify.Adapter createTemplateParameterTypeAdapter()
          Creates a new adapter for an object of class 'Template Parameter Type'.
 org.eclipse.emf.common.notify.Adapter createTupleTypeAdapter()
          Creates a new adapter for an object of class 'Tuple Type'.
 org.eclipse.emf.common.notify.Adapter createTypedASTNodeAdapter()
          Creates a new adapter for an object of class 'Typed AST Node'.
 org.eclipse.emf.common.notify.Adapter createTypeTypeAdapter()
          Creates a new adapter for an object of class 'Type Type'.
 org.eclipse.emf.common.notify.Adapter createVoidTypeAdapter()
          Creates a new adapter for an object of class 'Void Type'.
 boolean isFactoryForType(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static TypesPackage modelPackage
The cached model package.

Generated

modelSwitch

protected TypesSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Generated
Constructor Detail

TypesAdapterFactory

public TypesAdapterFactory()
Creates an instance of the adapter factory.

Generated
Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.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.
Generated

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.
Generated

createAnyTypeAdapter

public org.eclipse.emf.common.notify.Adapter createAnyTypeAdapter()
Creates a new adapter for an object of class 'Any 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:
AnyType
Generated

createBagTypeAdapter

public org.eclipse.emf.common.notify.Adapter createBagTypeAdapter()
Creates a new adapter for an object of class 'Bag 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:
BagType
Generated

createCollectionTypeAdapter

public org.eclipse.emf.common.notify.Adapter createCollectionTypeAdapter()
Creates a new adapter for an object of class 'Collection 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:
CollectionType
Generated

createElementTypeAdapter

public org.eclipse.emf.common.notify.Adapter createElementTypeAdapter()
Creates a new adapter for an object of class 'Element 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:
ElementType
Generated

createInvalidTypeAdapter

public org.eclipse.emf.common.notify.Adapter createInvalidTypeAdapter()
Creates a new adapter for an object of class 'Invalid 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:
InvalidType
Generated

createMessageTypeAdapter

public org.eclipse.emf.common.notify.Adapter createMessageTypeAdapter()
Creates a new adapter for an object of class 'Message 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:
MessageType
Generated

createOrderedSetTypeAdapter

public org.eclipse.emf.common.notify.Adapter createOrderedSetTypeAdapter()
Creates a new adapter for an object of class 'Ordered Set 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:
OrderedSetType
Generated

createPrimitiveTypeAdapter

public org.eclipse.emf.common.notify.Adapter createPrimitiveTypeAdapter()
Creates a new adapter for an object of class 'Primitive 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:
PrimitiveType
Generated

createSequenceTypeAdapter

public org.eclipse.emf.common.notify.Adapter createSequenceTypeAdapter()
Creates a new adapter for an object of class 'Sequence 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:
SequenceType
Generated

createSetTypeAdapter

public org.eclipse.emf.common.notify.Adapter createSetTypeAdapter()
Creates a new adapter for an object of class 'Set 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:
SetType
Generated

createTupleTypeAdapter

public org.eclipse.emf.common.notify.Adapter createTupleTypeAdapter()
Creates a new adapter for an object of class 'Tuple 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:
TupleType
Generated

createTypeTypeAdapter

public org.eclipse.emf.common.notify.Adapter createTypeTypeAdapter()
Creates a new adapter for an object of class 'Type 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:
TypeType
Generated

createVoidTypeAdapter

public org.eclipse.emf.common.notify.Adapter createVoidTypeAdapter()
Creates a new adapter for an object of class 'Void 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:
VoidType
Generated

createTemplateParameterTypeAdapter

public org.eclipse.emf.common.notify.Adapter createTemplateParameterTypeAdapter()
Creates a new adapter for an object of class 'Template Parameter 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.
Since:
3.0
See Also:
TemplateParameterType
Generated

createPredefinedTypeAdapter

public org.eclipse.emf.common.notify.Adapter createPredefinedTypeAdapter()
Creates a new adapter for an object of class 'Predefined 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:
PredefinedType
Generated

createASTNodeAdapter

public org.eclipse.emf.common.notify.Adapter createASTNodeAdapter()
Creates a new adapter for an object of class 'AST Node'. 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:
ASTNode
Generated

createTypedASTNodeAdapter

public org.eclipse.emf.common.notify.Adapter createTypedASTNodeAdapter()
Creates a new adapter for an object of class 'Typed AST Node'. 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:
TypedASTNode
Generated

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.
Generated