org.eclipse.uml2
Interface ExceptionHandler

All Superinterfaces:
Element, EModelElement, EObject, Notifier

public interface ExceptionHandler
extends Element

A representation of the model object 'Exception Handler'. (ExtraStructuredActivities) 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:

See Also:
UML2Package.getExceptionHandler()

Field Summary
static String copyright
           
 
Method Summary
 ObjectNode getExceptionInput()
          Returns the value of the 'Exception Input' reference
 Classifier getExceptionType(String unqualifiedName)
          Retrieves the Classifier with the specified name from the 'Exception Type' reference list
 EList getExceptionTypes()
          Returns the value of the 'Exception Type' reference list.
 ExecutableNode getHandlerBody()
          Returns the value of the 'Handler Body' reference
 Element getOwner()
           
 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
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf
 
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, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getProtectedNode

public ExecutableNode getProtectedNode()
Returns the value of the 'Protected Node' container reference. It is bidirectional and its opposite is 'Handler'.

If the meaning of the 'Protected Node' container reference isn't clear, there really should be more of a description here...

The node protected by the handler. The handler is examined if an exception propagates to the outside of the node.

Returns:
the value of the 'Protected Node' container reference.
See Also:
setProtectedNode(ExecutableNode), UML2Package.getExceptionHandler_ProtectedNode(), ExecutableNode.getHandlers()

setProtectedNode

public void setProtectedNode(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()

getHandlerBody

public ExecutableNode getHandlerBody()
Returns the value of the 'Handler Body' reference.

If the meaning of the 'Handler Body' reference isn't clear, there really should be more of a description here...

A node that is executed if the handler satisfies an uncaught exception.

Returns:
the value of the 'Handler Body' reference.
See Also:
setHandlerBody(ExecutableNode), UML2Package.getExceptionHandler_HandlerBody()

setHandlerBody

public void setHandlerBody(ExecutableNode value)
Sets the value of the 'Handler Body' reference.

Parameters:
value - the new value of the 'Handler Body' reference.
See Also:
getHandlerBody()

getExceptionInput

public ObjectNode getExceptionInput()
Returns the value of the 'Exception Input' reference.

If the meaning of the 'Exception Input' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Exception Input' reference.
See Also:
setExceptionInput(ObjectNode), UML2Package.getExceptionHandler_ExceptionInput()

setExceptionInput

public void setExceptionInput(ObjectNode value)
Sets the value of the 'Exception Input' reference.

Parameters:
value - the new value of the 'Exception Input' reference.
See Also:
getExceptionInput()

getExceptionTypes

public EList getExceptionTypes()
Returns the value of the 'Exception Type' reference list. The list contents are of type Classifier.

If the meaning of the 'Exception Type' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Exception Type' reference list.
See Also:
UML2Package.getExceptionHandler_ExceptionType()

getExceptionType

public Classifier getExceptionType(String unqualifiedName)
Retrieves the Classifier with the specified name from the 'Exception Type' reference list.

Parameters:
unqualifiedName - The unqualified name of the Classifier to retrieve.
Returns:
The Classifier with the specified name, or null.
See Also:
getExceptionTypes()

getOwner

public Element getOwner()

Specified by:
getOwner in interface Element
Returns:
the value of the 'Owner' reference.
See Also:
UML2Package.getElement_Owner(), Element.getOwnedElements()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.