org.ptolemy.moml.util
Class MomlAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.ptolemy.moml.util.MomlAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class MomlAdapterFactory
extends AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
MomlPackage
Rating red
Generated:
This code was automatically generated.

Field Summary
protected static MomlPackage modelPackage
          The cached model package.
protected  MomlSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
MomlAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createAnyAdapter()
          Creates a new adapter for an object of class 'Any'.
 Adapter createClassTypeAdapter()
          Creates a new adapter for an object of class 'Class Type'.
 Adapter createConfigureTypeAdapter()
          Creates a new adapter for an object of class 'Configure Type'.
 Adapter createDeleteEntityTypeAdapter()
          Creates a new adapter for an object of class 'Delete Entity Type'.
 Adapter createDeletePortTypeAdapter()
          Creates a new adapter for an object of class 'Delete Port Type'.
 Adapter createDeletePropertyTypeAdapter()
          Creates a new adapter for an object of class 'Delete Property Type'.
 Adapter createDeleteRelationTypeAdapter()
          Creates a new adapter for an object of class 'Delete Relation Type'.
 Adapter createDirectorTypeAdapter()
          Creates a new adapter for an object of class 'Director Type'.
 Adapter createDisplayTypeAdapter()
          Creates a new adapter for an object of class 'Display Type'.
 Adapter createDocTypeAdapter()
          Creates a new adapter for an object of class 'Doc Type'.
 Adapter createDocumentRootAdapter()
          Creates a new adapter for an object of class 'Document Root'.
 Adapter createEntityTypeAdapter()
          Creates a new adapter for an object of class 'Entity Type'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createGroupTypeAdapter()
          Creates a new adapter for an object of class 'Group Type'.
 Adapter createImportTypeAdapter()
          Creates a new adapter for an object of class 'Import Type'.
 Adapter createInputTypeAdapter()
          Creates a new adapter for an object of class 'Input Type'.
 Adapter createLinkTypeAdapter()
          Creates a new adapter for an object of class 'Link Type'.
 Adapter createLocationTypeAdapter()
          Creates a new adapter for an object of class 'Location Type'.
 Adapter createModelTypeAdapter()
          Creates a new adapter for an object of class 'Model Type'.
 Adapter createPortTypeAdapter()
          Creates a new adapter for an object of class 'Port Type'.
 Adapter createPropertyTypeAdapter()
          Creates a new adapter for an object of class 'Property Type'.
 Adapter createRelationTypeAdapter()
          Creates a new adapter for an object of class 'Relation Type'.
 Adapter createRenameTypeAdapter()
          Creates a new adapter for an object of class 'Rename Type'.
 Adapter createRenditionTypeAdapter()
          Creates a new adapter for an object of class 'Rendition Type'.
 Adapter createUnlinkTypeAdapter()
          Creates a new adapter for an object of class 'Unlink Type'.
 Adapter createVertexTypeAdapter()
          Creates a new adapter for an object of class 'Vertex Type'.
 boolean isFactoryForType(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 MomlPackage modelPackage
The cached model package.

Generated:
This code was automatically generated.

modelSwitch

protected MomlSwitch<Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Generated:
This code was automatically generated.
Constructor Detail

MomlAdapterFactory

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

Generated:
This code was automatically generated.
Method Detail

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 AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
Generated:
This code was automatically generated.

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
Generated:
This code was automatically generated.

createAnyAdapter

public Adapter createAnyAdapter()
Creates a new adapter for an object of class 'Any'. 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:
Any
Generated:
This code was automatically generated.

createClassTypeAdapter

public Adapter createClassTypeAdapter()
Creates a new adapter for an object of class '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:
ClassType
Generated:
This code was automatically generated.

createConfigureTypeAdapter

public Adapter createConfigureTypeAdapter()
Creates a new adapter for an object of class 'Configure 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:
ConfigureType
Generated:
This code was automatically generated.

createDeleteEntityTypeAdapter

public Adapter createDeleteEntityTypeAdapter()
Creates a new adapter for an object of class 'Delete Entity 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:
DeleteEntityType
Generated:
This code was automatically generated.

createDeletePortTypeAdapter

public Adapter createDeletePortTypeAdapter()
Creates a new adapter for an object of class 'Delete Port 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:
DeletePortType
Generated:
This code was automatically generated.

createDeletePropertyTypeAdapter

public Adapter createDeletePropertyTypeAdapter()
Creates a new adapter for an object of class 'Delete Property 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:
DeletePropertyType
Generated:
This code was automatically generated.

createDeleteRelationTypeAdapter

public Adapter createDeleteRelationTypeAdapter()
Creates a new adapter for an object of class 'Delete Relation 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:
DeleteRelationType
Generated:
This code was automatically generated.

createDirectorTypeAdapter

public Adapter createDirectorTypeAdapter()
Creates a new adapter for an object of class 'Director 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:
DirectorType
Generated:
This code was automatically generated.

createDisplayTypeAdapter

public Adapter createDisplayTypeAdapter()
Creates a new adapter for an object of class 'Display 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:
DisplayType
Generated:
This code was automatically generated.

createDocTypeAdapter

public Adapter createDocTypeAdapter()
Creates a new adapter for an object of class 'Doc 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:
DocType
Generated:
This code was automatically generated.

createDocumentRootAdapter

public Adapter createDocumentRootAdapter()
Creates a new adapter for an object of class 'Document 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:
DocumentRoot
Generated:
This code was automatically generated.

createEntityTypeAdapter

public Adapter createEntityTypeAdapter()
Creates a new adapter for an object of class 'Entity 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:
EntityType
Generated:
This code was automatically generated.

createGroupTypeAdapter

public Adapter createGroupTypeAdapter()
Creates a new adapter for an object of class 'Group 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:
GroupType
Generated:
This code was automatically generated.

createImportTypeAdapter

public Adapter createImportTypeAdapter()
Creates a new adapter for an object of class 'Import 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:
ImportType
Generated:
This code was automatically generated.

createInputTypeAdapter

public Adapter createInputTypeAdapter()
Creates a new adapter for an object of class 'Input 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:
InputType
Generated:
This code was automatically generated.

createLinkTypeAdapter

public Adapter createLinkTypeAdapter()
Creates a new adapter for an object of class 'Link 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:
LinkType
Generated:
This code was automatically generated.

createLocationTypeAdapter

public Adapter createLocationTypeAdapter()
Creates a new adapter for an object of class 'Location 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:
LocationType
Generated:
This code was automatically generated.

createModelTypeAdapter

public Adapter createModelTypeAdapter()
Creates a new adapter for an object of class 'Model 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:
ModelType
Generated:
This code was automatically generated.

createPortTypeAdapter

public Adapter createPortTypeAdapter()
Creates a new adapter for an object of class 'Port 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:
PortType
Generated:
This code was automatically generated.

createPropertyTypeAdapter

public Adapter createPropertyTypeAdapter()
Creates a new adapter for an object of class 'Property 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:
PropertyType
Generated:
This code was automatically generated.

createRelationTypeAdapter

public Adapter createRelationTypeAdapter()
Creates a new adapter for an object of class 'Relation 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:
RelationType
Generated:
This code was automatically generated.

createRenameTypeAdapter

public Adapter createRenameTypeAdapter()
Creates a new adapter for an object of class 'Rename 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:
RenameType
Generated:
This code was automatically generated.

createRenditionTypeAdapter

public Adapter createRenditionTypeAdapter()
Creates a new adapter for an object of class 'Rendition 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:
RenditionType
Generated:
This code was automatically generated.

createUnlinkTypeAdapter

public Adapter createUnlinkTypeAdapter()
Creates a new adapter for an object of class 'Unlink 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:
UnlinkType
Generated:
This code was automatically generated.

createVertexTypeAdapter

public Adapter createVertexTypeAdapter()
Creates a new adapter for an object of class 'Vertex 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:
VertexType
Generated:
This code was automatically generated.

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.
Generated:
This code was automatically generated.