org.mod4j.dsl.datacontract.mm.DataContractDsl.util
Class DataContractDslSwitch<T>

java.lang.Object
  extended by org.mod4j.dsl.datacontract.mm.DataContractDsl.util.DataContractDslSwitch<T>

public class DataContractDslSwitch<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:
DataContractDslPackage

Field Summary
protected static DataContractDslPackage modelPackage
          The cached model package
 
Constructor Summary
DataContractDslSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseBusinessClassAssociationRoleReference(BusinessClassAssociationRoleReference object)
          Returns the result of interpreting the object as an instance of 'Business Class Association Role Reference'.
 T caseBusinessClassDto(BusinessClassDto object)
          Returns the result of interpreting the object as an instance of 'Business Class Dto'.
 T caseBusinessClassPropertyReference(BusinessClassPropertyReference object)
          Returns the result of interpreting the object as an instance of 'Business Class Property Reference'.
 T caseCustomDto(CustomDto object)
          Returns the result of interpreting the object as an instance of 'Custom Dto'.
 T caseDataContractModel(DataContractModel object)
          Returns the result of interpreting the object as an instance of 'Data Contract Model'.
 T caseDto(Dto object)
          Returns the result of interpreting the object as an instance of 'Dto'.
 T caseDtoAssociationRoleProperty(DtoAssociationRoleProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Association Role Property'.
 T caseDtoBooleanProperty(DtoBooleanProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Boolean Property'.
 T caseDtoDataProperty(DtoDataProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Data Property'.
 T caseDtoDateTimeProperty(DtoDateTimeProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Date Time Property'.
 T caseDtoDecimalProperty(DtoDecimalProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Decimal Property'.
 T caseDtoEnumerationProperty(DtoEnumerationProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Enumeration Property'.
 T caseDtoIntegerProperty(DtoIntegerProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Integer Property'.
 T caseDtoProperty(DtoProperty object)
          Returns the result of interpreting the object as an instance of 'Dto Property'.
 T caseDtoPropertyReference(DtoPropertyReference object)
          Returns the result of interpreting the object as an instance of 'Dto Property Reference'.
 T caseDtoStringProperty(DtoStringProperty object)
          Returns the result of interpreting the object as an instance of 'Dto String Property'.
 T caseEnumerationDto(EnumerationDto object)
          Returns the result of interpreting the object as an instance of 'Enumeration Dto'.
 T caseEnumerationDtoLiteral(EnumerationDtoLiteral object)
          Returns the result of interpreting the object as an instance of 'Enumeration Dto Literal'.
 T caseExternalReference(ExternalReference object)
          Returns the result of interpreting the object as an instance of 'External Reference'.
 T caseListDto(ListDto object)
          Returns the result of interpreting the object as an instance of 'List Dto'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model 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 DataContractDslPackage modelPackage
The cached model package

Constructor Detail

DataContractDslSwitch

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

caseDataContractModel

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

caseDto

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

caseBusinessClassDto

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

caseListDto

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

caseDtoProperty

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

caseDtoPropertyReference

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

caseDtoDataProperty

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

caseDtoStringProperty

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

caseDtoBooleanProperty

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

caseEnumerationDto

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

caseEnumerationDtoLiteral

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

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)

caseCustomDto

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

caseDtoIntegerProperty

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

caseDtoDecimalProperty

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

caseDtoEnumerationProperty

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

caseDtoDateTimeProperty

public T caseDtoDateTimeProperty(DtoDateTimeProperty object)
Returns the result of interpreting the object as an instance of 'Dto Date Time 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 interpreting the object as an instance of 'Dto Date Time Property'.
See Also:
doSwitch(EObject)

caseBusinessClassPropertyReference

public T caseBusinessClassPropertyReference(BusinessClassPropertyReference object)
Returns the result of interpreting the object as an instance of 'Business Class Property 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 interpreting the object as an instance of 'Business Class Property Reference'.
See Also:
doSwitch(EObject)

caseBusinessClassAssociationRoleReference

public T caseBusinessClassAssociationRoleReference(BusinessClassAssociationRoleReference object)
Returns the result of interpreting the object as an instance of 'Business Class Association Role 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 interpreting the object as an instance of 'Business Class Association Role Reference'.
See Also:
doSwitch(EObject)

caseDtoAssociationRoleProperty

public T caseDtoAssociationRoleProperty(DtoAssociationRoleProperty object)
Returns the result of interpreting the object as an instance of 'Dto Association Role 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 interpreting the object as an instance of 'Dto Association Role Property'.
See Also:
doSwitch(EObject)

caseExternalReference

public T caseExternalReference(ExternalReference object)
Returns the result of interpreting the object as an instance of 'External 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 interpreting the object as an instance of 'External Reference'.
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 © 2009 Mod4j. All Rights Reserved.