Class PlatformSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
com._1c.g5.v8.dt.platform.model.util.PlatformSwitch<T>
public class PlatformSwitch<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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseBorder
(Border object) Returns the result of interpreting the object as an instance of 'Border'.caseBorderDef
(BorderDef object) Returns the result of interpreting the object as an instance of 'Border Def'.Returns the result of interpreting the object as an instance of 'Color'.caseColorDef
(ColorDef object) Returns the result of interpreting the object as an instance of 'Color Def'.Returns the result of interpreting the object as an instance of 'Dually Named Element'.Returns the result of interpreting the object as an instance of 'Font'.caseFontDef
(FontDef object) Returns the result of interpreting the object as an instance of 'Font Def'.caseFontRef
(FontRef object) Returns the result of interpreting the object as an instance of 'Font Ref'.caseMutableFont
(MutableFont object) Returns the result of interpreting the object as an instance of 'Mutable Font'.caseNamedElement
(NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.casePicture
(Picture object) Returns the result of interpreting the object as an instance of 'Picture'.casePictureDef
(PictureDef object) Returns the result of interpreting the object as an instance of 'Picture Def'.casePlatformBorder
(PlatformBorder object) Returns the result of interpreting the object as an instance of 'Border'.casePlatformColor
(PlatformColor object) Returns the result of interpreting the object as an instance of 'Color'.casePlatformFont
(PlatformFont object) Returns the result of interpreting the object as an instance of 'Font'.casePlatformFontRef
(PlatformFontRef object) Returns the result of interpreting the object as an instance of 'Font Ref'.casePlatformPicture
(PlatformPicture object) Returns the result of interpreting the object as an instance of 'Picture'.caseSystemColor
(SystemColor object) Returns the result of interpreting the object as an instance of 'System Color'.caseSystemFont
(SystemFont object) Returns the result of interpreting the object as an instance of 'System Font'.defaultCase
(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch
(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(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
-
PlatformSwitch
public PlatformSwitch()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 classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
casePlatformBorder
Returns the result of interpreting the object as an instance of 'Border'. 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 'Border'.
- See Also:
-
doSwitch(EObject)
-
casePlatformFont
Returns the result of interpreting the object as an instance of 'Font'. 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 'Font'.
- See Also:
-
doSwitch(EObject)
-
casePlatformFontRef
Returns the result of interpreting the object as an instance of 'Font Ref'. 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 'Font Ref'.
- See Also:
-
doSwitch(EObject)
-
caseSystemFont
Returns the result of interpreting the object as an instance of 'System Font'. 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 'System Font'.
- See Also:
-
doSwitch(EObject)
-
casePlatformColor
Returns the result of interpreting the object as an instance of 'Color'. 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 'Color'.
- See Also:
-
doSwitch(EObject)
-
caseSystemColor
Returns the result of interpreting the object as an instance of 'System Color'. 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 'System Color'.
- See Also:
-
doSwitch(EObject)
-
casePlatformPicture
Returns the result of interpreting the object as an instance of 'Picture'. 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 'Picture'.
- See Also:
-
doSwitch(EObject)
-
caseNamedElement
Returns the result of interpreting the object as an instance of 'Named 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 'Named Element'.
- See Also:
-
doSwitch(EObject)
-
caseBorder
Returns the result of interpreting the object as an instance of 'Border'. 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 'Border'.
- See Also:
-
doSwitch(EObject)
-
caseBorderDef
Returns the result of interpreting the object as an instance of 'Border Def'. 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 'Border Def'.
- See Also:
-
doSwitch(EObject)
-
caseFont
Returns the result of interpreting the object as an instance of 'Font'. 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 'Font'.
- See Also:
-
doSwitch(EObject)
-
caseMutableFont
Returns the result of interpreting the object as an instance of 'Mutable Font'. 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 'Mutable Font'.
- See Also:
-
doSwitch(EObject)
-
caseFontDef
Returns the result of interpreting the object as an instance of 'Font Def'. 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 'Font Def'.
- See Also:
-
doSwitch(EObject)
-
caseFontRef
Returns the result of interpreting the object as an instance of 'Font Ref'. 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 'Font Ref'.
- See Also:
-
doSwitch(EObject)
-
caseColor
Returns the result of interpreting the object as an instance of 'Color'. 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 'Color'.
- See Also:
-
doSwitch(EObject)
-
caseColorDef
Returns the result of interpreting the object as an instance of 'Color Def'. 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 'Color Def'.
- See Also:
-
doSwitch(EObject)
-
caseDuallyNamedElement
Returns the result of interpreting the object as an instance of 'Dually Named 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 'Dually Named Element'.
- See Also:
-
doSwitch(EObject)
-
casePicture
Returns the result of interpreting the object as an instance of 'Picture'. 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 'Picture'.
- See Also:
-
doSwitch(EObject)
-
casePictureDef
Returns the result of interpreting the object as an instance of 'Picture Def'. 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 'Picture Def'.
- 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:
defaultCase
in 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)
-