org.eclipse.stp.core.sca.util
Class SCASwitch

java.lang.Object
  extended by org.eclipse.stp.core.sca.util.SCASwitch

public class SCASwitch
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:
SCAPackage

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
SCASwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseAbstractImplementation(AbstractImplementation object)
          Returns the result of interpretting the object as an instance of 'Abstract Implementation'.
 java.lang.Object caseBinding(Binding object)
          Returns the result of interpretting the object as an instance of 'Binding'.
 java.lang.Object caseComponent(Component object)
          Returns the result of interpretting the object as an instance of 'Component'.
 java.lang.Object caseComponentType(ComponentType object)
          Returns the result of interpretting the object as an instance of 'Component Type'.
 java.lang.Object caseComposite(Composite object)
          Returns the result of interpretting the object as an instance of 'Composite'.
 java.lang.Object caseEntryPoint(EntryPoint object)
          Returns the result of interpretting the object as an instance of 'Entry Point'.
 java.lang.Object caseExternalService(ExternalService object)
          Returns the result of interpretting the object as an instance of 'External Service'.
 java.lang.Object caseImplementation(Implementation object)
          Returns the result of interpretting the object as an instance of 'Implementation'.
 java.lang.Object caseImplementationComponent(ImplementationComponent object)
          Returns the result of interpretting the object as an instance of 'Implementation Component'.
 java.lang.Object caseInterface(Interface object)
          Returns the result of interpretting the object as an instance of 'Interface'.
 java.lang.Object caseJavaImplementation(JavaImplementation object)
          Returns the result of interpretting the object as an instance of 'Java Implementation'.
 java.lang.Object caseJavaInterface(JavaInterface object)
          Returns the result of interpretting the object as an instance of 'Java Interface'.
 java.lang.Object caseModule(Module object)
          Returns the result of interpretting the object as an instance of 'Module'.
 java.lang.Object caseModuleComponent(ModuleComponent object)
          Returns the result of interpretting the object as an instance of 'Module Component'.
 java.lang.Object caseModuleFragment(ModuleFragment object)
          Returns the result of interpretting the object as an instance of 'Module Fragment'.
 java.lang.Object caseModuleReference(ModuleReference object)
          Returns the result of interpretting the object as an instance of 'Module Reference'.
 java.lang.Object caseModuleService(ModuleService object)
          Returns the result of interpretting the object as an instance of 'Module Service'.
 java.lang.Object caseModuleWire(ModuleWire object)
          Returns the result of interpretting the object as an instance of 'Module Wire'.
 java.lang.Object caseProperty(Property object)
          Returns the result of interpretting the object as an instance of 'Property'.
 java.lang.Object casePropertyValue(PropertyValue object)
          Returns the result of interpretting the object as an instance of 'Property Value'.
 java.lang.Object casePropertyValuesSet(PropertyValuesSet object)
          Returns the result of interpretting the object as an instance of 'Property Values Set'.
 java.lang.Object caseReference(Reference object)
          Returns the result of interpretting the object as an instance of 'Reference'.
 java.lang.Object caseReferenceValue(ReferenceValue object)
          Returns the result of interpretting the object as an instance of 'Reference Value'.
 java.lang.Object caseReferenceValuesSet(ReferenceValuesSet object)
          Returns the result of interpretting the object as an instance of 'Reference Values Set'.
 java.lang.Object caseSCABinding(SCABinding object)
          Returns the result of interpretting the object as an instance of 'Binding'.
 java.lang.Object caseSCACoreRoot(SCACoreRoot object)
          Returns the result of interpretting the object as an instance of 'Core Root'.
 java.lang.Object caseService(Service object)
          Returns the result of interpretting the object as an instance of 'Service'.
 java.lang.Object caseSLSBBinding(SLSBBinding object)
          Returns the result of interpretting the object as an instance of 'SLSB Binding'.
 java.lang.Object caseSubsystem(Subsystem object)
          Returns the result of interpretting the object as an instance of 'Subsystem'.
 java.lang.Object caseSystemWire(SystemWire object)
          Returns the result of interpretting the object as an instance of 'System Wire'.
 java.lang.Object caseUnknownImplementation(UnknownImplementation object)
          Returns the result of interpretting the object as an instance of 'Unknown Implementation'.
 java.lang.Object caseWebServiceBinding(WebServiceBinding object)
          Returns the result of interpretting the object as an instance of 'Web Service Binding'.
 java.lang.Object caseWSDLPortType(WSDLPortType object)
          Returns the result of interpretting the object as an instance of 'WSDL Port Type'.
 java.lang.Object defaultCase(EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 java.lang.Object 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
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Constructor Detail

SCASwitch

public SCASwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object 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.

caseAbstractImplementation

public java.lang.Object caseAbstractImplementation(AbstractImplementation object)
Returns the result of interpretting the object as an instance of 'Abstract Implementation'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Abstract Implementation'.
See Also:
doSwitch(EObject)

caseBinding

public java.lang.Object caseBinding(Binding object)
Returns the result of interpretting the object as an instance of 'Binding'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseComponent

public java.lang.Object caseComponent(Component object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Component'.
See Also:
doSwitch(EObject)

caseComponentType

public java.lang.Object caseComponentType(ComponentType object)
Returns the result of interpretting the object as an instance of 'Component 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 interpretting the object as an instance of 'Component Type'.
See Also:
doSwitch(EObject)

caseComposite

public java.lang.Object caseComposite(Composite object)
Returns the result of interpretting the object as an instance of 'Composite'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseEntryPoint

public java.lang.Object caseEntryPoint(EntryPoint object)
Returns the result of interpretting the object as an instance of 'Entry Point'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Entry Point'.
See Also:
doSwitch(EObject)

caseExternalService

public java.lang.Object caseExternalService(ExternalService object)
Returns the result of interpretting the object as an instance of 'External Service'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'External Service'.
See Also:
doSwitch(EObject)

caseImplementation

public java.lang.Object caseImplementation(Implementation object)
Returns the result of interpretting the object as an instance of 'Implementation'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseImplementationComponent

public java.lang.Object caseImplementationComponent(ImplementationComponent object)
Returns the result of interpretting the object as an instance of 'Implementation 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 interpretting the object as an instance of 'Implementation Component'.
See Also:
doSwitch(EObject)

caseInterface

public java.lang.Object caseInterface(Interface object)
Returns the result of interpretting the object as an instance of 'Interface'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseJavaImplementation

public java.lang.Object caseJavaImplementation(JavaImplementation object)
Returns the result of interpretting the object as an instance of 'Java Implementation'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Java Implementation'.
See Also:
doSwitch(EObject)

caseJavaInterface

public java.lang.Object caseJavaInterface(JavaInterface object)
Returns the result of interpretting the object as an instance of 'Java Interface'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Java Interface'.
See Also:
doSwitch(EObject)

caseModule

public java.lang.Object caseModule(Module object)
Returns the result of interpretting the object as an instance of 'Module'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseModuleComponent

public java.lang.Object caseModuleComponent(ModuleComponent object)
Returns the result of interpretting the object as an instance of 'Module 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 interpretting the object as an instance of 'Module Component'.
See Also:
doSwitch(EObject)

caseModuleFragment

public java.lang.Object caseModuleFragment(ModuleFragment object)
Returns the result of interpretting the object as an instance of 'Module Fragment'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Module Fragment'.
See Also:
doSwitch(EObject)

caseModuleReference

public java.lang.Object caseModuleReference(ModuleReference object)
Returns the result of interpretting the object as an instance of 'Module Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Module Reference'.
See Also:
doSwitch(EObject)

caseModuleService

public java.lang.Object caseModuleService(ModuleService object)
Returns the result of interpretting the object as an instance of 'Module Service'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Module Service'.
See Also:
doSwitch(EObject)

caseModuleWire

public java.lang.Object caseModuleWire(ModuleWire object)
Returns the result of interpretting the object as an instance of 'Module Wire'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Module Wire'.
See Also:
doSwitch(EObject)

caseProperty

public java.lang.Object caseProperty(Property object)
Returns the result of interpretting the object as an instance of 'Property'. This implementation returns null; returning a non-null result will terminate the switch.

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

casePropertyValue

public java.lang.Object casePropertyValue(PropertyValue object)
Returns the result of interpretting the object as an instance of 'Property Value'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Property Value'.
See Also:
doSwitch(EObject)

casePropertyValuesSet

public java.lang.Object casePropertyValuesSet(PropertyValuesSet object)
Returns the result of interpretting the object as an instance of 'Property Values Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Property Values Set'.
See Also:
doSwitch(EObject)

caseReference

public java.lang.Object caseReference(Reference object)
Returns the result of interpretting the object as an instance of 'Reference'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseReferenceValue

public java.lang.Object caseReferenceValue(ReferenceValue object)
Returns the result of interpretting the object as an instance of 'Reference Value'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Reference Value'.
See Also:
doSwitch(EObject)

caseReferenceValuesSet

public java.lang.Object caseReferenceValuesSet(ReferenceValuesSet object)
Returns the result of interpretting the object as an instance of 'Reference Values Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Reference Values Set'.
See Also:
doSwitch(EObject)

caseSCABinding

public java.lang.Object caseSCABinding(SCABinding object)
Returns the result of interpretting the object as an instance of 'Binding'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseSCACoreRoot

public java.lang.Object caseSCACoreRoot(SCACoreRoot object)
Returns the result of interpretting the object as an instance of 'Core Root'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Core Root'.
See Also:
doSwitch(EObject)

caseService

public java.lang.Object caseService(Service object)
Returns the result of interpretting the object as an instance of 'Service'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseSLSBBinding

public java.lang.Object caseSLSBBinding(SLSBBinding object)
Returns the result of interpretting the object as an instance of 'SLSB Binding'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SLSB Binding'.
See Also:
doSwitch(EObject)

caseSubsystem

public java.lang.Object caseSubsystem(Subsystem object)
Returns the result of interpretting the object as an instance of 'Subsystem'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseSystemWire

public java.lang.Object caseSystemWire(SystemWire object)
Returns the result of interpretting the object as an instance of 'System Wire'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'System Wire'.
See Also:
doSwitch(EObject)

caseUnknownImplementation

public java.lang.Object caseUnknownImplementation(UnknownImplementation object)
Returns the result of interpretting the object as an instance of 'Unknown Implementation'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Unknown Implementation'.
See Also:
doSwitch(EObject)

caseWebServiceBinding

public java.lang.Object caseWebServiceBinding(WebServiceBinding object)
Returns the result of interpretting the object as an instance of 'Web Service Binding'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Web Service Binding'.
See Also:
doSwitch(EObject)

caseWSDLPortType

public java.lang.Object caseWSDLPortType(WSDLPortType object)
Returns the result of interpretting the object as an instance of 'WSDL Port 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 interpretting the object as an instance of 'WSDL Port Type'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object defaultCase(EObject object)
Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
See Also:
#doSwitch(org.eclipse.emf.ecore.EObject)