BusinessDomainDsl.util
Class BusinessDomainDslSwitch<T>

java.lang.Object
  extended by BusinessDomainDsl.util.BusinessDomainDslSwitch<T>

public class BusinessDomainDslSwitch<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:
BusinessDomainDslPackage

Field Summary
protected static BusinessDomainDslPackage modelPackage
          The cached model package
 
Constructor Summary
BusinessDomainDslSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractBusinessClass(AbstractBusinessClass object)
          Returns the result of interpreting the object as an instance of 'Abstract Business Class'.
 T caseAbstractBusinessRule(AbstractBusinessRule object)
          Returns the result of interpreting the object as an instance of 'Abstract Business Rule'.
 T caseAbstractType(AbstractType object)
          Returns the result of interpreting the object as an instance of 'Abstract Type'.
 T caseAssociation(Association object)
          Returns the result of interpreting the object as an instance of 'Association'.
 T caseBlobBinaryProperty(BlobBinaryProperty object)
          Returns the result of interpreting the object as an instance of 'Blob Binary Property'.
 T caseBlobTextProperty(BlobTextProperty object)
          Returns the result of interpreting the object as an instance of 'Blob Text Property'.
 T caseBoolProperty(BoolProperty object)
          Returns the result of interpreting the object as an instance of 'Bool Property'.
 T caseBusinessClass(BusinessClass object)
          Returns the result of interpreting the object as an instance of 'Business Class'.
 T caseBusinessClassReference(BusinessClassReference object)
          Returns the result of interpreting the object as an instance of 'Business Class Reference'.
 T caseBusinessDomainModel(BusinessDomainModel object)
          Returns the result of interpreting the object as an instance of 'Business Domain Model'.
 T caseBusinessRule(BusinessRule object)
          Returns the result of interpreting the object as an instance of 'Business Rule'.
 T caseDateTimeProperty(DateTimeProperty object)
          Returns the result of interpreting the object as an instance of 'Date Time Property'.
 T caseDecimalProperty(DecimalProperty object)
          Returns the result of interpreting the object as an instance of 'Decimal Property'.
 T caseEnumeration(Enumeration object)
          Returns the result of interpreting the object as an instance of 'Enumeration'.
 T caseEnumerationLiteral(EnumerationLiteral object)
          Returns the result of interpreting the object as an instance of 'Enumeration Literal'.
 T caseEnumerationProperty(EnumerationProperty object)
          Returns the result of interpreting the object as an instance of 'Enumeration Property'.
 T caseIntegerProperty(IntegerProperty object)
          Returns the result of interpreting the object as an instance of 'Integer Property'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseProperty(Property object)
          Returns the result of interpreting the object as an instance of 'Property'.
 T caseStringProperty(StringProperty object)
          Returns the result of interpreting the object as an instance of 'String Property'.
 T caseUniqueRule(UniqueRule object)
          Returns the result of interpreting the object as an instance of 'Unique Rule'.
 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 BusinessDomainDslPackage modelPackage
The cached model package

Constructor Detail

BusinessDomainDslSwitch

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

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)

caseBusinessDomainModel

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

caseBusinessClass

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

caseProperty

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

caseEnumeration

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

caseEnumerationLiteral

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

caseAbstractBusinessRule

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

caseBoolProperty

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

caseDateTimeProperty

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

caseEnumerationProperty

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

caseIntegerProperty

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

caseStringProperty

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

caseAbstractType

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

caseBlobBinaryProperty

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

caseBlobTextProperty

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

caseAssociation

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

caseDecimalProperty

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

caseAbstractBusinessClass

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

caseBusinessClassReference

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

caseUniqueRule

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

caseBusinessRule

public T caseBusinessRule(BusinessRule object)
Returns the result of interpreting the object as an instance of 'Business Rule'. 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 Rule'.
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 © 2010 Mod4j. All Rights Reserved.