Class DataSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmt.modisco.omg.kdm.data.util.DataSwitch<T>

public class DataSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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:
DataPackage
  • Field Details

    • modelPackage

      protected static DataPackage modelPackage
      The cached model package
  • Constructor Details

    • DataSwitch

      public DataSwitch()
      Creates an instance of the switch.
  • Method Details

    • isSwitchFor

      protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • 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.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseDataModel

      public T caseDataModel​(DataModel object)
      Returns the result of interpreting the object as an instance of '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 'Model'.
      See Also:
      doSwitch(EObject)
    • caseAbstractDataElement

      public T caseAbstractDataElement​(AbstractDataElement object)
      Returns the result of interpreting the object as an instance of 'Abstract Data 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 'Abstract Data Element'.
      See Also:
      doSwitch(EObject)
    • caseDataResource

      public T caseDataResource​(DataResource object)
      Returns the result of interpreting the object as an instance of 'Resource'. 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'.
      See Also:
      doSwitch(EObject)
    • caseIndexElement

      public T caseIndexElement​(IndexElement object)
      Returns the result of interpreting the object as an instance of 'Index 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 'Index Element'.
      See Also:
      doSwitch(EObject)
    • caseUniqueKey

      public T caseUniqueKey​(UniqueKey object)
      Returns the result of interpreting the object as an instance of 'Unique Key'. 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 Key'.
      See Also:
      doSwitch(EObject)
    • caseIndex

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

      public T caseAbstractDataRelationship​(AbstractDataRelationship object)
      Returns the result of interpreting the object as an instance of 'Abstract Data Relationship'. 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 Data Relationship'.
      See Also:
      doSwitch(EObject)
    • caseKeyRelation

      public T caseKeyRelation​(KeyRelation object)
      Returns the result of interpreting the object as an instance of 'Key Relation'. 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 'Key Relation'.
      See Also:
      doSwitch(EObject)
    • caseReferenceKey

      public T caseReferenceKey​(ReferenceKey object)
      Returns the result of interpreting the object as an instance of 'Reference Key'. 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 Key'.
      See Also:
      doSwitch(EObject)
    • caseDataContainer

      public T caseDataContainer​(DataContainer object)
      Returns the result of interpreting the object as an instance of 'Container'. 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 'Container'.
      See Also:
      doSwitch(EObject)
    • caseCatalog

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

      public T caseRelationalSchema​(RelationalSchema object)
      Returns the result of interpreting the object as an instance of 'Relational Schema'. 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 'Relational Schema'.
      See Also:
      doSwitch(EObject)
    • caseColumnSet

      public T caseColumnSet​(ColumnSet object)
      Returns the result of interpreting the object as an instance of 'Column 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 interpreting the object as an instance of 'Column Set'.
      See Also:
      doSwitch(EObject)
    • caseRelationalTable

      public T caseRelationalTable​(RelationalTable object)
      Returns the result of interpreting the object as an instance of 'Relational Table'. 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 'Relational Table'.
      See Also:
      doSwitch(EObject)
    • caseRelationalView

      public T caseRelationalView​(RelationalView object)
      Returns the result of interpreting the object as an instance of 'Relational View'. 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 'Relational View'.
      See Also:
      doSwitch(EObject)
    • caseRecordFile

      public T caseRecordFile​(RecordFile object)
      Returns the result of interpreting the object as an instance of 'Record File'. 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 'Record File'.
      See Also:
      doSwitch(EObject)
    • caseDataEvent

      public T caseDataEvent​(DataEvent object)
      Returns the result of interpreting the object as an instance of 'Event'. 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 'Event'.
      See Also:
      doSwitch(EObject)
    • caseXMLSchema

      public T caseXMLSchema​(XMLSchema object)
      Returns the result of interpreting the object as an instance of 'XML Schema'. 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 'XML Schema'.
      See Also:
      doSwitch(EObject)
    • caseAbstractContentElement

      public T caseAbstractContentElement​(AbstractContentElement object)
      Returns the result of interpreting the object as an instance of 'Abstract Content 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 'Abstract Content Element'.
      See Also:
      doSwitch(EObject)
    • caseComplexContentType

      public T caseComplexContentType​(ComplexContentType object)
      Returns the result of interpreting the object as an instance of 'Complex Content 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 'Complex Content Type'.
      See Also:
      doSwitch(EObject)
    • caseAllContent

      public T caseAllContent​(AllContent object)
      Returns the result of interpreting the object as an instance of 'All Content'. 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 'All Content'.
      See Also:
      doSwitch(EObject)
    • caseSeqContent

      public T caseSeqContent​(SeqContent object)
      Returns the result of interpreting the object as an instance of 'Seq Content'. 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 'Seq Content'.
      See Also:
      doSwitch(EObject)
    • caseChoiceContent

      public T caseChoiceContent​(ChoiceContent object)
      Returns the result of interpreting the object as an instance of 'Choice Content'. 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 'Choice Content'.
      See Also:
      doSwitch(EObject)
    • caseContentItem

      public T caseContentItem​(ContentItem object)
      Returns the result of interpreting the object as an instance of 'Content Item'. 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 'Content Item'.
      See Also:
      doSwitch(EObject)
    • caseGroupContent

      public T caseGroupContent​(GroupContent object)
      Returns the result of interpreting the object as an instance of 'Group Content'. 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 'Group Content'.
      See Also:
      doSwitch(EObject)
    • caseContentRestriction

      public T caseContentRestriction​(ContentRestriction object)
      Returns the result of interpreting the object as an instance of 'Content Restriction'. 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 'Content Restriction'.
      See Also:
      doSwitch(EObject)
    • caseSimpleContentType

      public T caseSimpleContentType​(SimpleContentType object)
      Returns the result of interpreting the object as an instance of 'Simple Content 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 'Simple Content Type'.
      See Also:
      doSwitch(EObject)
    • caseExtendedDataElement

      public T caseExtendedDataElement​(ExtendedDataElement object)
      Returns the result of interpreting the object as an instance of 'Extended Data 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 'Extended Data Element'.
      See Also:
      doSwitch(EObject)
    • caseDataRelationship

      public T caseDataRelationship​(DataRelationship object)
      Returns the result of interpreting the object as an instance of 'Relationship'. 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 'Relationship'.
      See Also:
      doSwitch(EObject)
    • caseMixedContent

      public T caseMixedContent​(MixedContent object)
      Returns the result of interpreting the object as an instance of 'Mixed Content'. 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 'Mixed Content'.
      See Also:
      doSwitch(EObject)
    • caseContentReference

      public T caseContentReference​(ContentReference object)
      Returns the result of interpreting the object as an instance of 'Content 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 'Content Reference'.
      See Also:
      doSwitch(EObject)
    • caseDataAction

      public T caseDataAction​(DataAction object)
      Returns the result of interpreting the object as an instance of 'Action'. 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 'Action'.
      See Also:
      doSwitch(EObject)
    • caseReadsColumnSet

      public T caseReadsColumnSet​(ReadsColumnSet object)
      Returns the result of interpreting the object as an instance of 'Reads Column 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 interpreting the object as an instance of 'Reads Column Set'.
      See Also:
      doSwitch(EObject)
    • caseContentAttribute

      public T caseContentAttribute​(ContentAttribute object)
      Returns the result of interpreting the object as an instance of 'Content Attribute'. 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 'Content Attribute'.
      See Also:
      doSwitch(EObject)
    • caseTypedBy

      public T caseTypedBy​(TypedBy object)
      Returns the result of interpreting the object as an instance of 'Typed By'. 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 'Typed By'.
      See Also:
      doSwitch(EObject)
    • caseReferenceTo

      public T caseReferenceTo​(ReferenceTo object)
      Returns the result of interpreting the object as an instance of 'Reference To'. 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 To'.
      See Also:
      doSwitch(EObject)
    • caseRestrictionOf

      public T caseRestrictionOf​(RestrictionOf object)
      Returns the result of interpreting the object as an instance of 'Restriction Of'. 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 'Restriction Of'.
      See Also:
      doSwitch(EObject)
    • caseExtensionTo

      public T caseExtensionTo​(ExtensionTo object)
      Returns the result of interpreting the object as an instance of 'Extension To'. 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 'Extension To'.
      See Also:
      doSwitch(EObject)
    • caseDatatypeOf

      public T caseDatatypeOf​(DatatypeOf object)
      Returns the result of interpreting the object as an instance of 'Datatype Of'. 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 'Datatype Of'.
      See Also:
      doSwitch(EObject)
    • caseHasContent

      public T caseHasContent​(HasContent object)
      Returns the result of interpreting the object as an instance of 'Has Content'. 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 'Has Content'.
      See Also:
      doSwitch(EObject)
    • caseWritesColumnSet

      public T caseWritesColumnSet​(WritesColumnSet object)
      Returns the result of interpreting the object as an instance of 'Writes Column 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 interpreting the object as an instance of 'Writes Column Set'.
      See Also:
      doSwitch(EObject)
    • caseProducesDataEvent

      public T caseProducesDataEvent​(ProducesDataEvent object)
      Returns the result of interpreting the object as an instance of 'Produces Data Event'. 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 'Produces Data Event'.
      See Also:
      doSwitch(EObject)
    • caseDataSegment

      public T caseDataSegment​(DataSegment object)
      Returns the result of interpreting the object as an instance of 'Segment'. 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 'Segment'.
      See Also:
      doSwitch(EObject)
    • caseContentElement

      public T caseContentElement​(ContentElement object)
      Returns the result of interpreting the object as an instance of 'Content 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 'Content Element'.
      See Also:
      doSwitch(EObject)
    • caseManagesData

      public T caseManagesData​(ManagesData object)
      Returns the result of interpreting the object as an instance of 'Manages Data'. 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 'Manages Data'.
      See Also:
      doSwitch(EObject)
    • caseElement

      public T caseElement​(Element object)
      Returns the result of interpreting the object as an instance of '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 'Element'.
      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)
    • caseKDMFramework

      public T caseKDMFramework​(KDMFramework object)
      Returns the result of interpreting the object as an instance of 'KDM Framework'. 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 'KDM Framework'.
      See Also:
      doSwitch(EObject)
    • caseKDMModel

      public T caseKDMModel​(KDMModel object)
      Returns the result of interpreting the object as an instance of 'KDM 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 'KDM Model'.
      See Also:
      doSwitch(EObject)
    • caseKDMEntity

      public T caseKDMEntity​(KDMEntity object)
      Returns the result of interpreting the object as an instance of 'KDM Entity'. 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 'KDM Entity'.
      See Also:
      doSwitch(EObject)
    • caseKDMRelationship

      public T caseKDMRelationship​(KDMRelationship object)
      Returns the result of interpreting the object as an instance of 'KDM Relationship'. 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 'KDM Relationship'.
      See Also:
      doSwitch(EObject)
    • caseAbstractActionRelationship

      public T caseAbstractActionRelationship​(AbstractActionRelationship object)
      Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'. 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 Action Relationship'.
      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.
      Overrides:
      defaultCase in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also:
      Switch.doSwitch(org.eclipse.emf.ecore.EObject)