UML Modeling Layer

com.ibm.xtools.umlnotation.util
Class UmlnotationAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by com.ibm.xtools.umlnotation.util.UmlnotationAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class UmlnotationAdapterFactory
extends AdapterFactoryImpl

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

See Also:
UmlnotationPackage

Field Summary
protected static UmlnotationPackage modelPackage
          The cached model package
protected  UmlnotationSwitch modelSwitch
          The switch that delegates to the createXXX methods
 
Constructor Summary
UmlnotationAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target
 Adapter createCanonicalStyleAdapter()
          Creates a new adapter for an object of class 'Canonical Style'
 Adapter createDescriptionStyleAdapter()
          Creates a new adapter for an object of class 'Description Style'
 Adapter createDiagramStyleAdapter()
          Creates a new adapter for an object of class 'Diagram Style'
 Adapter createDrawerStyleAdapter()
          Creates a new adapter for an object of class 'Drawer Style'
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 Adapter createFillStyleAdapter()
          Creates a new adapter for an object of class 'Fill Style'
 Adapter createFilteringStyleAdapter()
          Creates a new adapter for an object of class 'Filtering Style'
 Adapter createFontStyleAdapter()
          Creates a new adapter for an object of class 'Font Style'
 Adapter createGuideStyleAdapter()
          Creates a new adapter for an object of class 'Guide Style'
 Adapter createLineStyleAdapter()
          Creates a new adapter for an object of class 'Line Style'
 Adapter createPageStyleAdapter()
          Creates a new adapter for an object of class 'Page Style'
 Adapter createRoutingStyleAdapter()
          Creates a new adapter for an object of class 'Routing Style'
 Adapter createSortingStyleAdapter()
          Creates a new adapter for an object of class 'Sorting Style'
 Adapter createStyleAdapter()
          Creates a new adapter for an object of class 'Style'
 Adapter createTitleStyleAdapter()
          Creates a new adapter for an object of class 'Title Style'
 Adapter createUMLClassifierStyleAdapter()
          Creates a new adapter for an object of class 'UML Classifier Style'
 Adapter createUMLComponentStyleAdapter()
          Creates a new adapter for an object of class 'UML Component Style'
 Adapter createUMLConnectorStyleAdapter()
          Creates a new adapter for an object of class 'UML Connector Style'
 Adapter createUMLDiagramStyleAdapter()
          Creates a new adapter for an object of class 'UML Diagram Style'
 Adapter createUMLFrameStyleAdapter()
          Creates a new adapter for an object of class 'UML Frame Style'
 Adapter createUMLListCompartmentStyleAdapter()
          Creates a new adapter for an object of class 'UML List Compartment Style'
 Adapter createUMLListStyleAdapter()
          Creates a new adapter for an object of class 'UML List Style'
 Adapter createUMLNameStyleAdapter()
          Creates a new adapter for an object of class 'UML Name Style'
 Adapter createUMLParentStyleAdapter()
          Creates a new adapter for an object of class 'UML Parent Style'
 Adapter createUMLShapeCompartmentStyleAdapter()
          Creates a new adapter for an object of class 'UML Shape Compartment Style'
 Adapter createUMLShapeStyleAdapter()
          Creates a new adapter for an object of class 'UML Shape Style'
 Adapter createUMLStereotypeStyleAdapter()
          Creates a new adapter for an object of class 'UML Stereotype Style'
 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 UmlnotationPackage modelPackage
The cached model package.


modelSwitch

protected UmlnotationSwitch modelSwitch
The switch that delegates to the createXXX methods.

Constructor Detail

UmlnotationAdapterFactory

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

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.

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.

createUMLNameStyleAdapter

public Adapter createUMLNameStyleAdapter()
Creates a new adapter for an object of class 'UML Name Style'. 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:
UMLNameStyle

createUMLStereotypeStyleAdapter

public Adapter createUMLStereotypeStyleAdapter()
Creates a new adapter for an object of class 'UML Stereotype Style'. 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:
UMLStereotypeStyle

createUMLParentStyleAdapter

public Adapter createUMLParentStyleAdapter()
Creates a new adapter for an object of class 'UML Parent Style'. 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:
UMLParentStyle

