com.hammurapi.party.util
Class PartyAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by com.hammurapi.party.util.PartyAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class PartyAdapterFactory
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:
PartyPackage

Field Summary
protected static PartyPackage modelPackage
          The cached model package.
protected  PartySwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
PartyAdapterFactory()
          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 createAddressAdapter()
          Creates a new adapter for an object of class 'Address'.
 org.eclipse.emf.common.notify.Adapter createCommonObjectAdapter()
          Creates a new adapter for an object of class 'Common Object'.
 org.eclipse.emf.common.notify.Adapter createContactInfoAdapter()
          Creates a new adapter for an object of class 'Contact Info'.
 org.eclipse.emf.common.notify.Adapter createCustomAdapter()
          Creates a new adapter for an object of class 'Custom'.
 org.eclipse.emf.common.notify.Adapter createDateEffectiveObjectAdapter()
          Creates a new adapter for an object of class 'Date Effective Object'.
 org.eclipse.emf.common.notify.Adapter createEMailAdapter()
          Creates a new adapter for an object of class 'EMail'.
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 org.eclipse.emf.common.notify.Adapter createIdentityAdapter()
          Creates a new adapter for an object of class 'Identity'.
 org.eclipse.emf.common.notify.Adapter createMatrixRelationshipAdapter()
          Creates a new adapter for an object of class 'Matrix Relationship'.
 org.eclipse.emf.common.notify.Adapter createOrganizationAdapter()
          Creates a new adapter for an object of class 'Organization'.
 org.eclipse.emf.common.notify.Adapter createPartyAdapter()
          Creates a new adapter for an object of class 'Party'.
 org.eclipse.emf.common.notify.Adapter createPersonAdapter()
          Creates a new adapter for an object of class 'Person'.
 org.eclipse.emf.common.notify.Adapter createPhoneAdapter()
          Creates a new adapter for an object of class 'Phone'.
 org.eclipse.emf.common.notify.Adapter createRoleAdapter()
          Creates a new adapter for an object of class 'Role'.
 org.eclipse.emf.common.notify.Adapter createTagAdapter()
          Creates a new adapter for an object of class 'Tag'.
 org.eclipse.emf.common.notify.Adapter createTaggedAdapter()
          Creates a new adapter for an object of class 'Tagged'.
 org.eclipse.emf.common.notify.Adapter createURLAdapter()
          Creates a new adapter for an object of class 'URL'.
 org.eclipse.emf.common.notify.Adapter createUSAddressAdapter()
          Creates a new adapter for an object of class 'US Address'.
 org.eclipse.emf.common.notify.Adapter createWebAdapter()
          Creates a new adapter for an object of class 'Web'.
 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 PartyPackage modelPackage
The cached model package.


modelSwitch

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

Constructor Detail

PartyAdapterFactory

public PartyAdapterFactory()
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 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.

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.

createPartyAdapter

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

createIdentityAdapter

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

createTaggedAdapter

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

createDateEffectiveObjectAdapter

public org.eclipse.emf.common.notify.Adapter createDateEffectiveObjectAdapter()
Creates a new adapter for an object of class 'Date Effective 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:
DateEffectiveObject

createContactInfoAdapter

public org.eclipse.emf.common.notify.Adapter createContactInfoAdapter()
Creates a new adapter for an object of class 'Contact Info'. 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:
ContactInfo

createPhoneAdapter

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

createWebAdapter

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

createEMailAdapter

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

createAddressAdapter

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

createCustomAdapter

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

createUSAddressAdapter

public org.eclipse.emf.common.notify.Adapter createUSAddressAdapter()
Creates a new adapter for an object of class 'US Address'. 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:
USAddress

createOrganizationAdapter

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

createPersonAdapter

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

createTagAdapter

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

createRoleAdapter

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

createURLAdapter

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

createCommonObjectAdapter

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

createMatrixRelationshipAdapter

public org.eclipse.emf.common.notify.Adapter createMatrixRelationshipAdapter()
Creates a new adapter for an object of class 'Matrix Relationship'. 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:
MatrixRelationship

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.