|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExceptionHandler
A representation of the model object 'Exception Handler'. An exception handler is an element that specifies a body to execute in case the specified exception occurs during the execution of the protected node.
The following features are supported:
UMLPackage.getExceptionHandler()
Method Summary | |
---|---|
ObjectNode |
getExceptionInput()
Returns the value of the 'Exception Input' reference |
Classifier |
getExceptionType(java.lang.String name)
Retrieves the first Classifier with the specified 'Name' from the 'Exception Type' reference list |
Classifier |
getExceptionType(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Classifier with the specified 'Name' from the 'Exception Type' reference list |
org.eclipse.emf.common.util.EList<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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The exception handler and its input object node are not the source or target of any edge. |
boolean |
validateOneInput(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The handler body has one input, and that input is the same as the exception input. |
boolean |
validateResultPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The result pins of the exception handler body must correspond in number and types to the result pins of the protected node. |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
---|
getEAnnotation, getEAnnotations |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
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()
org.eclipse.emf.common.util.EList<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(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
'.
This feature subsets the following features:
Owner
'
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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateResultPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateOneInput(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateEdgeSourceTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |