Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.uml2.codegen.ecore.genmodel.util
Class GenModelSwitch<T>

java.lang.Object
  extended by 
org.eclipse.uml2.codegen.ecore.genmodel.util.GenModelSwitch<T>

public class GenModelSwitch<T>
extends java.lang.Object

The Switch for the model's inheritance hierarchy. It supports the call doSwitch(object) to invoke the caseXXX method for each class of the model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is returned, which is the result of the switch.

See Also:
GenModelPackage

Field Summary
protected static  GenModelPackage modelPackage
          The cached model package
 
Constructor Summary
GenModelSwitch ()
          Creates an instance of the switch
 
Method Summary
  T caseGenBase ( GenBase object)
          Returns the result of interpreting the object as an instance of 'Gen Base'
  T caseGenClass ( GenClass object)
          Returns the result of interpreting the object as an instance of 'Gen Class'
  T caseGenClassifier ( GenClassifier object)
          Returns the result of interpreting the object as an instance of 'Gen Classifier'
  T caseGenDataType ( GenDataType object)
          Returns the result of interpreting the object as an instance of 'Gen Data Type'
  T caseGenEnum ( GenEnum object)
          Returns the result of interpreting the object as an instance of 'Gen Enum'
  T caseGenEnumLiteral ( GenEnumLiteral object)
          Returns the result of interpreting the object as an instance of 'Gen Enum Literal'
  T caseGenFeature ( GenFeature object)
          Returns the result of interpreting the object as an instance of 'Gen Feature'
  T caseGenModel_GenBase (org.eclipse.emf.codegen.ecore.genmodel.GenBase object)
          Returns the result of interpreting the object as an instance of 'Gen Base'
  T caseGenModel_GenClass (org.eclipse.emf.codegen.ecore.genmodel.GenClass object)
          Returns the result of interpreting the object as an instance of 'Gen Class'
  T caseGenModel_GenClassifier (org.eclipse.emf.codegen.ecore.genmodel.GenClassifier object)
          Returns the result of interpreting the object as an instance of 'Gen Classifier'
  T caseGenModel_GenDataType (org.eclipse.emf.codegen.ecore.genmodel.GenDataType object)
          Returns the result of interpreting the object as an instance of 'Gen Data Type'
  T caseGenModel_GenEnum (org.eclipse.emf.codegen.ecore.genmodel.GenEnum object)
          Returns the result of interpreting the object as an instance of 'Gen Enum'
  T caseGenModel_GenEnumLiteral (org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral object)
          Returns the result of interpreting the object as an instance of 'Gen Enum Literal'
  T caseGenModel_GenFeature (org.eclipse.emf.codegen.ecore.genmodel.GenFeature object)
          Returns the result of interpreting the object as an instance of 'Gen Feature'
  T caseGenModel_GenModel (org.eclipse.emf.codegen.ecore.genmodel.GenModel object)
          Returns the result of interpreting the object as an instance of 'Gen Model'
  T caseGenModel_GenOperation (org.eclipse.emf.codegen.ecore.genmodel.GenOperation object)
          Returns the result of interpreting the object as an instance of 'Gen Operation'
  T caseGenModel_GenPackage (org.eclipse.emf.codegen.ecore.genmodel.GenPackage object)
          Returns the result of interpreting the object as an instance of 'Gen Package'
  T caseGenModel_GenParameter (org.eclipse.emf.codegen.ecore.genmodel.GenParameter object)
          Returns the result of interpreting the object as an instance of 'Gen Parameter'
  T caseGenModel_GenTypedElement (org.eclipse.emf.codegen.ecore.genmodel.GenTypedElement object)
          Returns the result of interpreting the object as an instance of 'Gen Typed Element'
  T caseGenModel ( GenModel object)
          Returns the result of interpreting the object as an instance of 'Gen Model'
  T caseGenOperation ( GenOperation object)
          Returns the result of interpreting the object as an instance of 'Gen Operation'
  T caseGenPackage ( GenPackage object)
          Returns the result of interpreting the object as an instance of 'Gen Package'
  T caseGenParameter ( GenParameter object)
          Returns the result of interpreting the object as an instance of 'Gen Parameter'
  T caseGenTypedElement ( GenTypedElement object)
          Returns the result of interpreting the object as an instance of 'Gen Typed Element'
  T defaultCase (org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'
protected   T doSwitch (org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
  T doSwitch (org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
protected   T doSwitch (int classifierID, org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static 
GenModelPackage modelPackage
The cached model package

Constructor Detail

GenModelSwitch

public GenModelSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public 
T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

doSwitch

protected 
T doSwitch(org.eclipse.emf.ecore.EClass theEClass,
                     org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

doSwitch

protected 
T doSwitch(int classifierID,
                     org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

caseGenBase

public 
T caseGenBase(
GenBase object)
Returns the result of interpreting the object as an instance of 'Gen Base'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Base'.
See Also:
doSwitch(EObject)

caseGenClass

public 
T caseGenClass(
GenClass object)
Returns the result of interpreting the object as an instance of 'Gen Class'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Class'.
See Also:
doSwitch(EObject)

caseGenClassifier

public 
T caseGenClassifier(
GenClassifier object)
Returns the result of interpreting the object as an instance of 'Gen Classifier'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Classifier'.
See Also:
doSwitch(EObject)

caseGenDataType

public 
T caseGenDataType(
GenDataType object)
Returns the result of interpreting the object as an instance of 'Gen Data Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Data Type'.
See Also:
doSwitch(EObject)

caseGenEnum

public 
T caseGenEnum(
GenEnum object)
Returns the result of interpreting the object as an instance of 'Gen Enum'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Enum'.
See Also:
doSwitch(EObject)

caseGenEnumLiteral

public 
T caseGenEnumLiteral(
GenEnumLiteral object)
Returns the result of interpreting the object as an instance of 'Gen Enum Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Enum Literal'.
See Also:
doSwitch(EObject)

caseGenFeature

public 
T caseGenFeature(
GenFeature object)
Returns the result of interpreting the object as an instance of 'Gen Feature'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Feature'.
See Also:
doSwitch(EObject)

caseGenModel

public 
T caseGenModel(
GenModel object)
Returns the result of interpreting the object as an instance of 'Gen Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Model'.
See Also:
doSwitch(EObject)

caseGenOperation

public 
T caseGenOperation(
GenOperation object)
Returns the result of interpreting the object as an instance of 'Gen Operation'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Operation'.
See Also:
doSwitch(EObject)

caseGenPackage

public 
T caseGenPackage(
GenPackage object)
Returns the result of interpreting the object as an instance of 'Gen Package'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Package'.
See Also:
doSwitch(EObject)

caseGenParameter

public 
T caseGenParameter(
GenParameter object)
Returns the result of interpreting the object as an instance of 'Gen Parameter'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Parameter'.
See Also:
doSwitch(EObject)

caseGenTypedElement

public 
T caseGenTypedElement(
GenTypedElement object)
Returns the result of interpreting the object as an instance of 'Gen Typed Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Typed Element'.
See Also:
doSwitch(EObject)

caseGenModel_GenBase

public 
T caseGenModel_GenBase(org.eclipse.emf.codegen.ecore.genmodel.GenBase object)
Returns the result of interpreting the object as an instance of 'Gen Base'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Base'.
See Also:
doSwitch(EObject)

caseGenModel_GenClassifier

public 
T caseGenModel_GenClassifier(org.eclipse.emf.codegen.ecore.genmodel.GenClassifier object)
Returns the result of interpreting the object as an instance of 'Gen Classifier'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Classifier'.
See Also:
doSwitch(EObject)

caseGenModel_GenClass

public 
T caseGenModel_GenClass(org.eclipse.emf.codegen.ecore.genmodel.GenClass object)
Returns the result of interpreting the object as an instance of 'Gen Class'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Class'.
See Also:
doSwitch(EObject)

caseGenModel_GenDataType

public 
T caseGenModel_GenDataType(org.eclipse.emf.codegen.ecore.genmodel.GenDataType object)
Returns the result of interpreting the object as an instance of 'Gen Data Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Data Type'.
See Also:
doSwitch(EObject)

caseGenModel_GenEnum

public 
T caseGenModel_GenEnum(org.eclipse.emf.codegen.ecore.genmodel.GenEnum object)
Returns the result of interpreting the object as an instance of 'Gen Enum'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Enum'.
See Also:
doSwitch(EObject)

caseGenModel_GenEnumLiteral

public 
T caseGenModel_GenEnumLiteral(org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral object)
Returns the result of interpreting the object as an instance of 'Gen Enum Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Enum Literal'.
See Also:
doSwitch(EObject)

caseGenModel_GenTypedElement

public 
T caseGenModel_GenTypedElement(org.eclipse.emf.codegen.ecore.genmodel.GenTypedElement object)
Returns the result of interpreting the object as an instance of 'Gen Typed Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Typed Element'.
See Also:
doSwitch(EObject)

caseGenModel_GenFeature

public 
T caseGenModel_GenFeature(org.eclipse.emf.codegen.ecore.genmodel.GenFeature object)
Returns the result of interpreting the object as an instance of 'Gen Feature'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Feature'.
See Also:
doSwitch(EObject)

caseGenModel_GenModel

public 
T caseGenModel_GenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel object)
Returns the result of interpreting the object as an instance of 'Gen Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Model'.
See Also:
doSwitch(EObject)

caseGenModel_GenOperation

public 
T caseGenModel_GenOperation(org.eclipse.emf.codegen.ecore.genmodel.GenOperation object)
Returns the result of interpreting the object as an instance of 'Gen Operation'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Operation'.
See Also:
doSwitch(EObject)

caseGenModel_GenPackage

public 
T caseGenModel_GenPackage(org.eclipse.emf.codegen.ecore.genmodel.GenPackage object)
Returns the result of interpreting the object as an instance of 'Gen Package'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Package'.
See Also:
doSwitch(EObject)

caseGenModel_GenParameter

public 
T caseGenModel_GenParameter(org.eclipse.emf.codegen.ecore.genmodel.GenParameter object)
Returns the result of interpreting the object as an instance of 'Gen Parameter'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Gen Parameter'.
See Also:
doSwitch(EObject)

defaultCase

public 
T defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)

Copyright 2003, 2007 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire