jBPM :: BPMN2 EMF Extension Model 6.2.0-SNAPSHOT

bpsim.util
Class BpsimSwitch<T>

java.lang.Object
  extended by bpsim.util.BpsimSwitch<T>

public class BpsimSwitch<T>
extends 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:
BpsimPackage

Field Summary
protected static BpsimPackage modelPackage
          The cached model package
 
Constructor Summary
BpsimSwitch()
          Creates an instance of the switch
 
Method Summary
 T caseBetaDistributionType(BetaDistributionType object)
          Returns the result of interpreting the object as an instance of 'Beta Distribution Type'
 T caseBinomialDistributionType(BinomialDistributionType object)
          Returns the result of interpreting the object as an instance of 'Binomial Distribution Type'
 T caseBooleanParameterType(BooleanParameterType object)
          Returns the result of interpreting the object as an instance of 'Boolean Parameter Type'
 T caseBPSimDataType(BPSimDataType object)
          Returns the result of interpreting the object as an instance of 'BP Sim Data Type'
 T caseCalendar(Calendar object)
          Returns the result of interpreting the object as an instance of 'Calendar'
 T caseConstantParameter(ConstantParameter object)
          Returns the result of interpreting the object as an instance of 'Constant Parameter'
 T caseControlParameters(ControlParameters object)
          Returns the result of interpreting the object as an instance of 'Control Parameters'
 T caseCostParameters(CostParameters object)
          Returns the result of interpreting the object as an instance of 'Cost Parameters'
 T caseDateTimeParameterType(DateTimeParameterType object)
          Returns the result of interpreting the object as an instance of 'Date Time Parameter Type'
 T caseDistributionParameter(DistributionParameter object)
          Returns the result of interpreting the object as an instance of 'Distribution Parameter'
 T caseDocumentRoot(DocumentRoot object)
          Returns the result of interpreting the object as an instance of 'Document Root'
 T caseDurationParameterType(DurationParameterType object)
          Returns the result of interpreting the object as an instance of 'Duration Parameter Type'
 T caseElementParameters(ElementParameters object)
          Returns the result of interpreting the object as an instance of 'Element Parameters'
 T caseElementParametersType(ElementParametersType object)
          Returns the result of interpreting the object as an instance of 'Element Parameters Type'
 T caseEnumParameterType(EnumParameterType object)
          Returns the result of interpreting the object as an instance of 'Enum Parameter Type'
 T caseErlangDistributionType(ErlangDistributionType object)
          Returns the result of interpreting the object as an instance of 'Erlang Distribution Type'
 T caseExpressionParameterType(ExpressionParameterType object)
          Returns the result of interpreting the object as an instance of 'Expression Parameter Type'
 T caseFloatingParameterType(FloatingParameterType object)
          Returns the result of interpreting the object as an instance of 'Floating Parameter Type'
 T caseGammaDistributionType(GammaDistributionType object)
          Returns the result of interpreting the object as an instance of 'Gamma Distribution Type'
 T caseLogNormalDistributionType(LogNormalDistributionType object)
          Returns the result of interpreting the object as an instance of 'Log Normal Distribution Type'
 T caseNegativeExponentialDistributionType(NegativeExponentialDistributionType object)
          Returns the result of interpreting the object as an instance of 'Negative Exponential Distribution Type'
 T caseNormalDistributionType(NormalDistributionType object)
          Returns the result of interpreting the object as an instance of 'Normal Distribution Type'
 T caseNumericParameterType(NumericParameterType object)
          Returns the result of interpreting the object as an instance of 'Numeric Parameter Type'
 T caseParameter(Parameter object)
          Returns the result of interpreting the object as an instance of 'Parameter'
 T caseParameterValue(ParameterValue object)
          Returns the result of interpreting the object as an instance of 'Parameter Value'
 T casePoissonDistributionType(PoissonDistributionType object)
          Returns the result of interpreting the object as an instance of 'Poisson Distribution Type'
 T casePriorityParameters(PriorityParameters object)
          Returns the result of interpreting the object as an instance of 'Priority Parameters'
 T casePropertyParameters(PropertyParameters object)
          Returns the result of interpreting the object as an instance of 'Property Parameters'
 T casePropertyType(PropertyType object)
          Returns the result of interpreting the object as an instance of 'Property Type'
 T caseResourceParameters(ResourceParameters object)
          Returns the result of interpreting the object as an instance of 'Resource Parameters'
 T caseScenario(Scenario object)
          Returns the result of interpreting the object as an instance of 'Scenario'
 T caseScenarioParameters(ScenarioParameters object)
          Returns the result of interpreting the object as an instance of 'Scenario Parameters'
 T caseScenarioParametersType(ScenarioParametersType object)
          Returns the result of interpreting the object as an instance of 'Scenario Parameters Type'
 T caseStringParameterType(StringParameterType object)
          Returns the result of interpreting the object as an instance of 'String Parameter Type'
 T caseTimeParameters(TimeParameters object)
          Returns the result of interpreting the object as an instance of 'Time Parameters'
 T caseTriangularDistributionType(TriangularDistributionType object)
          Returns the result of interpreting the object as an instance of 'Triangular Distribution Type'
 T caseTruncatedNormalDistributionType(TruncatedNormalDistributionType object)
          Returns the result of interpreting the object as an instance of 'Truncated Normal Distribution Type'
 T caseUniformDistributionType(UniformDistributionType object)
          Returns the result of interpreting the object as an instance of 'Uniform Distribution Type'
 T caseUserDistributionDataPointType(UserDistributionDataPointType object)
          Returns the result of interpreting the object as an instance of 'User Distribution Data Point Type'
 T caseUserDistributionType(UserDistributionType object)
          Returns the result of interpreting the object as an instance of 'User Distribution Type'
 T caseVendorExtension(VendorExtension object)
          Returns the result of interpreting the object as an instance of 'Vendor Extension'
 T caseWeibullDistributionType(WeibullDistributionType object)
          Returns the result of interpreting the object as an instance of 'Weibull Distribution Type'
 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 BpsimPackage modelPackage
The cached model package

Constructor Detail

BpsimSwitch

public BpsimSwitch()
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.

caseBetaDistributionType

public T caseBetaDistributionType(BetaDistributionType object)
Returns the result of interpreting the object as an instance of 'Beta Distribution 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 'Beta Distribution Type'.
See Also:
doSwitch(EObject)

caseBinomialDistributionType

public T caseBinomialDistributionType(BinomialDistributionType object)
Returns the result of interpreting the object as an instance of 'Binomial Distribution 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 'Binomial Distribution Type'.
See Also:
doSwitch(EObject)

caseBooleanParameterType

public T caseBooleanParameterType(BooleanParameterType object)
Returns the result of interpreting the object as an instance of 'Boolean Parameter 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 'Boolean Parameter Type'.
See Also:
doSwitch(EObject)

caseBPSimDataType

public T caseBPSimDataType(BPSimDataType object)
Returns the result of interpreting the object as an instance of 'BP Sim 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 'BP Sim Data Type'.
See Also:
doSwitch(EObject)

caseCalendar

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

caseConstantParameter

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

caseControlParameters

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

caseCostParameters

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

caseDateTimeParameterType

public T caseDateTimeParameterType(DateTimeParameterType object)
Returns the result of interpreting the object as an instance of 'Date Time Parameter 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 'Date Time Parameter Type'.
See Also:
doSwitch(EObject)

caseDistributionParameter

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

caseDocumentRoot

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

caseDurationParameterType

public T caseDurationParameterType(DurationParameterType object)
Returns the result of interpreting the object as an instance of 'Duration Parameter 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 'Duration Parameter Type'.
See Also:
doSwitch(EObject)

caseElementParameters

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

caseElementParametersType

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

caseEnumParameterType

public T caseEnumParameterType(EnumParameterType object)
Returns the result of interpreting the object as an instance of 'Enum Parameter 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 'Enum Parameter Type'.
See Also:
doSwitch(EObject)

caseErlangDistributionType

public T caseErlangDistributionType(ErlangDistributionType object)
Returns the result of interpreting the object as an instance of 'Erlang Distribution 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 'Erlang Distribution Type'.
See Also:
doSwitch(EObject)

caseExpressionParameterType

