Class HutnSwitch<T1>


  • public class HutnSwitch<T1>
    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:
    HutnPackage
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static HutnPackage modelPackage
      The cached model package
    • Constructor Summary

      Constructors 
      Constructor Description
      HutnSwitch()
      Creates an instance of the switch.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T1 caseAttributeSlot​(AttributeSlot object)
      Returns the result of interpreting the object as an instance of 'Attribute Slot'.
      T1 caseClassObject​(ClassObject object)
      Returns the result of interpreting the object as an instance of 'Class Object'.
      <T> T1 caseClassObjectSlot​(ClassObjectSlot<T> object)
      Returns the result of interpreting the object as an instance of 'Class Object Slot'.
      T1 caseContainmentSlot​(ContainmentSlot object)
      Returns the result of interpreting the object as an instance of 'Containment Slot'.
      T1 caseModelElement​(ModelElement object)
      Returns the result of interpreting the object as an instance of 'Model Element'.
      T1 caseNsUri​(NsUri object)
      Returns the result of interpreting the object as an instance of 'Ns Uri'.
      T1 caseObject​(Object object)
      Returns the result of interpreting the object as an instance of 'Object'.
      T1 casePackageObject​(PackageObject object)
      Returns the result of interpreting the object as an instance of 'Package Object'.
      T1 caseReferenceSlot​(ReferenceSlot object)
      Returns the result of interpreting the object as an instance of 'Reference Slot'.
      <T> T1 caseSlot​(Slot<T> object)
      Returns the result of interpreting the object as an instance of 'Slot'.
      T1 caseSpec​(Spec object)
      Returns the result of interpreting the object as an instance of 'Spec'.
      T1 defaultCase​(org.eclipse.emf.ecore.EObject object)
      Returns the result of interpreting the object as an instance of 'EObject'.
      protected T1 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.
      protected T1 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.
      T1 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • modelPackage

        protected static HutnPackage modelPackage
        The cached model package
    • Constructor Detail

      • HutnSwitch

        public HutnSwitch()
        Creates an instance of the switch.
    • Method Detail

      • doSwitch

        public T1 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 T1 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 T1 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.
      • caseSpec

        public T1 caseSpec​(Spec object)
        Returns the result of interpreting the object as an instance of 'Spec'. 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 'Spec'.
        See Also:
        doSwitch(EObject)
      • caseNsUri

        public T1 caseNsUri​(NsUri object)
        Returns the result of interpreting the object as an instance of 'Ns Uri'. 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 'Ns Uri'.
        See Also:
        doSwitch(EObject)
      • caseModelElement

        public T1 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)
      • caseObject

        public T1 caseObject​(Object object)
        Returns the result of interpreting the object as an instance of 'Object'. 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 'Object'.
        See Also:
        doSwitch(EObject)
      • casePackageObject

        public T1 casePackageObject​(PackageObject object)
        Returns the result of interpreting the object as an instance of 'Package Object'. 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 'Package Object'.
        See Also:
        doSwitch(EObject)
      • caseClassObject

        public T1 caseClassObject​(ClassObject object)
        Returns the result of interpreting the object as an instance of 'Class Object'. 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 'Class Object'.
        See Also:
        doSwitch(EObject)
      • caseSlot

        public <T> T1 caseSlot​(Slot<T> object)
        Returns the result of interpreting the object as an instance of 'Slot'. 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 'Slot'.
        See Also:
        doSwitch(EObject)
      • caseAttributeSlot

        public T1 caseAttributeSlot​(AttributeSlot object)
        Returns the result of interpreting the object as an instance of 'Attribute Slot'. 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 'Attribute Slot'.
        See Also:
        doSwitch(EObject)
      • caseClassObjectSlot

        public <T> T1 caseClassObjectSlot​(ClassObjectSlot<T> object)
        Returns the result of interpreting the object as an instance of 'Class Object Slot'. 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 'Class Object Slot'.
        See Also:
        doSwitch(EObject)
      • caseContainmentSlot

        public T1 caseContainmentSlot​(ContainmentSlot object)
        Returns the result of interpreting the object as an instance of 'Containment Slot'. 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 'Containment Slot'.
        See Also:
        doSwitch(EObject)
      • caseReferenceSlot

        public T1 caseReferenceSlot​(ReferenceSlot object)
        Returns the result of interpreting the object as an instance of 'Reference Slot'. 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 'Reference Slot'.
        See Also:
        doSwitch(EObject)
      • defaultCase

        public T1 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)