Interface ExceptionHandler
- All Superinterfaces:
BaseElement
,Cloneable
,Comparable
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,com.dassault_systemes.modeler.foundation.model.ModelElement
,ModelObject
,org.eclipse.emf.common.notify.Notifier
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefFeatured
,javax.jmi.reflect.RefObject
A representation of the model object 'Exception Handler'.
An ExceptionHandler is an Element that specifies a handlerBody ExecutableNode to execute in case the specified exception occurs during the execution of the protected ExecutableNode.
The following features are supported:
- See Also:
- Model:
- annotation="MOF package='activities.mdextrastructuredactivities'"
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Exception Input' reference.Returns the value of the 'Exception Type' reference list.Returns the value of the 'Handler Body' reference.Returns the value of the 'Protected Node' container reference.boolean
void
setExceptionInput
(ObjectNode value) Sets the value of the 'Exception Input
' reference.void
setHandlerBody
(ExecutableNode value) Sets the value of the 'Handler Body
' reference.void
setProtectedNode
(ExecutableNode value) Sets the value of the 'Protected Node
' container reference.Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetID
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
Methods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalID
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Method Details
-
getHandlerBody
Returns the value of the 'Handler Body' reference. It is bidirectional and its opposite is 'exception Handler Of Handler Body
'. An ExecutableNode that is executed if the ExceptionHandler catches an exception.- Returns:
- the value of the 'Handler Body' reference.
- See Also:
- Model:
- opposite="_exceptionHandlerOfHandlerBody" required="true" ordered="false"
- Generated:
-
setHandlerBody
Sets the value of the 'Handler Body
' reference.- Parameters:
value
- the new value of the 'Handler Body' reference.- See Also:
- Generated:
-
getExceptionInput
Returns the value of the 'Exception Input' reference. It is bidirectional and its opposite is 'exception Handler Of Exception Input
'. An ObjectNode within the handlerBody. When the ExceptionHandler catches an exception, the exception token is placed on this ObjectNode, causing the handlerBody to execute.- Returns:
- the value of the 'Exception Input' reference.
- See Also:
- Model:
- opposite="_exceptionHandlerOfExceptionInput" required="true" ordered="false"
- Generated:
-
setExceptionInput
Sets the value of the 'Exception Input
' reference.- Parameters:
value
- the new value of the 'Exception Input' reference.- See Also:
- Generated:
-
getExceptionType
Collection<Classifier> getExceptionType()Returns the value of the 'Exception Type' reference list. The list contents are of typeClassifier
. It is bidirectional and its opposite is 'exception Handler Of Exception Type
'. The Classifiers whose instances the ExceptionHandler catches as exceptions. If an exception occurs whose type is any exceptionType, the ExceptionHandler catches the exception and executes the handlerBody.- Returns:
- the value of the 'Exception Type' reference list.
- See Also:
- Model:
- opposite="_exceptionHandlerOfExceptionType" required="true" ordered="false"
- Generated:
-
getProtectedNode
Returns the value of the 'Protected Node' container reference. It is bidirectional and its opposite is 'Handler
'. The ExecutableNode protected by the ExceptionHandler. If an exception propagates out of the protectedNode and has a type matching one of the exceptionTypes, then it is caught by this ExceptionHandler.- Returns:
- the value of the 'Protected Node' container reference.
- See Also:
- Model:
- opposite="handler" required="true" transient="false" ordered="false"
- Generated:
-
setProtectedNode
Sets the value of the 'Protected Node
' container reference.- Parameters:
value
- the new value of the 'Protected Node' container reference.- See Also:
- Generated:
-
hasExceptionType
boolean hasExceptionType() throws javax.jmi.reflect.JmiException- Throws:
javax.jmi.reflect.JmiException
- Generated:
-