org.eclipse.gmt.modisco.omg.kdm.build.util
Class BuildSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.kdm.build.util.BuildSwitch<T>

public class BuildSwitch<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:
BuildPackage
Generated:

Constructor Summary
BuildSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractBuildElement(AbstractBuildElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Build Element'.
 T caseAbstractBuildRelationship(AbstractBuildRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Build Relationship'.
 T caseBuildComponent(BuildComponent object)
          Returns the result of interpreting the object as an instance of 'Component'.
 T caseBuildDescription(BuildDescription object)
          Returns the result of interpreting the object as an instance of 'Description'.
 T caseBuildElement(BuildElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseBuildModel(BuildModel object)
          Returns the result of interpreting the object as an instance of 'Model'.
 T caseBuildProduct(BuildProduct object)
          Returns the result of interpreting the object as an instance of 'Product'.
 T caseBuildRelationship(BuildRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T caseBuildResource(BuildResource object)
          Returns the result of interpreting the object as an instance of 'Resource'.
 T caseBuildStep(BuildStep object)
          Returns the result of interpreting the object as an instance of 'Step'.
 T caseConsumes(Consumes object)
          Returns the result of interpreting the object as an instance of 'Consumes'.
 T caseDescribedBy(DescribedBy object)
          Returns the result of interpreting the object as an instance of 'Described By'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseKDMEntity(KDMEntity object)
          Returns the result of interpreting the object as an instance of 'KDM Entity'.
 T caseKDMFramework(KDMFramework object)
          Returns the result of interpreting the object as an instance of 'KDM Framework'.
 T caseKDMModel(KDMModel object)
          Returns the result of interpreting the object as an instance of 'KDM Model'.
 T caseKDMRelationship(KDMRelationship object)
          Returns the result of interpreting the object as an instance of 'KDM Relationship'.
 T caseLibrary(Library object)
          Returns the result of interpreting the object as an instance of 'Library'.
 T caseLinksTo(LinksTo object)
          Returns the result of interpreting the object as an instance of 'Links To'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseProduces(Produces object)
          Returns the result of interpreting the object as an instance of 'Produces'.
 T caseSuppliedBy(SuppliedBy object)
          Returns the result of interpreting the object as an instance of 'Supplied By'.
 T caseSupplier(Supplier object)
          Returns the result of interpreting the object as an instance of 'Supplier'.
 T caseSupportedBy(SupportedBy object)
          Returns the result of interpreting the object as an instance of 'Supported By'.
 T caseSymbolicLink(SymbolicLink object)
          Returns the result of interpreting the object as an instance of 'Symbolic Link'.
 T caseTool(Tool object)
          Returns the result of interpreting the object as an instance of 'Tool'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildSwitch

public BuildSwitch()
Creates an instance of the switch.

Generated:
Method Detail

doSwitch

public T doSwitch(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.
Generated:

caseAbstractBuildElement

public T caseAbstractBuildElement(AbstractBuildElement object)
Returns the result of interpreting the object as an instance of 'Abstract Build 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 'Abstract Build Element'.
See Also:
doSwitch(EObject)
Generated:

caseBuildResource

public T caseBuildResource(BuildResource object)
Returns the result of interpreting the object as an instance of 'Resource'. 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 'Resource'.
See Also:
doSwitch(EObject)
Generated:

caseBuildDescription

public T caseBuildDescription(BuildDescription object)
Returns the result of interpreting the object as an instance of 'Description'. 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 'Description'.
See Also:
doSwitch(EObject)
Generated:

caseSymbolicLink

public T caseSymbolicLink(SymbolicLink object)
Returns the result of interpreting the object as an instance of 'Symbolic Link'. 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 'Symbolic Link'.
See Also:
doSwitch(EObject)
Generated:

caseAbstractBuildRelationship

public T caseAbstractBuildRelationship(AbstractBuildRelationship object)
Returns the result of interpreting the object as an instance of 'Abstract Build Relationship'. 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 'Abstract Build Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseLinksTo

public T caseLinksTo(LinksTo object)
Returns the result of interpreting the object as an instance of 'Links To'. 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 'Links To'.
See Also:
doSwitch(EObject)
Generated:

caseConsumes

public T caseConsumes(Consumes object)
Returns the result of interpreting the object as an instance of 'Consumes'. 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 'Consumes'.
See Also:
doSwitch(EObject)
Generated:

caseBuildModel

public T caseBuildModel(BuildModel object)
Returns the result of interpreting the object as an instance of '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 'Model'.
See Also:
doSwitch(EObject)
Generated:

caseBuildComponent

public T caseBuildComponent(BuildComponent object)
Returns the result of interpreting the object as an instance of 'Component'. 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 'Component'.
See Also:
doSwitch(EObject)
Generated:

caseSupplier

public T caseSupplier(Supplier object)
Returns the result of interpreting the object as an instance of 'Supplier'. 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 'Supplier'.
See Also:
doSwitch(EObject)
Generated:

caseTool

public T caseTool(Tool object)
Returns the result of interpreting the object as an instance of 'Tool'. 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 'Tool'.
See Also:
doSwitch(EObject)
Generated:

caseBuildElement

public T caseBuildElement(BuildElement object)
Returns the result of interpreting the object as an instance of '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 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseBuildRelationship

public T caseBuildRelationship(BuildRelationship object)
Returns the result of interpreting the object as an instance of 'Relationship'. 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 'Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseSuppliedBy

public T caseSuppliedBy(SuppliedBy object)
Returns the result of interpreting the object as an instance of 'Supplied By'. 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 'Supplied By'.
See Also:
doSwitch(EObject)
Generated:

caseLibrary

public T caseLibrary(Library object)
Returns the result of interpreting the object as an instance of 'Library'. 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 'Library'.
See Also:
doSwitch(EObject)
Generated:

caseBuildStep

public T caseBuildStep(BuildStep object)
Returns the result of interpreting the object as an instance of 'Step'. 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 'Step'.
See Also:
doSwitch(EObject)
Generated:

caseProduces

public T caseProduces(Produces object)
Returns the result of interpreting the object as an instance of 'Produces'. 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 'Produces'.
See Also:
doSwitch(EObject)
Generated:

caseSupportedBy

public T caseSupportedBy(SupportedBy object)
Returns the result of interpreting the object as an instance of 'Supported By'. 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 'Supported By'.
See Also:
doSwitch(EObject)
Generated:

caseBuildProduct

public T caseBuildProduct(BuildProduct object)
Returns the result of interpreting the object as an instance of 'Product'. 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 'Product'.
See Also:
doSwitch(EObject)
Generated:

caseDescribedBy

public T caseDescribedBy(DescribedBy object)
Returns the result of interpreting the object as an instance of 'Described By'. 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 'Described By'.
See Also:
doSwitch(EObject)
Generated:

caseElement

public T caseElement(Element object)
Returns the result of interpreting the object as an instance of '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 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseModelElement

public T caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model 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 'Model Element'.
See Also:
doSwitch(EObject)
Generated:

caseKDMEntity

public T caseKDMEntity(KDMEntity object)
Returns the result of interpreting the object as an instance of 'KDM Entity'. 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 'KDM Entity'.
See Also:
doSwitch(EObject)
Generated:

caseKDMRelationship

public T caseKDMRelationship(KDMRelationship object)
Returns the result of interpreting the object as an instance of 'KDM Relationship'. 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 'KDM Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseKDMFramework

public T caseKDMFramework(KDMFramework object)
Returns the result of interpreting the object as an instance of 'KDM Framework'. 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 'KDM Framework'.
See Also:
doSwitch(EObject)
Generated:

caseKDMModel

public T caseKDMModel(KDMModel object)
Returns the result of interpreting the object as an instance of 'KDM 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 'KDM Model'.
See Also:
doSwitch(EObject)
Generated:

defaultCase

public T defaultCase(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)
Generated: