/*
* Copyright (c) 2012, 2013 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.emf.cdo.security.util;
import org.eclipse.emf.cdo.etypes.ModelElement;
import org.eclipse.emf.cdo.security.AndFilter;
import org.eclipse.emf.cdo.security.Assignee;
import org.eclipse.emf.cdo.security.ClassFilter;
import org.eclipse.emf.cdo.security.ClassPermission;
import org.eclipse.emf.cdo.security.CombinedFilter;
import org.eclipse.emf.cdo.security.Directory;
import org.eclipse.emf.cdo.security.ExpressionFilter;
import org.eclipse.emf.cdo.security.FilterPermission;
import org.eclipse.emf.cdo.security.Group;
import org.eclipse.emf.cdo.security.LinkedFilter;
import org.eclipse.emf.cdo.security.NotFilter;
import org.eclipse.emf.cdo.security.ObjectFilter;
import org.eclipse.emf.cdo.security.ObjectPermission;
import org.eclipse.emf.cdo.security.OrFilter;
import org.eclipse.emf.cdo.security.PackageFilter;
import org.eclipse.emf.cdo.security.PackagePermission;
import org.eclipse.emf.cdo.security.Permission;
import org.eclipse.emf.cdo.security.PermissionFilter;
import org.eclipse.emf.cdo.security.Realm;
import org.eclipse.emf.cdo.security.ResourceFilter;
import org.eclipse.emf.cdo.security.ResourcePermission;
import org.eclipse.emf.cdo.security.Role;
import org.eclipse.emf.cdo.security.SecurityElement;
import org.eclipse.emf.cdo.security.SecurityItem;
import org.eclipse.emf.cdo.security.SecurityPackage;
import org.eclipse.emf.cdo.security.User;
import org.eclipse.emf.cdo.security.UserPassword;
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.eclipse.emf.cdo.security.*;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see org.eclipse.emf.cdo.security.SecurityPackage
* @generated
*/
@SuppressWarnings("deprecation")
public class SecurityAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static SecurityPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SecurityAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = SecurityPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @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 <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SecuritySwitch<Adapter> modelSwitch = new SecuritySwitch<Adapter>()
{
@Override
public Adapter caseSecurityElement(SecurityElement object)
{
return createSecurityElementAdapter();
}
@Override
public Adapter caseSecurityItem(SecurityItem object)
{
return createSecurityItemAdapter();
}
@Override
public Adapter caseRealm(Realm object)
{
return createRealmAdapter();
}
@Override
public Adapter caseDirectory(Directory object)
{
return createDirectoryAdapter();
}
@Override
public Adapter caseRole(Role object)
{
return createRoleAdapter();
}
@Override
public Adapter caseAssignee(Assignee object)
{
return createAssigneeAdapter();
}
@Override
public Adapter caseGroup(Group object)
{
return createGroupAdapter();
}
@Override
public Adapter caseUser(User object)
{
return createUserAdapter();
}
@Override
public Adapter caseUserPassword(UserPassword object)
{
return createUserPasswordAdapter();
}
@Override
public Adapter casePermission(Permission object)
{
return createPermissionAdapter();
}
@Override
public Adapter caseClassPermission(ClassPermission object)
{
return createClassPermissionAdapter();
}
@Override
public Adapter casePackagePermission(PackagePermission object)
{
return createPackagePermissionAdapter();
}
@Override
public Adapter caseResourcePermission(ResourcePermission object)
{
return createResourcePermissionAdapter();
}
@Override
public Adapter caseObjectPermission(ObjectPermission object)
{
return createObjectPermissionAdapter();
}
@Override
public Adapter caseFilterPermission(FilterPermission object)
{
return createFilterPermissionAdapter();
}
@Override
public Adapter casePermissionFilter(PermissionFilter object)
{
return createPermissionFilterAdapter();
}
@Override
public Adapter caseLinkedFilter(LinkedFilter object)
{
return createLinkedFilterAdapter();
}
@Override
public Adapter casePackageFilter(PackageFilter object)
{
return createPackageFilterAdapter();
}
@Override
public Adapter caseClassFilter(ClassFilter object)
{
return createClassFilterAdapter();
}
@Override
public Adapter caseResourceFilter(ResourceFilter object)
{
return createResourceFilterAdapter();
}
@Override
public Adapter caseObjectFilter(ObjectFilter object)
{
return createObjectFilterAdapter();
}
@Override
public Adapter caseExpressionFilter(ExpressionFilter object)
{
return createExpressionFilterAdapter();
}
@Override
public Adapter caseCombinedFilter(CombinedFilter object)
{
return createCombinedFilterAdapter();
}
@Override
public Adapter caseNotFilter(NotFilter object)
{
return createNotFilterAdapter();
}
@Override
public Adapter caseAndFilter(AndFilter object)
{
return createAndFilterAdapter();
}
@Override
public Adapter caseOrFilter(OrFilter object)
{
return createOrFilterAdapter();
}
@Override
public Adapter caseModelElement(ModelElement object)
{
return createModelElementAdapter();
}
@Override
public Adapter defaultCase(EObject object)
{
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target)
{
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.SecurityElement <em>Element</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.SecurityElement
* @generated
*/
public Adapter createSecurityElementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.Realm <em>Realm</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.Realm
* @generated
*/
public Adapter createRealmAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.Directory <em>Directory</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.Directory
* @generated
*/
public Adapter createDirectoryAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.SecurityItem <em>Item</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.SecurityItem
* @generated
*/
public Adapter createSecurityItemAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.Role <em>Role</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.Role
* @generated
*/
public Adapter createRoleAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.Assignee <em>Assignee</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.Assignee
* @generated
*/
public Adapter createAssigneeAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.Group <em>Group</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.Group
* @generated
*/
public Adapter createGroupAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.User <em>User</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.User
* @generated
*/
public Adapter createUserAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.UserPassword <em>User Password</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.UserPassword
* @generated
*/
public Adapter createUserPasswordAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.Permission <em>Permission</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.Permission
* @generated
*/
public Adapter createPermissionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ClassPermission <em>Class Permission</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ClassPermission
* @generated
*/
public Adapter createClassPermissionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.PackagePermission <em>Package Permission</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.PackagePermission
* @generated
*/
public Adapter createPackagePermissionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ResourcePermission <em>Resource Permission</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ResourcePermission
* @generated
*/
public Adapter createResourcePermissionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ObjectPermission <em>Object Permission</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.2
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ObjectPermission
* @generated
*/
public Adapter createObjectPermissionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.FilterPermission <em>Filter Permission</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.FilterPermission
* @generated
*/
public Adapter createFilterPermissionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.PermissionFilter <em>Permission Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.PermissionFilter
* @generated
*/
public Adapter createPermissionFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.LinkedFilter <em>Linked Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.LinkedFilter
* @generated
*/
public Adapter createLinkedFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.PackageFilter <em>Package Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.PackageFilter
* @generated
*/
public Adapter createPackageFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ClassFilter <em>Class Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ClassFilter
* @generated
*/
public Adapter createClassFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ResourceFilter <em>Resource Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ResourceFilter
* @generated
*/
public Adapter createResourceFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ObjectFilter <em>Object Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ObjectFilter
* @generated
*/
public Adapter createObjectFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.ExpressionFilter <em>Expression Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.ExpressionFilter
* @generated
*/
public Adapter createExpressionFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.CombinedFilter <em>Combined Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.CombinedFilter
* @generated
*/
public Adapter createCombinedFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.NotFilter <em>Not Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.NotFilter
* @generated
*/
public Adapter createNotFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.AndFilter <em>And Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.AndFilter
* @generated
*/
public Adapter createAndFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.security.OrFilter <em>Or Filter</em>}'.
* <!-- begin-user-doc -->
* 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.
* @since 4.3
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.security.OrFilter
* @generated
*/
public Adapter createOrFilterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.etypes.ModelElement <em>Model Element</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.cdo.etypes.ModelElement
* @generated
*/
public Adapter createModelElementAdapter()
{
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter()
{
return null;
}
} // SecurityAdapterFactory