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 Summary
Fields Modifier and Type Field Description protected static DataPackagemodelPackageThe cached model package -
Constructor Summary
Constructors Constructor Description DataSwitch()Creates an instance of the switch. -
Method Summary
Modifier and Type Method Description TcaseAbstractActionRelationship(AbstractActionRelationship object)Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'.TcaseAbstractContentElement(AbstractContentElement object)Returns the result of interpreting the object as an instance of 'Abstract Content Element'.TcaseAbstractDataElement(AbstractDataElement object)Returns the result of interpreting the object as an instance of 'Abstract Data Element'.TcaseAbstractDataRelationship(AbstractDataRelationship object)Returns the result of interpreting the object as an instance of 'Abstract Data Relationship'.TcaseAllContent(AllContent object)Returns the result of interpreting the object as an instance of 'All Content'.TcaseCatalog(Catalog object)Returns the result of interpreting the object as an instance of 'Catalog'.TcaseChoiceContent(ChoiceContent object)Returns the result of interpreting the object as an instance of 'Choice Content'.TcaseColumnSet(ColumnSet object)Returns the result of interpreting the object as an instance of 'Column Set'.TcaseComplexContentType(ComplexContentType object)Returns the result of interpreting the object as an instance of 'Complex Content Type'.TcaseContentAttribute(ContentAttribute object)Returns the result of interpreting the object as an instance of 'Content Attribute'.TcaseContentElement(ContentElement object)Returns the result of interpreting the object as an instance of 'Content Element'.TcaseContentItem(ContentItem object)Returns the result of interpreting the object as an instance of 'Content Item'.TcaseContentReference(ContentReference object)Returns the result of interpreting the object as an instance of 'Content Reference'.TcaseContentRestriction(ContentRestriction object)Returns the result of interpreting the object as an instance of 'Content Restriction'.TcaseDataAction(DataAction object)Returns the result of interpreting the object as an instance of 'Action'.TcaseDataContainer(DataContainer object)Returns the result of interpreting the object as an instance of 'Container'.TcaseDataEvent(DataEvent object)Returns the result of interpreting the object as an instance of 'Event'.TcaseDataModel(DataModel object)Returns the result of interpreting the object as an instance of 'Model'.TcaseDataRelationship(DataRelationship object)Returns the result of interpreting the object as an instance of 'Relationship'.TcaseDataResource(DataResource object)Returns the result of interpreting the object as an instance of 'Resource'.TcaseDataSegment(DataSegment object)Returns the result of interpreting the object as an instance of 'Segment'.TcaseDatatypeOf(DatatypeOf object)Returns the result of interpreting the object as an instance of 'Datatype Of'.TcaseElement(Element object)Returns the result of interpreting the object as an instance of 'Element'.TcaseExtendedDataElement(ExtendedDataElement object)Returns the result of interpreting the object as an instance of 'Extended Data Element'.TcaseExtensionTo(ExtensionTo object)Returns the result of interpreting the object as an instance of 'Extension To'.TcaseGroupContent(GroupContent object)Returns the result of interpreting the object as an instance of 'Group Content'.TcaseHasContent(HasContent object)Returns the result of interpreting the object as an instance of 'Has Content'.TcaseIndex(Index object)Returns the result of interpreting the object as an instance of 'Index'.TcaseIndexElement(IndexElement object)Returns the result of interpreting the object as an instance of 'Index Element'.TcaseKDMEntity(KDMEntity object)Returns the result of interpreting the object as an instance of 'KDM Entity'.TcaseKDMFramework(KDMFramework object)Returns the result of interpreting the object as an instance of 'KDM Framework'.TcaseKDMModel(KDMModel object)Returns the result of interpreting the object as an instance of 'KDM Model'.TcaseKDMRelationship(KDMRelationship object)Returns the result of interpreting the object as an instance of 'KDM Relationship'.TcaseKeyRelation(KeyRelation object)Returns the result of interpreting the object as an instance of 'Key Relation'.TcaseManagesData(ManagesData object)Returns the result of interpreting the object as an instance of 'Manages Data'.TcaseMixedContent(MixedContent object)Returns the result of interpreting the object as an instance of 'Mixed Content'.TcaseModelElement(ModelElement object)Returns the result of interpreting the object as an instance of 'Model Element'.TcaseProducesDataEvent(ProducesDataEvent object)Returns the result of interpreting the object as an instance of 'Produces Data Event'.TcaseReadsColumnSet(ReadsColumnSet object)Returns the result of interpreting the object as an instance of 'Reads Column Set'.TcaseRecordFile(RecordFile object)Returns the result of interpreting the object as an instance of 'Record File'.TcaseReferenceKey(ReferenceKey object)Returns the result of interpreting the object as an instance of 'Reference Key'.TcaseReferenceTo(ReferenceTo object)Returns the result of interpreting the object as an instance of 'Reference To'.TcaseRelationalSchema(RelationalSchema object)Returns the result of interpreting the object as an instance of 'Relational Schema'.TcaseRelationalTable(RelationalTable object)Returns the result of interpreting the object as an instance of 'Relational Table'.TcaseRelationalView(RelationalView object)Returns the result of interpreting the object as an instance of 'Relational View'.TcaseRestrictionOf(RestrictionOf object)Returns the result of interpreting the object as an instance of 'Restriction Of'.TcaseSeqContent(SeqContent object)Returns the result of interpreting the object as an instance of 'Seq Content'.TcaseSimpleContentType(SimpleContentType object)Returns the result of interpreting the object as an instance of 'Simple Content Type'.TcaseTypedBy(TypedBy object)Returns the result of interpreting the object as an instance of 'Typed By'.TcaseUniqueKey(UniqueKey object)Returns the result of interpreting the object as an instance of 'Unique Key'.TcaseWritesColumnSet(WritesColumnSet object)Returns the result of interpreting the object as an instance of 'Writes Column Set'.TcaseXMLSchema(XMLSchema object)Returns the result of interpreting the object as an instance of 'XML Schema'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
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:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseDataModel
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
defaultCasein classorg.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)
-