Interface ExceptionHandler
-
- All Superinterfaces:
BaseElement
,java.lang.Cloneable
,java.lang.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
public interface ExceptionHandler extends Element
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:
UMLPackage.getExceptionHandler()
- Model:
- annotation="MOF package='activities.mdextrastructuredactivities'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectNode
getExceptionInput()
Returns the value of the 'Exception Input' reference.java.util.Collection<Classifier>
getExceptionType()
Returns the value of the 'Exception Type' reference list.ExecutableNode
getHandlerBody()
Returns the value of the 'Handler Body' reference.ExecutableNode
getProtectedNode()
Returns the value of the 'Protected Node' container reference.boolean
hasExceptionType()
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 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
-
-
-
-
Method Detail
-
getHandlerBody
@CheckForNull ExecutableNode 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:
setHandlerBody(ExecutableNode)
,UMLPackage.getExceptionHandler_HandlerBody()
,ExecutableNode.get_exceptionHandlerOfHandlerBody()
- Model:
- opposite="_exceptionHandlerOfHandlerBody" required="true" ordered="false"
- Generated:
-
setHandlerBody
void setHandlerBody(@CheckForNull ExecutableNode value)
Sets the value of the 'Handler Body
' reference.- Parameters:
value
- the new value of the 'Handler Body' reference.- See Also:
getHandlerBody()
- Generated:
-
getExceptionInput
@CheckForNull ObjectNode 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:
setExceptionInput(ObjectNode)
,UMLPackage.getExceptionHandler_ExceptionInput()
,ObjectNode.get_exceptionHandlerOfExceptionInput()
- Model:
- opposite="_exceptionHandlerOfExceptionInput" required="true" ordered="false"
- Generated:
-
setExceptionInput
void setExceptionInput(@CheckForNull ObjectNode value)
Sets the value of the 'Exception Input
' reference.- Parameters:
value
- the new value of the 'Exception Input' reference.- See Also:
getExceptionInput()
- Generated:
-
getExceptionType
java.util.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:
UMLPackage.getExceptionHandler_ExceptionType()
,Classifier.get_exceptionHandlerOfExceptionType()
- Model:
- opposite="_exceptionHandlerOfExceptionType" required="true" ordered="false"
- Generated:
-
getProtectedNode
@CheckForNull ExecutableNode 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:
setProtectedNode(ExecutableNode)
,UMLPackage.getExceptionHandler_ProtectedNode()
,ExecutableNode.getHandler()
- Model:
- opposite="handler" required="true" transient="false" ordered="false"
- Generated:
-
setProtectedNode
void setProtectedNode(@CheckForNull ExecutableNode value)
Sets the value of the 'Protected Node
' container reference.- Parameters:
value
- the new value of the 'Protected Node' container reference.- See Also:
getProtectedNode()
- Generated:
-
hasExceptionType
boolean hasExceptionType() throws javax.jmi.reflect.JmiException
- Throws:
javax.jmi.reflect.JmiException
- Generated:
-
-