org.eclipse.corona.model.container.util
Class ContainerSwitch

java.lang.Object
  extended by org.eclipse.corona.model.container.util.ContainerSwitch

public class ContainerSwitch
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:
ContainerPackageImpl

Field Summary
protected static ContainerPackageImpl modelPackage
          The cached model package
 
Constructor Summary
ContainerSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseContainerPathElement(ContainerPathElement object)
          Returns the result of interpretting the object as an instance of 'Path Element'
 java.lang.Object caseContainerProperties(ContainerProperties object)
          Returns the result of interpretting the object as an instance of 'Properties'
 java.lang.Object caseContainerProperty(ContainerProperty object)
          Returns the result of interpretting the object as an instance of 'Property'
 java.lang.Object caseContextContainer(ContextContainer object)
          Returns the result of interpretting the object as an instance of 'Context Container'
 java.lang.Object caseRelatedContainers(RelatedContainers object)
          Returns the result of interpretting the object as an instance of 'Related Containers'
 java.lang.Object caseRelationshipFile(RelationshipFile object)
          Returns the result of interpretting the object as an instance of 'Relationship File'
 java.lang.Object caseRelationshipResourceSet(RelationshipResourceSet object)
          Returns the result of interpretting the object as an instance of 'Relationship Resource Set'
 java.lang.Object caseRepositoryConfiguration(RepositoryConfiguration object)
          Returns the result of interpretting the object as an instance of 'Repository Configuration'
 java.lang.Object caseRepositoryConfigurations(RepositoryConfigurations object)
          Returns the result of interpretting the object as an instance of 'Repository Configurations'
 java.lang.Object caseRepositoryConnectionParameter(RepositoryConnectionParameter object)
          Returns the result of interpretting the object as an instance of 'Repository Connection Parameter'
 java.lang.Object caseRepositoryConnectionParameters(RepositoryConnectionParameters object)
          Returns the result of interpretting the object as an instance of 'Repository Connection Parameters'
 java.lang.Object caseRepositoryDescriptor(RepositoryDescriptor object)
          Returns the result of interpretting the object as an instance of 'Repository Descriptor'
 java.lang.Object caseRepositoryDescriptors(RepositoryDescriptors object)
          Returns the result of interpretting the object as an instance of 'Repository Descriptors'
 java.lang.Object caseResourceSubset(ResourceSubset object)
          Returns the result of interpretting the object as an instance of 'Resource Subset'
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'
protected  java.lang.Object 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
 java.lang.Object 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  java.lang.Object 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 ContainerPackageImpl modelPackage
The cached model package

Constructor Detail

ContainerSwitch

public ContainerSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object 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 java.lang.Object 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 java.lang.Object 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.

caseContainerPathElement

public java.lang.Object caseContainerPathElement(ContainerPathElement object)
Returns the result of interpretting the object as an instance of 'Path 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 interpretting the object as an instance of 'Path Element'.
See Also:
doSwitch(EObject)

caseContainerProperties

public java.lang.Object caseContainerProperties(ContainerProperties object)
Returns the result of interpretting the object as an instance of 'Properties'. 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 'Properties'.
See Also:
doSwitch(EObject)

caseContainerProperty

public java.lang.Object caseContainerProperty(ContainerProperty object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Property'.
See Also:
doSwitch(EObject)

caseContextContainer

public java.lang.Object caseContextContainer(ContextContainer object)
Returns the result of interpretting the object as an instance of 'Context 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 'Context Container'.
See Also:
doSwitch(EObject)

caseRelatedContainers

public java.lang.Object caseRelatedContainers(RelatedContainers object)
Returns the result of interpretting the object as an instance of 'Related Containers'. 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 'Related Containers'.
See Also:
doSwitch(EObject)

caseRelationshipFile

public java.lang.Object caseRelationshipFile(RelationshipFile object)
Returns the result of interpretting the object as an instance of 'Relationship 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 interpretting the object as an instance of 'Relationship File'.
See Also:
doSwitch(EObject)

caseRelationshipResourceSet

public java.lang.Object caseRelationshipResourceSet(RelationshipResourceSet object)
Returns the result of interpretting the object as an instance of 'Relationship Resource 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 interpretting the object as an instance of 'Relationship Resource Set'.
See Also:
doSwitch(EObject)

caseRepositoryConfiguration

public java.lang.Object caseRepositoryConfiguration(RepositoryConfiguration object)
Returns the result of interpretting the object as an instance of 'Repository Configuration'. 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 'Repository Configuration'.
See Also:
doSwitch(EObject)

caseRepositoryConfigurations

public java.lang.Object caseRepositoryConfigurations(RepositoryConfigurations object)
Returns the result of interpretting the object as an instance of 'Repository Configurations'. 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 'Repository Configurations'.
See Also:
doSwitch(EObject)

caseRepositoryConnectionParameter

public java.lang.Object caseRepositoryConnectionParameter(RepositoryConnectionParameter object)
Returns the result of interpretting the object as an instance of 'Repository Connection Parameter'. 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 'Repository Connection Parameter'.
See Also:
doSwitch(EObject)

caseRepositoryConnectionParameters

public java.lang.Object caseRepositoryConnectionParameters(RepositoryConnectionParameters object)
Returns the result of interpretting the object as an instance of 'Repository Connection Parameters'. 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 'Repository Connection Parameters'.
See Also:
doSwitch(EObject)

caseRepositoryDescriptor

public java.lang.Object caseRepositoryDescriptor(RepositoryDescriptor object)
Returns the result of interpretting the object as an instance of 'Repository Descriptor'. 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 'Repository Descriptor'.
See Also:
doSwitch(EObject)

caseRepositoryDescriptors

public java.lang.Object caseRepositoryDescriptors(RepositoryDescriptors object)
Returns the result of interpretting the object as an instance of 'Repository Descriptors'. 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 'Repository Descriptors'.
See Also:
doSwitch(EObject)

caseResourceSubset

public java.lang.Object caseResourceSubset(ResourceSubset object)
Returns the result of interpretting the object as an instance of 'Resource Subset'. 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 'Resource Subset'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object defaultCase(org.eclipse.emf.ecore.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:
doSwitch(org.eclipse.emf.ecore.EObject)

Copyright 2006 IBM Corporation and others.
All Rights Reserved.