Generation Framework

org.eclipse.gmf.mappings.util
Class GMFMapSwitch

java.lang.Object
  extended byorg.eclipse.gmf.mappings.util.GMFMapSwitch

public class GMFMapSwitch
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:
GMFMapPackage
** Generated **

Field Summary
protected static GMFMapPackage modelPackage
          The cached model package
 
Constructor Summary
GMFMapSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAppearanceSteward(AppearanceSteward object)
          Returns the result of interpretting the object as an instance of 'Appearance Steward'
 java.lang.Object caseAuditable(Auditable object)
          Returns the result of interpretting the object as an instance of 'Auditable'
 java.lang.Object caseAuditContainer(AuditContainer object)
          Returns the result of interpretting the object as an instance of 'Audit Container'
 java.lang.Object caseAuditedMetricTarget(AuditedMetricTarget object)
          Returns the result of interpretting the object as an instance of 'Audited Metric Target'
 java.lang.Object caseAuditRule(AuditRule object)
          Returns the result of interpretting the object as an instance of 'Audit Rule'
 java.lang.Object caseCanvasMapping(CanvasMapping object)
          Returns the result of interpretting the object as an instance of 'Canvas Mapping'
 java.lang.Object caseChildReference(ChildReference object)
          Returns the result of interpretting the object as an instance of 'Child Reference'
 java.lang.Object caseCompartmentMapping(CompartmentMapping object)
          Returns the result of interpretting the object as an instance of 'Compartment Mapping'
 java.lang.Object caseConstraint(Constraint object)
          Returns the result of interpretting the object as an instance of 'Constraint'
 java.lang.Object caseDiagramElementTarget(DiagramElementTarget object)
          Returns the result of interpretting the object as an instance of 'Diagram Element Target'
 java.lang.Object caseDomainAttributeTarget(DomainAttributeTarget object)
          Returns the result of interpretting the object as an instance of 'Domain Attribute Target'
 java.lang.Object caseDomainElementTarget(DomainElementTarget object)
          Returns the result of interpretting the object as an instance of 'Domain Element Target'
 java.lang.Object caseElementInitializer(ElementInitializer object)
          Returns the result of interpretting the object as an instance of 'Element Initializer'
 java.lang.Object caseFeatureSeqInitializer(FeatureSeqInitializer object)
          Returns the result of interpretting the object as an instance of 'Feature Seq Initializer'
 java.lang.Object caseFeatureValueSpec(FeatureValueSpec object)
          Returns the result of interpretting the object as an instance of 'Feature Value Spec'
 java.lang.Object caseLabelMapping(LabelMapping object)
          Returns the result of interpretting the object as an instance of 'Label Mapping'
 java.lang.Object caseLinkConstraints(LinkConstraints object)
          Returns the result of interpretting the object as an instance of 'Link Constraints'
 java.lang.Object caseLinkMapping(LinkMapping object)
          Returns the result of interpretting the object as an instance of 'Link Mapping'
 java.lang.Object caseMapping(Mapping object)
          Returns the result of interpretting the object as an instance of 'Mapping'
 java.lang.Object caseMappingEntry(MappingEntry object)
          Returns the result of interpretting the object as an instance of 'Mapping Entry'
 java.lang.Object caseMeasurable(Measurable object)
          Returns the result of interpretting the object as an instance of 'Measurable'
 java.lang.Object caseMenuOwner(MenuOwner object)
          Returns the result of interpretting the object as an instance of 'Menu Owner'
 java.lang.Object caseMetricContainer(MetricContainer object)
          Returns the result of interpretting the object as an instance of 'Metric Container'
 java.lang.Object caseMetricRule(MetricRule object)
          Returns the result of interpretting the object as an instance of 'Metric Rule'
 java.lang.Object caseNeedsContainment(NeedsContainment object)
          Returns the result of interpretting the object as an instance of 'Needs Containment'
 java.lang.Object caseNodeMapping(NodeMapping object)
          Returns the result of interpretting the object as an instance of 'Node Mapping'
 java.lang.Object caseNodeReference(NodeReference object)
          Returns the result of interpretting the object as an instance of 'Node Reference'
 java.lang.Object caseNotationElementTarget(NotationElementTarget object)
          Returns the result of interpretting the object as an instance of 'Notation Element Target'
 java.lang.Object caseRuleBase(RuleBase object)
          Returns the result of interpretting the object as an instance of 'Rule Base'
 java.lang.Object caseToolOwner(ToolOwner object)
          Returns the result of interpretting the object as an instance of 'Tool Owner'
 java.lang.Object caseTopNodeReference(TopNodeReference object)
          Returns the result of interpretting the object as an instance of 'Top Node Reference'
 java.lang.Object caseValueExpression(ValueExpression object)
          Returns the result of interpretting the object as an instance of 'Value Expression'
 java.lang.Object defaultCase(EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'
protected  java.lang.Object doSwitch(EClass theEClass, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 java.lang.Object doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
protected  java.lang.Object doSwitch(int classifierID, 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 GMFMapPackage modelPackage
The cached model package

** Generated **
Constructor Detail

GMFMapSwitch

public GMFMapSwitch()
Creates an instance of the switch.

** Generated **
Method Detail

doSwitch

public java.lang.Object doSwitch(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.
** Generated **

doSwitch

protected java.lang.Object doSwitch(EClass theEClass,
                                    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.
** Generated **

doSwitch

protected java.lang.Object doSwitch(int classifierID,
                                    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.
** Generated **

caseMappingEntry

public java.lang.Object caseMappingEntry(MappingEntry object)
Returns the result of interpretting the object as an instance of 'Mapping Entry'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Mapping Entry'.
See Also:
doSwitch(EObject)
** Generated **

caseNeedsContainment

public java.lang.Object caseNeedsContainment(NeedsContainment object)
Returns the result of interpretting the object as an instance of 'Needs Containment'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Needs Containment'.
See Also:
doSwitch(EObject)
** Generated **

caseNodeReference

public java.lang.Object caseNodeReference(NodeReference object)
Returns the result of interpretting the object as an instance of 'Node 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 interpretting the object as an instance of 'Node Reference'.
See Also:
doSwitch(EObject)
** Generated **

caseChildReference

public java.lang.Object caseChildReference(ChildReference object)
Returns the result of interpretting the object as an instance of 'Child 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 interpretting the object as an instance of 'Child Reference'.
See Also:
doSwitch(EObject)
** Generated **

caseTopNodeReference

public java.lang.Object caseTopNodeReference(TopNodeReference object)
Returns the result of interpretting the object as an instance of 'Top Node 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 interpretting the object as an instance of 'Top Node Reference'.
See Also:
doSwitch(EObject)
** Generated **

caseNodeMapping

public java.lang.Object caseNodeMapping(NodeMapping object)
Returns the result of interpretting the object as an instance of 'Node Mapping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Node Mapping'.
See Also:
doSwitch(EObject)
** Generated **

caseCompartmentMapping

public java.lang.Object caseCompartmentMapping(CompartmentMapping object)
Returns the result of interpretting the object as an instance of 'Compartment Mapping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Compartment Mapping'.
See Also:
doSwitch(EObject)
** Generated **

caseLinkMapping

public java.lang.Object caseLinkMapping(LinkMapping object)
Returns the result of interpretting the object as an instance of 'Link Mapping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Link Mapping'.
See Also:
doSwitch(EObject)
** Generated **

caseCanvasMapping

public java.lang.Object caseCanvasMapping(CanvasMapping object)
Returns the result of interpretting the object as an instance of 'Canvas Mapping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Canvas Mapping'.
See Also:
doSwitch(EObject)
** Generated **

caseLabelMapping

public java.lang.Object caseLabelMapping(LabelMapping object)
Returns the result of interpretting the object as an instance of 'Label Mapping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Label Mapping'.
See Also:
doSwitch(EObject)
** Generated **

caseMapping

public java.lang.Object caseMapping(Mapping object)
Returns the result of interpretting the object as an instance of 'Mapping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Mapping'.
See Also:
doSwitch(EObject)
** Generated **

caseConstraint

public java.lang.Object caseConstraint(Constraint object)
Returns the result of interpretting the object as an instance of 'Constraint'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Constraint'.
See Also:
doSwitch(EObject)
** Generated **

caseLinkConstraints

public java.lang.Object caseLinkConstraints(LinkConstraints object)
Returns the result of interpretting the object as an instance of 'Link Constraints'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Link Constraints'.
See Also:
doSwitch(EObject)
** Generated **

caseValueExpression

public java.lang.Object caseValueExpression(ValueExpression object)
Returns the result of interpretting the object as an instance of 'Value Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Value Expression'.
See Also:
doSwitch(EObject)
** Generated **

caseElementInitializer

public java.lang.Object caseElementInitializer(ElementInitializer object)
Returns the result of interpretting the object as an instance of 'Element Initializer'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Element Initializer'.
See Also:
doSwitch(EObject)
** Generated **

caseFeatureSeqInitializer

public java.lang.Object caseFeatureSeqInitializer(FeatureSeqInitializer object)
Returns the result of interpretting the object as an instance of 'Feature Seq Initializer'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Feature Seq Initializer'.
See Also:
doSwitch(EObject)
** Generated **

caseFeatureValueSpec

public java.lang.Object caseFeatureValueSpec(FeatureValueSpec object)
Returns the result of interpretting the object as an instance of 'Feature Value 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 interpretting the object as an instance of 'Feature Value Spec'.
See Also:
doSwitch(EObject)
** Generated **

caseMenuOwner

public java.lang.Object caseMenuOwner(MenuOwner object)
Returns the result of interpretting the object as an instance of 'Menu Owner'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Menu Owner'.
See Also:
doSwitch(EObject)
** Generated **

caseToolOwner

public java.lang.Object caseToolOwner(ToolOwner object)
Returns the result of interpretting the object as an instance of 'Tool Owner'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Tool Owner'.
See Also:
doSwitch(EObject)
** Generated **

caseAppearanceSteward

public java.lang.Object caseAppearanceSteward(AppearanceSteward object)
Returns the result of interpretting the object as an instance of 'Appearance Steward'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Appearance Steward'.
See Also:
doSwitch(EObject)
** Generated **

caseAuditContainer

public java.lang.Object caseAuditContainer(AuditContainer object)
Returns the result of interpretting the object as an instance of 'Audit 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 interpretting the object as an instance of 'Audit Container'.
See Also:
doSwitch(EObject)
** Generated **

caseAuditRule

public java.lang.Object caseAuditRule(AuditRule object)
Returns the result of interpretting the object as an instance of 'Audit 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 interpretting the object as an instance of 'Audit Rule'.
See Also:
doSwitch(EObject)
** Generated **

caseRuleBase

public java.lang.Object caseRuleBase(RuleBase object)
Returns the result of interpretting the object as an instance of 'Rule Base'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Rule Base'.
See Also:
doSwitch(EObject)
** Generated **

caseDomainElementTarget

public java.lang.Object caseDomainElementTarget(DomainElementTarget object)
Returns the result of interpretting the object as an instance of 'Domain Element Target'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Domain Element Target'.
See Also:
doSwitch(EObject)
** Generated **

caseDomainAttributeTarget

public java.lang.Object caseDomainAttributeTarget(DomainAttributeTarget object)
Returns the result of interpretting the object as an instance of 'Domain Attribute Target'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Domain Attribute Target'.
See Also:
doSwitch(EObject)
** Generated **

caseDiagramElementTarget

public java.lang.Object caseDiagramElementTarget(DiagramElementTarget object)
Returns the result of interpretting the object as an instance of 'Diagram Element Target'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Diagram Element Target'.
See Also:
doSwitch(EObject)
** Generated **

caseNotationElementTarget

public java.lang.Object caseNotationElementTarget(NotationElementTarget object)
Returns the result of interpretting the object as an instance of 'Notation Element Target'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Notation Element Target'.
See Also:
doSwitch(EObject)
** Generated **

caseMetricContainer

public java.lang.Object caseMetricContainer(MetricContainer object)
Returns the result of interpretting the object as an instance of 'Metric 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 interpretting the object as an instance of 'Metric Container'.
See Also:
doSwitch(EObject)
** Generated **

caseMetricRule

public java.lang.Object caseMetricRule(MetricRule object)
Returns the result of interpretting the object as an instance of 'Metric 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 interpretting the object as an instance of 'Metric Rule'.
See Also:
doSwitch(EObject)
** Generated **

caseAuditedMetricTarget

public java.lang.Object caseAuditedMetricTarget(AuditedMetricTarget object)
Returns the result of interpretting the object as an instance of 'Audited Metric Target'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Audited Metric Target'.
See Also:
doSwitch(EObject)
** Generated **

caseAuditable

public java.lang.Object caseAuditable(Auditable object)
Returns the result of interpretting the object as an instance of 'Auditable'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Auditable'.
See Also:
doSwitch(EObject)
** Generated **

caseMeasurable

public java.lang.Object caseMeasurable(Measurable object)
Returns the result of interpretting the object as an instance of 'Measurable'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Measurable'.
See Also:
doSwitch(EObject)
** Generated **

defaultCase

public java.lang.Object defaultCase(EObject object)
Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
See Also:
GMFMapSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
** Generated **

Generation Framework

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.