CommonAdapterFactory.java
/**
* *
* Copyright (c) 2004-2025 Carnegie Mellon University and others. (see Contributors file).
* All Rights Reserved.
*
* NO WARRANTY. ALL MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE
* OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT
* MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
* SPDX-License-Identifier: EPL-2.0
*
* Created, in part, with funding and support from the United States Government. (see Acknowledgments file).
*
* This program includes and/or can make use of certain third party source code, object code, documentation and other
* files ("Third Party Software"). The Third Party Software that is used by this program is dependent upon your system
* configuration. By using this program, You agree to comply with any and all relevant Third Party Software terms and
* conditions contained in any such Third Party Software or separate license file distributed with such Third Party
* Software. The parties who own the Third Party Software ("Third Party Licensors") are intended third party benefici-
* aries to this license with respect to the terms applicable to their Third Party Software. Third Party Software li-
* censes only apply to the Third Party Software and not any other portion of this program or this program as a whole.
*/
package org.osate.alisa.common.common.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.osate.aadl2.Element;
import org.osate.aadl2.NamedElement;
import org.osate.aadl2.PropertyExpression;
import org.osate.aadl2.PropertyType;
import org.osate.aadl2.Type;
import org.osate.alisa.common.common.*;
/**
* <!-- 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.osate.alisa.common.common.CommonPackage
* @generated
*/
public class CommonAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static CommonPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CommonAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = CommonPackage.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 CommonSwitch<Adapter> modelSwitch =
new CommonSwitch<Adapter>()
{
@Override
public Adapter caseDescription(Description object)
{
return createDescriptionAdapter();
}
@Override
public Adapter caseDescriptionElement(DescriptionElement object)
{
return createDescriptionElementAdapter();
}
@Override
public Adapter caseRationale(Rationale object)
{
return createRationaleAdapter();
}
@Override
public Adapter caseUncertainty(Uncertainty object)
{
return createUncertaintyAdapter();
}
@Override
public Adapter caseAVariableDeclaration(AVariableDeclaration object)
{
return createAVariableDeclarationAdapter();
}
@Override
public Adapter caseAExpression(AExpression object)
{
return createAExpressionAdapter();
}
@Override
public Adapter caseAModelReference(AModelReference object)
{
return createAModelReferenceAdapter();
}
@Override
public Adapter caseAPropertyReference(APropertyReference object)
{
return createAPropertyReferenceAdapter();
}
@Override
public Adapter caseAUnitExpression(AUnitExpression object)
{
return createAUnitExpressionAdapter();
}
@Override
public Adapter caseImageReference(ImageReference object)
{
return createImageReferenceAdapter();
}
@Override
public Adapter caseModelRef(ModelRef object)
{
return createModelRefAdapter();
}
@Override
public Adapter caseTypeRef(TypeRef object)
{
return createTypeRefAdapter();
}
@Override
public Adapter casePropertyRef(PropertyRef object)
{
return createPropertyRefAdapter();
}
@Override
public Adapter caseValDeclaration(ValDeclaration object)
{
return createValDeclarationAdapter();
}
@Override
public Adapter caseComputeDeclaration(ComputeDeclaration object)
{
return createComputeDeclarationAdapter();
}
@Override
public Adapter caseAVariableReference(AVariableReference object)
{
return createAVariableReferenceAdapter();
}
@Override
public Adapter caseABinaryOperation(ABinaryOperation object)
{
return createABinaryOperationAdapter();
}
@Override
public Adapter caseAUnaryOperation(AUnaryOperation object)
{
return createAUnaryOperationAdapter();
}
@Override
public Adapter caseAFunctionCall(AFunctionCall object)
{
return createAFunctionCallAdapter();
}
@Override
public Adapter caseARange(ARange object)
{
return createARangeAdapter();
}
@Override
public Adapter caseAConditional(AConditional object)
{
return createAConditionalAdapter();
}
@Override
public Adapter caseElement(Element object)
{
return createElementAdapter();
}
@Override
public Adapter casePropertyExpression(PropertyExpression object)
{
return createPropertyExpressionAdapter();
}
@Override
public Adapter caseNamedElement(NamedElement object)
{
return createNamedElementAdapter();
}
@Override
public Adapter caseType(Type object)
{
return createTypeAdapter();
}
@Override
public Adapter casePropertyType(PropertyType object)
{
return createPropertyTypeAdapter();
}
@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.osate.alisa.common.common.Description <em>Description</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.osate.alisa.common.common.Description
* @generated
*/
public Adapter createDescriptionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.DescriptionElement <em>Description 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.osate.alisa.common.common.DescriptionElement
* @generated
*/
public Adapter createDescriptionElementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.Rationale <em>Rationale</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.osate.alisa.common.common.Rationale
* @generated
*/
public Adapter createRationaleAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.Uncertainty <em>Uncertainty</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.osate.alisa.common.common.Uncertainty
* @generated
*/
public Adapter createUncertaintyAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AVariableDeclaration <em>AVariable Declaration</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.osate.alisa.common.common.AVariableDeclaration
* @generated
*/
public Adapter createAVariableDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AExpression <em>AExpression</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.osate.alisa.common.common.AExpression
* @generated
*/
public Adapter createAExpressionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AModelReference <em>AModel Reference</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.osate.alisa.common.common.AModelReference
* @generated
*/
public Adapter createAModelReferenceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.APropertyReference <em>AProperty Reference</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.osate.alisa.common.common.APropertyReference
* @generated
*/
public Adapter createAPropertyReferenceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AUnitExpression <em>AUnit Expression</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.osate.alisa.common.common.AUnitExpression
* @generated
*/
public Adapter createAUnitExpressionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ImageReference <em>Image Reference</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.osate.alisa.common.common.ImageReference
* @generated
*/
public Adapter createImageReferenceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ModelRef <em>Model Ref</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.osate.alisa.common.common.ModelRef
* @generated
*/
public Adapter createModelRefAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.TypeRef <em>Type Ref</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.osate.alisa.common.common.TypeRef
* @generated
*/
public Adapter createTypeRefAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.PropertyRef <em>Property Ref</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.osate.alisa.common.common.PropertyRef
* @generated
*/
public Adapter createPropertyRefAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ValDeclaration <em>Val Declaration</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.osate.alisa.common.common.ValDeclaration
* @generated
*/
public Adapter createValDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ComputeDeclaration <em>Compute Declaration</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.osate.alisa.common.common.ComputeDeclaration
* @generated
*/
public Adapter createComputeDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AVariableReference <em>AVariable Reference</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.osate.alisa.common.common.AVariableReference
* @generated
*/
public Adapter createAVariableReferenceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ABinaryOperation <em>ABinary Operation</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.osate.alisa.common.common.ABinaryOperation
* @generated
*/
public Adapter createABinaryOperationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AUnaryOperation <em>AUnary Operation</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.osate.alisa.common.common.AUnaryOperation
* @generated
*/
public Adapter createAUnaryOperationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AFunctionCall <em>AFunction Call</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.osate.alisa.common.common.AFunctionCall
* @generated
*/
public Adapter createAFunctionCallAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ARange <em>ARange</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.osate.alisa.common.common.ARange
* @generated
*/
public Adapter createARangeAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AConditional <em>AConditional</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.osate.alisa.common.common.AConditional
* @generated
*/
public Adapter createAConditionalAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.aadl2.Element <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.osate.aadl2.Element
* @generated
*/
public Adapter createElementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.aadl2.PropertyExpression <em>Property Expression</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.osate.aadl2.PropertyExpression
* @generated
*/
public Adapter createPropertyExpressionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.aadl2.NamedElement <em>Named 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.osate.aadl2.NamedElement
* @generated
*/
public Adapter createNamedElementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.aadl2.Type <em>Type</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.osate.aadl2.Type
* @generated
*/
public Adapter createTypeAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.aadl2.PropertyType <em>Property Type</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.osate.aadl2.PropertyType
* @generated
*/
public Adapter createPropertyTypeAdapter()
{
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;
}
} //CommonAdapterFactory