createUMLShapeStyleAdapter

public Adapter createUMLShapeStyleAdapter()
Creates a new adapter for an object of class 'UML Shape Style'. 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:
UMLShapeStyle

createUMLClassifierStyleAdapter

public Adapter createUMLClassifierStyleAdapter()
Creates a new adapter for an object of class 'UML Classifier Style'. 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:
UMLClassifierStyle

createUMLListStyleAdapter

public Adapter createUMLListStyleAdapter()
Creates a new adapter for an object of class 'UML List Style'. 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:
UMLListStyle

createUMLComponentStyleAdapter

public Adapter createUMLComponentStyleAdapter()
Creates a new adapter for an object of class 'UML Component Style'. 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:
UMLComponentStyle

createUMLDiagramStyleAdapter

public Adapter createUMLDiagramStyleAdapter()
Creates a new adapter for an object of class 'UML Diagram Style'. 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:
UMLDiagramStyle

createUMLFrameStyleAdapter

public Adapter createUMLFrameStyleAdapter()
Creates a new adapter for an object of class 'UML Frame Style'. 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:
UMLFrameStyle

createUMLConnectorStyleAdapter

public Adapter createUMLConnectorStyleAdapter()
Creates a new adapter for an object of class 'UML Connector Style'. 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:
UMLConnectorStyle

createUMLListCompartmentStyleAdapter

public Adapter createUMLListCompartmentStyleAdapter()
Creates a new adapter for an object of class 'UML List Compartment Style'. 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:
UMLListCompartmentStyle

createUMLShapeCompartmentStyleAdapter

public Adapter createUMLShapeCompartmentStyleAdapter()
Creates a new adapter for an object of class 'UML Shape Compartment Style'. 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:
UMLShapeCompartmentStyle

createStyleAdapter

public Adapter createStyleAdapter()
Creates a new adapter for an object of class 'Style'. 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:
Style

createFontStyleAdapter

public Adapter createFontStyleAdapter()
Creates a new adapter for an object of class 'Font Style'. 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:
FontStyle

createFillStyleAdapter

public Adapter createFillStyleAdapter()
Creates a new adapter for an object of class 'Fill Style'. 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:
FillStyle

createLineStyleAdapter

public Adapter createLineStyleAdapter()
Creates a new adapter for an object of class 'Line Style'. 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:
LineStyle

createPageStyleAdapter

public Adapter createPageStyleAdapter()
Creates a new adapter for an object of class 'Page Style'. 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:
PageStyle

createGuideStyleAdapter

public Adapter createGuideStyleAdapter()
Creates a new adapter for an object of class 'Guide Style'. 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:
GuideStyle

createDescriptionStyleAdapter

public Adapter createDescriptionStyleAdapter()
Creates a new adapter for an object of class 'Description Style'. 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:
DescriptionStyle

createDiagramStyleAdapter

public Adapter createDiagramStyleAdapter()
Creates a new adapter for an object of class 'Diagram Style'. 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:
DiagramStyle

createCanonicalStyleAdapter

public Adapter createCanonicalStyleAdapter()
Creates a new adapter for an object of class 'Canonical Style'. 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:
CanonicalStyle

createRoutingStyleAdapter

public Adapter createRoutingStyleAdapter()
Creates a new adapter for an object of class 'Routing Style'. 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:
RoutingStyle

createFilteringStyleAdapter

public Adapter createFilteringStyleAdapter()
Creates a new adapter for an object of class 'Filtering Style'. 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:
FilteringStyle

createSortingStyleAdapter

public Adapter createSortingStyleAdapter()
Creates a new adapter for an object of class 'Sorting Style'. 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:
SortingStyle

createDrawerStyleAdapter

public Adapter createDrawerStyleAdapter()
Creates a new adapter for an object of class 'Drawer Style'. 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:
DrawerStyle

createTitleStyleAdapter

public Adapter createTitleStyleAdapter()
Creates a new adapter for an object of class 'Title Style'. 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:
TitleStyle

createEObjectAdapter

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

Returns:
the new adapter.

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.