org.nasdanika.models.party.util.PartyAdapterFactory Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.party.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.nasdanika.common.Adaptable;
import org.nasdanika.models.party.*;
import org.nasdanika.ncore.Documented;
import org.nasdanika.ncore.DocumentedNamedElement;
import org.nasdanika.ncore.DocumentedNamedStringIdentity;
import org.nasdanika.ncore.ModelElement;
import org.nasdanika.ncore.NamedElement;
import org.nasdanika.ncore.StringIdentity;
import org.nasdanika.persistence.Marked;
/**
*
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
* @see org.nasdanika.models.party.PartyPackage
* @generated
*/
public class PartyAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
*
*
* @generated
*/
protected static PartyPackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public PartyAdapterFactory() {
if (modelPackage == null) {
modelPackage = PartyPackage.eINSTANCE;
}
}
/**
* 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.
*
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the createXXX
methods.
*
*
* @generated
*/
protected PartySwitch modelSwitch =
new PartySwitch() {
@Override
public Adapter caseParty(Party object) {
return createPartyAdapter();
}
@Override
public Adapter caseRole(Role object) {
return createRoleAdapter();
}
@Override
public Adapter caseOrganization(Organization object) {
return createOrganizationAdapter();
}
@Override
public Adapter casePerson(Person object) {
return createPersonAdapter();
}
@Override
public Adapter caseContactMethod(ContactMethod object) {
return createContactMethodAdapter();
}
@Override
public Adapter caseEMail(EMail object) {
return createEMailAdapter();
}
@Override
public Adapter casePhone(Phone object) {
return createPhoneAdapter();
}
@Override
public Adapter casePostalAddress(PostalAddress object) {
return createPostalAddressAdapter();
}
@Override
public Adapter caseWebAddress(WebAddress object) {
return createWebAddressAdapter();
}
@Override
public Adapter caseIMarked(Marked object) {
return createIMarkedAdapter();
}
@Override
public Adapter caseMarked(org.nasdanika.ncore.Marked object) {
return createMarkedAdapter();
}
@Override
public Adapter caseAdaptable(Adaptable object) {
return createAdaptableAdapter();
}
@Override
public Adapter caseModelElement(ModelElement object) {
return createModelElementAdapter();
}
@Override
public Adapter caseNamedElement(NamedElement object) {
return createNamedElementAdapter();
}
@Override
public Adapter caseDocumented(Documented object) {
return createDocumentedAdapter();
}
@Override
public Adapter caseDocumentedNamedElement(DocumentedNamedElement object) {
return createDocumentedNamedElementAdapter();
}
@Override
public Adapter caseStringIdentity(StringIdentity object) {
return createStringIdentityAdapter();
}
@Override
public Adapter caseDocumentedNamedStringIdentity(DocumentedNamedStringIdentity object) {
return createDocumentedNamedStringIdentityAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the target
.
*
*
* @param target the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.Party 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.Party
* @generated
*/
public Adapter createPartyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.Role 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.Role
* @generated
*/
public Adapter createRoleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.Organization 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.Organization
* @generated
*/
public Adapter createOrganizationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.Person 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.Person
* @generated
*/
public Adapter createPersonAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.ContactMethod Contact Method}'.
*
* 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.ContactMethod
* @generated
*/
public Adapter createContactMethodAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.EMail 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.EMail
* @generated
*/
public Adapter createEMailAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.Phone 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.Phone
* @generated
*/
public Adapter createPhoneAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.PostalAddress Postal 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.PostalAddress
* @generated
*/
public Adapter createPostalAddressAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.party.WebAddress Web 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.
*
* @return the new adapter.
* @see org.nasdanika.models.party.WebAddress
* @generated
*/
public Adapter createWebAddressAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.persistence.Marked IMarked}'.
*
* 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.
*
* @return the new adapter.
* @see org.nasdanika.persistence.Marked
* @generated
*/
public Adapter createIMarkedAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.Marked Marked}'.
*
* 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.Marked
* @generated
*/
public Adapter createMarkedAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.common.Adaptable Adaptable}'.
*
* 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.
*
* @return the new adapter.
* @see org.nasdanika.common.Adaptable
* @generated
*/
public Adapter createAdaptableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.ModelElement Model 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.ModelElement
* @generated
*/
public Adapter createModelElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.NamedElement Named 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.NamedElement
* @generated
*/
public Adapter createNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.Documented Documented}'.
*
* 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.Documented
* @generated
*/
public Adapter createDocumentedAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.DocumentedNamedElement Documented Named 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.DocumentedNamedElement
* @generated
*/
public Adapter createDocumentedNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.StringIdentity String 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.StringIdentity
* @generated
*/
public Adapter createStringIdentityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.ncore.DocumentedNamedStringIdentity Documented Named String 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.
*
* @return the new adapter.
* @see org.nasdanika.ncore.DocumentedNamedStringIdentity
* @generated
*/
public Adapter createDocumentedNamedStringIdentityAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
*
* This default implementation returns null.
*
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //PartyAdapterFactory