public interface ExceptionHandler extends Element
The following features are supported:
UMLPackage.getExceptionHandler()
Modifier and Type | Method and Description |
---|---|
ObjectNode |
getExceptionInput()
Returns the value of the 'Exception Input' reference
|
Classifier |
getExceptionType(String name)
Retrieves the first
Classifier with the specified 'Name' from the '
Exception Type' reference list |
Classifier |
getExceptionType(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Classifier with the specified 'Name' from the '
Exception Type' reference list |
MDWEList<Classifier> |
getExceptionTypes()
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.
|
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 |
boolean |
validateEdgeSourceTarget(DiagnosticChain diagnostics,
Map context)
An edge that has a source in an exception handler structured node must have its target in the handler also, and vice versa.
|
boolean |
validateExceptionBody(DiagnosticChain diagnostics,
Map context)
The exception handler and its input object node are not the source or target of any edge.
|
boolean |
validateOneInput(DiagnosticChain diagnostics,
Map context)
The handler body has one input, and that input is the same as the exception input.
|
boolean |
validateResultPins(DiagnosticChain diagnostics,
Map context)
The result pins of the exception handler body must correspond in number and types to the result pins of the protected node.
|
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
ExecutableNode getHandlerBody()
setHandlerBody(ExecutableNode)
,
UMLPackage.getExceptionHandler_HandlerBody()
void setHandlerBody(ExecutableNode value)
Handler Body
' reference.
value
- the new value of the 'Handler Body' reference.getHandlerBody()
ObjectNode getExceptionInput()
setExceptionInput(ObjectNode)
,
UMLPackage.getExceptionHandler_ExceptionInput()
void setExceptionInput(ObjectNode value)
Exception Input
' reference.
value
- the new value of the 'Exception Input' reference.getExceptionInput()
MDWEList<Classifier> getExceptionTypes()
Classifier
.
The kind of instances that the handler catches. If an exception occurs whose type is any of the classifiers in the set, the handler catches the
exception and executes its body.
UMLPackage.getExceptionHandler_ExceptionType()
Classifier getExceptionType(String name)
Classifier
with the specified 'Name' from the '
Exception Type' reference list.
name
- The 'Name' of the Classifier
to retrieve, or null
.Classifier
with the specified 'Name', or null
.getExceptionTypes()
Classifier getExceptionType(String name, boolean ignoreCase, EClass eClass)
Classifier
with the specified 'Name' from the '
Exception Type' reference list.
name
- The 'Name' of the Classifier
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Classifier
to retrieve, or null
.Classifier
with the specified 'Name', or null
.getExceptionTypes()
ExecutableNode getProtectedNode()
Handler
'.
The node protected by the handler. The handler is examined if an exception propagates to the outside of the node.
setProtectedNode(ExecutableNode)
,
UMLPackage.getExceptionHandler_ProtectedNode()
,
ExecutableNode.getHandlers()
void setProtectedNode(ExecutableNode value)
Protected Node
' container reference.
value
- the new value of the 'Protected Node' container reference.getProtectedNode()
boolean validateExceptionBody(DiagnosticChain diagnostics, Map context)
boolean validateResultPins(DiagnosticChain diagnostics, Map context)
boolean validateOneInput(DiagnosticChain diagnostics, Map context)
boolean validateEdgeSourceTarget(DiagnosticChain diagnostics, Map context)