Class ModelAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.epf.diagram.model.util.ModelAdapterFactory
- All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory
public class ModelAdapterFactory
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:
ModelPackage
-
Constructor Summary
Constructors Constructor Description ModelAdapterFactory()Creates an instance of the adapter factory. -
Method Summary
Modifier and Type Method Description org.eclipse.emf.common.notify.AdaptercreateActivityDetailDiagramAdapter()Creates a new adapter for an object of class 'Activity Detail Diagram'.org.eclipse.emf.common.notify.AdaptercreateActivityDiagramAdapter()Creates a new adapter for an object of class 'Activity Diagram'.org.eclipse.emf.common.notify.AdaptercreateAdapter(org.eclipse.emf.common.notify.Notifier target)Creates an adapter for thetarget.org.eclipse.emf.common.notify.AdaptercreateDiagramAdapter()Creates a new adapter for an object of class 'Diagram'.org.eclipse.emf.common.notify.AdaptercreateEObjectAdapter()Creates a new adapter for the default case.org.eclipse.emf.common.notify.AdaptercreateLinkAdapter()Creates a new adapter for an object of class 'Link'.org.eclipse.emf.common.notify.AdaptercreateLinkedObjectAdapter()Creates a new adapter for an object of class 'Linked Object'.org.eclipse.emf.common.notify.AdaptercreateNamedNodeAdapter()Creates a new adapter for an object of class 'Named Node'.org.eclipse.emf.common.notify.AdaptercreateNodeAdapter()Creates a new adapter for an object of class 'Node'.org.eclipse.emf.common.notify.AdaptercreateNodeContainerAdapter()Creates a new adapter for an object of class 'Node Container'.org.eclipse.emf.common.notify.AdaptercreateRoleNodeAdapter()Creates a new adapter for an object of class 'Role Node'.org.eclipse.emf.common.notify.AdaptercreateRoleTaskCompositeAdapter()Creates a new adapter for an object of class 'Role Task Composite'.org.eclipse.emf.common.notify.AdaptercreateTaskNodeAdapter()Creates a new adapter for an object of class 'Task Node'.org.eclipse.emf.common.notify.AdaptercreateTypedNodeAdapter()Creates a new adapter for an object of class 'Typed Node'.org.eclipse.emf.common.notify.AdaptercreateWorkBreakdownElementNodeAdapter()Creates a new adapter for an object of class 'Work Breakdown Element Node'.org.eclipse.emf.common.notify.AdaptercreateWorkProductCompositeAdapter()Creates a new adapter for an object of class 'Work Product Composite'.org.eclipse.emf.common.notify.AdaptercreateWorkProductDependencyDiagramAdapter()Creates a new adapter for an object of class 'Work Product Dependency Diagram'.org.eclipse.emf.common.notify.AdaptercreateWorkProductDescriptorNodeAdapter()Creates a new adapter for an object of class 'Work Product Descriptor Node'.org.eclipse.emf.common.notify.AdaptercreateWorkProductNodeAdapter()Creates a new adapter for an object of class 'Work Product Node'.booleanisFactoryForType(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, adaptNewMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ModelAdapterFactory
public ModelAdapterFactory()Creates an instance of the adapter factory.
-
-
Method Details
-
isFactoryForType
public boolean isFactoryForType(java.lang.Object object)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.- Parameters:
target- the object to adapt.- Returns:
- the adapter for the
target.
-
createDiagramAdapter
public org.eclipse.emf.common.notify.Adapter createDiagramAdapter()Creates a new adapter for an object of class 'Diagram'. 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:
Diagram
-
createLinkAdapter
public org.eclipse.emf.common.notify.Adapter createLinkAdapter()Creates a new adapter for an object of class 'Link'. 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:
Link
-
createLinkedObjectAdapter
public org.eclipse.emf.common.notify.Adapter createLinkedObjectAdapter()Creates a new adapter for an object of class 'Linked Object'. 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:
LinkedObject
-
createNamedNodeAdapter
public org.eclipse.emf.common.notify.Adapter createNamedNodeAdapter()Creates a new adapter for an object of class 'Named 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:
NamedNode
-
createNodeAdapter
public org.eclipse.emf.common.notify.Adapter createNodeAdapter()Creates a new adapter for an object of class '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:
Node
-
createActivityDiagramAdapter
public org.eclipse.emf.common.notify.Adapter createActivityDiagramAdapter()Creates a new adapter for an object of class 'Activity Diagram'. 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:
ActivityDiagram
-
createTypedNodeAdapter
public org.eclipse.emf.common.notify.Adapter createTypedNodeAdapter()Creates a new adapter for an object of class 'Typed 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:
TypedNode
-
createWorkProductDependencyDiagramAdapter
public org.eclipse.emf.common.notify.Adapter createWorkProductDependencyDiagramAdapter()Creates a new adapter for an object of class 'Work Product Dependency Diagram'. 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:
WorkProductDependencyDiagram
-
createWorkProductNodeAdapter
public org.eclipse.emf.common.notify.Adapter createWorkProductNodeAdapter()Creates a new adapter for an object of class 'Work Product 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:
WorkProductNode
-
createActivityDetailDiagramAdapter
public org.eclipse.emf.common.notify.Adapter createActivityDetailDiagramAdapter()Creates a new adapter for an object of class 'Activity Detail Diagram'. 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:
ActivityDetailDiagram
-
createNodeContainerAdapter
public org.eclipse.emf.common.notify.Adapter createNodeContainerAdapter()Creates a new adapter for an object of class 'Node Container'. 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:
NodeContainer
-
createRoleNodeAdapter
public org.eclipse.emf.common.notify.Adapter createRoleNodeAdapter()Creates a new adapter for an object of class 'Role 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:
RoleNode
-
createRoleTaskCompositeAdapter
public org.eclipse.emf.common.notify.Adapter createRoleTaskCompositeAdapter()Creates a new adapter for an object of class 'Role Task Composite'. 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:
RoleTaskComposite
-
createTaskNodeAdapter
public org.eclipse.emf.common.notify.Adapter createTaskNodeAdapter()Creates a new adapter for an object of class 'Task 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:
TaskNode
-
createWorkProductDescriptorNodeAdapter
public org.eclipse.emf.common.notify.Adapter createWorkProductDescriptorNodeAdapter()Creates a new adapter for an object of class 'Work Product Descriptor 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:
WorkProductDescriptorNode
-
createWorkBreakdownElementNodeAdapter
public org.eclipse.emf.common.notify.Adapter createWorkBreakdownElementNodeAdapter()Creates a new adapter for an object of class 'Work Breakdown Element 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:
WorkBreakdownElementNode
-
createWorkProductCompositeAdapter
public org.eclipse.emf.common.notify.Adapter createWorkProductCompositeAdapter()Creates a new adapter for an object of class 'Work Product Composite'. 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:
WorkProductComposite
-
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.
-