org.eclipse.emf.emfstore.internal.server.model.versioning.util
Class VersioningSwitch<T>

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.model.versioning.util.VersioningSwitch<T>

public class VersioningSwitch<T>
extends 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:
VersioningPackage

Constructor Summary
VersioningSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAncestorVersionSpec(AncestorVersionSpec object)
          Returns the result of interpreting the object as an instance of ' Ancestor Version Spec'.
 T caseBranchInfo(BranchInfo object)
          Returns the result of interpreting the object as an instance of 'Branch Info'.
 T caseBranchVersionSpec(BranchVersionSpec object)
          Returns the result of interpreting the object as an instance of ' Branch Version Spec'.
 T caseChangePackage(ChangePackage object)
          Returns the result of interpreting the object as an instance of 'Change Package'.
 T caseDateVersionSpec(DateVersionSpec object)
          Returns the result of interpreting the object as an instance of ' Date Version Spec'.
 T caseHeadVersionSpec(HeadVersionSpec object)
          Returns the result of interpreting the object as an instance of ' Head Version Spec'.
 T caseHistoryInfo(HistoryInfo object)
          Returns the result of interpreting the object as an instance of 'History Info'.
 T caseHistoryQuery(HistoryQuery object)
          Returns the result of interpreting the object as an instance of 'History Query'.
 T caseLogMessage(LogMessage object)
          Returns the result of interpreting the object as an instance of 'Log Message'.
 T caseModelElementQuery(ModelElementQuery object)
          Returns the result of interpreting the object as an instance of ' Model Element Query'.
 T casePagedUpdateVersionSpec(PagedUpdateVersionSpec object)
          Returns the result of interpreting the object as an instance of 'Paged Update Version Spec'.
 T casePathQuery(PathQuery object)
          Returns the result of interpreting the object as an instance of 'Path Query'.
 T casePrimaryVersionSpec(PrimaryVersionSpec object)
          Returns the result of interpreting the object as an instance of ' Primary Version Spec'.
 T caseRangeQuery(RangeQuery object)
          Returns the result of interpreting the object as an instance of 'Range Query'.
 T caseTagVersionSpec(TagVersionSpec object)
          Returns the result of interpreting the object as an instance of 'Tag Version Spec'.
 T caseVersion(Version object)
          Returns the result of interpreting the object as an instance of 'Version'.
 T caseVersionProperty(VersionProperty object)
          Returns the result of interpreting the object as an instance of 'Version Property'.
 T caseVersionSpec(VersionSpec object)
          Returns the result of interpreting the object as an instance of 'Version Spec'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningSwitch

public VersioningSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T 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.

caseTagVersionSpec

public T caseTagVersionSpec(TagVersionSpec object)
Returns the result of interpreting the object as an instance of 'Tag Version 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 'Tag Version Spec'.
See Also:
doSwitch(EObject)

caseDateVersionSpec

public T caseDateVersionSpec(DateVersionSpec object)
Returns the result of interpreting the object as an instance of ' Date Version 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 ' Date Version Spec'.
See Also:
doSwitch(EObject)

casePrimaryVersionSpec

public T casePrimaryVersionSpec(PrimaryVersionSpec object)
Returns the result of interpreting the object as an instance of ' Primary Version 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 ' Primary Version Spec'.
See Also:
doSwitch(EObject)

caseVersionSpec

public T caseVersionSpec(VersionSpec object)
Returns the result of interpreting the object as an instance of 'Version 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 'Version Spec'.
See Also:
doSwitch(EObject)

caseLogMessage

public T caseLogMessage(LogMessage object)
Returns the result of interpreting the object as an instance of 'Log Message'. 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 'Log Message'.
See Also:
doSwitch(EObject)

caseChangePackage

public T caseChangePackage(ChangePackage object)
Returns the result of interpreting the object as an instance of 'Change Package'. 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 'Change Package'.
See Also:
doSwitch(EObject)

caseHistoryInfo

public T caseHistoryInfo(HistoryInfo object)
Returns the result of interpreting the object as an instance of 'History Info'. 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 'History Info'.
See Also:
doSwitch(EObject)

caseHistoryQuery

public T caseHistoryQuery(HistoryQuery object)
Returns the result of interpreting the object as an instance of 'History Query'. 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 'History Query'.
See Also:
doSwitch(EObject)

caseRangeQuery

public T caseRangeQuery(RangeQuery object)
Returns the result of interpreting the object as an instance of 'Range Query'. 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 'Range Query'.
See Also:
doSwitch(EObject)

casePathQuery

public T casePathQuery(PathQuery object)
Returns the result of interpreting the object as an instance of 'Path Query'. 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 'Path Query'.
See Also:
doSwitch(EObject)

caseModelElementQuery

public T caseModelElementQuery(ModelElementQuery object)
Returns the result of interpreting the object as an instance of ' Model Element Query'. 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 Query'.
See Also:
doSwitch(EObject)

caseVersion

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

caseHeadVersionSpec

public T caseHeadVersionSpec(HeadVersionSpec object)
Returns the result of interpreting the object as an instance of ' Head Version 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 ' Head Version Spec'.
See Also:
doSwitch(EObject)

caseVersionProperty

public T caseVersionProperty(VersionProperty object)
Returns the result of interpreting the object as an instance of 'Version 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 interpreting the object as an instance of 'Version Property'.
See Also:
doSwitch(EObject)

caseBranchVersionSpec

public T caseBranchVersionSpec(BranchVersionSpec object)
Returns the result of interpreting the object as an instance of ' Branch Version 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 ' Branch Version Spec'.
See Also:
doSwitch(EObject)

caseBranchInfo

public T caseBranchInfo(BranchInfo object)
Returns the result of interpreting the object as an instance of 'Branch Info'. 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 'Branch Info'.
See Also:
doSwitch(EObject)

caseAncestorVersionSpec

public T caseAncestorVersionSpec(AncestorVersionSpec object)
Returns the result of interpreting the object as an instance of ' Ancestor Version 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 ' Ancestor Version Spec'.
See Also:
doSwitch(EObject)

casePagedUpdateVersionSpec

public T casePagedUpdateVersionSpec(PagedUpdateVersionSpec object)
Returns the result of interpreting the object as an instance of 'Paged Update Version 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 'Paged Update Version Spec'.
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.

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)


Copyright © 2015. All Rights Reserved.