public T caseExpressionParameterType(ExpressionParameterType object)
Returns the result of interpreting the object as an instance of 'Expression Parameter 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 'Expression Parameter Type'.
See Also:
doSwitch(EObject)

caseFloatingParameterType

public T caseFloatingParameterType(FloatingParameterType object)
Returns the result of interpreting the object as an instance of 'Floating Parameter 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 'Floating Parameter Type'.
See Also:
doSwitch(EObject)

caseGammaDistributionType

public T caseGammaDistributionType(GammaDistributionType object)
Returns the result of interpreting the object as an instance of 'Gamma Distribution 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 'Gamma Distribution Type'.
See Also:
doSwitch(EObject)

caseLogNormalDistributionType

public T caseLogNormalDistributionType(LogNormalDistributionType object)
Returns the result of interpreting the object as an instance of 'Log Normal Distribution 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 'Log Normal Distribution Type'.
See Also:
doSwitch(EObject)

caseNegativeExponentialDistributionType

public T caseNegativeExponentialDistributionType(NegativeExponentialDistributionType object)
Returns the result of interpreting the object as an instance of 'Negative Exponential Distribution 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 'Negative Exponential Distribution Type'.
See Also:
doSwitch(EObject)

caseNormalDistributionType

public T caseNormalDistributionType(NormalDistributionType object)
Returns the result of interpreting the object as an instance of 'Normal Distribution 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 'Normal Distribution Type'.
See Also:
doSwitch(EObject)

caseNumericParameterType

public T caseNumericParameterType(NumericParameterType object)
Returns the result of interpreting the object as an instance of 'Numeric Parameter 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 'Numeric Parameter Type'.
See Also:
doSwitch(EObject)

caseParameter

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

caseParameterValue

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

casePoissonDistributionType

public T casePoissonDistributionType(PoissonDistributionType object)
Returns the result of interpreting the object as an instance of 'Poisson Distribution 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 'Poisson Distribution Type'.
See Also:
doSwitch(EObject)

casePriorityParameters

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

casePropertyParameters

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

casePropertyType

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

caseResourceParameters

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

caseScenario

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

caseScenarioParameters

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

caseScenarioParametersType

public T caseScenarioParametersType(ScenarioParametersType object)
Returns the result of interpreting the object as an instance of 'Scenario Parameters 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 'Scenario Parameters Type'.
See Also:
doSwitch(EObject)

caseStringParameterType

public T caseStringParameterType(StringParameterType object)
Returns the result of interpreting the object as an instance of 'String Parameter 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 'String Parameter Type'.
See Also:
doSwitch(EObject)

caseTimeParameters

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

caseTriangularDistributionType

public T caseTriangularDistributionType(TriangularDistributionType object)
Returns the result of interpreting the object as an instance of 'Triangular Distribution 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 'Triangular Distribution Type'.
See Also:
doSwitch(EObject)

caseTruncatedNormalDistributionType

public T caseTruncatedNormalDistributionType(TruncatedNormalDistributionType object)
Returns the result of interpreting the object as an instance of 'Truncated Normal Distribution 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 'Truncated Normal Distribution Type'.
See Also:
doSwitch(EObject)

caseUniformDistributionType

public T caseUniformDistributionType(UniformDistributionType object)
Returns the result of interpreting the object as an instance of 'Uniform Distribution 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 'Uniform Distribution Type'.
See Also:
doSwitch(EObject)

caseUserDistributionDataPointType

public T caseUserDistributionDataPointType(UserDistributionDataPointType object)
Returns the result of interpreting the object as an instance of 'User Distribution Data Point 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 'User Distribution Data Point Type'.
See Also:
doSwitch(EObject)

caseUserDistributionType

public T caseUserDistributionType(UserDistributionType object)
Returns the result of interpreting the object as an instance of 'User Distribution 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 'User Distribution Type'.
See Also:
doSwitch(EObject)

caseVendorExtension

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

caseWeibullDistributionType

public T caseWeibullDistributionType(WeibullDistributionType object)
Returns the result of interpreting the object as an instance of 'Weibull Distribution 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 'Weibull Distribution Type'.
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)

jBPM :: BPMN2 EMF Extension Model 6.2.0-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.