Traceability

ttm.util
Class TtmAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by ttm.util.TtmAdapterFactory
All Implemented Interfaces:
AdapterFactory
Direct Known Subclasses:
TtmItemProviderAdapterFactory, TtmModelerProviderAdapterFactory

public class TtmAdapterFactory
extends AdapterFactoryImpl

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

See Also:
TtmPackage
** Generated **

Field Summary
protected static TtmPackage modelPackage
          The cached model package
protected  TtmSwitch modelSwitch
          The switch the delegates to the createXXX methods
 
Constructor Summary
TtmAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 Adapter createAbstractLinkAdapter()
          Creates a new adapter for an object of class 'Abstract Link'
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target
 Adapter createAttributeAdapter()
          Creates a new adapter for an object of class 'Attribute'
 Adapter createAttributeOwnerAdapter()
          Creates a new adapter for an object of class 'Attribute Owner'
 Adapter createCoverageResultAdapter()
          Creates a new adapter for an object of class 'Coverage Result'
 Adapter createCoverLinkAdapter()
          Creates a new adapter for an object of class 'Cover Link'
 Adapter createCoverPointAdapter()
          Creates a new adapter for an object of class 'Cover Point'
 Adapter createDocumentAdapter()
          Creates a new adapter for an object of class 'Document'
 Adapter createElementAdapter()
          Creates a new adapter for an object of class 'Element'
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 Adapter createHierarchicalElementAdapter()
          Creates a new adapter for an object of class 'Hierarchical Element'
 Adapter createIdentifiedElementAdapter()
          Creates a new adapter for an object of class 'Identified Element'
 Adapter createNavigationLinkAdapter()
          Creates a new adapter for an object of class 'Navigation Link'
 Adapter createProjectAdapter()
          Creates a new adapter for an object of class 'Project'
 Adapter createRequirementAdapter()
          Creates a new adapter for an object of class 'Requirement'
 Adapter createRuleAdapter()
          Creates a new adapter for an object of class 'Rule'
 Adapter createRuleInstanceAdapter()
          Creates a new adapter for an object of class 'Rule Instance'
 Adapter createSectionAdapter()
          Creates a new adapter for an object of class 'Section'
 Adapter createTextAdapter()
          Creates a new adapter for an object of class 'Text'
 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 TtmPackage modelPackage
The cached model package.

** Generated **

modelSwitch

protected TtmSwitch modelSwitch
The switch the delegates to the createXXX methods.

** Generated **
Constructor Detail

TtmAdapterFactory

public TtmAdapterFactory()
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 AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
** 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 **

createHierarchicalElementAdapter

public Adapter createHierarchicalElementAdapter()
Creates a new adapter for an object of class 'Hierarchical 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:
HierarchicalElement
** Generated **

createDocumentAdapter

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

createSectionAdapter

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

createIdentifiedElementAdapter

public Adapter createIdentifiedElementAdapter()
Creates a new adapter for an object of class 'Identified 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:
IdentifiedElement
** Generated **

createTextAdapter

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

createAttributeAdapter

public 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:
Attribute
** Generated **

createRequirementAdapter

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

createCoverLinkAdapter

public Adapter createCoverLinkAdapter()
Creates a new adapter for an object of class 'Cover 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:
CoverLink
** Generated **

createNavigationLinkAdapter

public Adapter createNavigationLinkAdapter()
Creates a new adapter for an object of class 'Navigation 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:
NavigationLink
** Generated **

createAbstractLinkAdapter

public Adapter createAbstractLinkAdapter()
Creates a new adapter for an object of class 'Abstract 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:
AbstractLink
** Generated **

createProjectAdapter

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

createElementAdapter

public Adapter createElementAdapter()
Creates a new adapter for an object of class '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:
Element
** Generated **

createRuleInstanceAdapter

public Adapter createRuleInstanceAdapter()
Creates a new adapter for an object of class 'Rule Instance'. 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:
RuleInstance
** Generated **

createAttributeOwnerAdapter

public Adapter createAttributeOwnerAdapter()
Creates a new adapter for an object of class 'Attribute Owner'. 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:
AttributeOwner
** Generated **

createRuleAdapter

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

createCoverageResultAdapter

public Adapter createCoverageResultAdapter()
Creates a new adapter for an object of class 'Coverage Result'. 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:
CoverageResult
** Generated **

createCoverPointAdapter

public Adapter createCoverPointAdapter()
Creates a new adapter for an object of class 'Cover Point'. 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:
CoverPoint
** Generated **

createEObjectAdapter

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

Returns:
the new adapter.
** Generated **

Traceability

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.