Java Code Examples for org.eclipse.emf.ecore.EClass#eContainer()

The following examples show how to use org.eclipse.emf.ecore.EClass#eContainer() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ModelSwitch.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject)
{
	if (theEClass.eContainer() == modelPackage)
	{
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else
	{
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 2
Source File: DiSwitch.java    From fixflow with Apache License 2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
    if (theEClass.eContainer() == modelPackage) {
        return doSwitch(theEClass.getClassifierID(), theEObject);
    } else {
        List<EClass> eSuperTypes = theEClass.getESuperTypes();
        return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0),
                theEObject);
    }
}
 
Example 3
Source File: ComponentSwitch.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch( EClass theEClass, EObject theEObject )
{
	if ( theEClass.eContainer( ) == modelPackage )
	{
		return doSwitch( theEClass.getClassifierID( ), theEObject );
	}
	else
	{
		List<EClass> eSuperTypes = theEClass.getESuperTypes( );
		return eSuperTypes.isEmpty( ) ? defaultCase( theEObject )
				: doSwitch( eSuperTypes.get( 0 ), theEObject );
	}
}
 
Example 4
Source File: Xpdl1Switch.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 5
Source File: DataSwitch.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch( EClass theEClass, EObject theEObject )
{
	if ( theEClass.eContainer( ) == modelPackage )
	{
		return doSwitch( theEClass.getClassifierID( ), theEObject );
	}
	else
	{
		List<EClass> eSuperTypes = theEClass.getESuperTypes( );
		return eSuperTypes.isEmpty( ) ? defaultCase( theEObject )
				: doSwitch( eSuperTypes.get( 0 ), theEObject );
	}
}
 
Example 6
Source File: ServicesSwitch.java    From tesb-studio-se with Apache License 2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
    if (theEClass.eContainer() == modelPackage) {
        return doSwitch(theEClass.getClassifierID(), theEObject);
    }
    else {
        List<EClass> eSuperTypes = theEClass.getESuperTypes();
        return
            eSuperTypes.isEmpty() ?
                defaultCase(theEObject) :
                doSwitch(eSuperTypes.get(0), theEObject);
    }
}
 
Example 7
Source File: ValidscopingtestSwitch.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 8
Source File: GenericTestSwitch.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T1 doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 9
Source File: Ecore2xtextSwitch.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 10
Source File: SimplestructureSwitch.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 11
Source File: ModelSwitch.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 12
Source File: BusinessModelSwitch.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 13
Source File: BehaviouralModelSwitch.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 14
Source File: RadarTypeSwitch.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns
 * a non null result; it yields that result. <!-- begin-user-doc --> <!--
 * end-user-doc -->
 * 
 * @return the first non-null result returned by a <code>caseXXX</code>
 *         call.
 * @generated
 */
protected T doSwitch( EClass theEClass, EObject theEObject )
{
	if ( theEClass.eContainer( ) == modelPackage )
	{
		return doSwitch( theEClass.getClassifierID( ), theEObject );
	}
	else
	{
		List<EClass> eSuperTypes = theEClass.getESuperTypes( );
		return eSuperTypes.isEmpty( ) ? defaultCase( theEObject )
				: doSwitch( eSuperTypes.get( 0 ), theEObject );
	}
}
 
Example 15
Source File: OlapModelSwitch.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 16
Source File: LayoutSwitch.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch( EClass theEClass, EObject theEObject )
{
	if ( theEClass.eContainer( ) == modelPackage )
	{
		return doSwitch( theEClass.getClassifierID( ), theEObject );
	}
	else
	{
		List<EClass> eSuperTypes = theEClass.getESuperTypes( );
		return eSuperTypes.isEmpty( ) ? defaultCase( theEObject )
				: doSwitch( eSuperTypes.get( 0 ), theEObject );
	}
}
 
Example 17
Source File: DiSwitch.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 18
Source File: BehaviouralModelSwitch.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
Example 19
Source File: MigrationSwitch.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that
 * result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	final List<EClass> eSuperTypes = theEClass.getESuperTypes();
	return eSuperTypes.isEmpty() ?
		defaultCase(theEObject) :
		doSwitch(eSuperTypes.get(0), theEObject);

}
 
Example 20
Source File: BpmnDiSwitch.java    From fixflow with Apache License 2.0 5 votes vote down vote up
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
    if (theEClass.eContainer() == modelPackage) {
        return doSwitch(theEClass.getClassifierID(), theEObject);
    } else {
        List<EClass> eSuperTypes = theEClass.getESuperTypes();
        return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0),
                theEObject);
    }
}