H
- The type of the handle.public static interface OpenableHandle.OpenAutomatonHandle<H> extends OpenableHandle<H>, OpenedHandle<H>
OpenableHandle.OpenAutomatonHandle
interface defines those methods related
to the handle based open/connect life-cycle.
The handle reference requires the ConnectionOpenable.ConnectionOpenAutomaton
interface to be implemented.OpenableHandle.OpenAutomatonHandle<H>
Modifier and Type | Method and Description |
---|---|
boolean |
hasOpenAutomaton(H aHandle)
Determines whether the handle reference is openable by implementing
the
ConnectionOpenable.ConnectionOpenAutomaton interface. |
boolean |
isOpenable(H aHandle)
Determines whether the component identified by the given handle may
get opened/connected.
|
hasOpenable, open
isOpened
boolean hasOpenAutomaton(H aHandle) throws UnknownHandleRuntimeException
ConnectionOpenable.ConnectionOpenAutomaton
interface.aHandle
- The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException
- in case the handle is unknown.boolean isOpenable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle
- The handle identifying the component.OpenableHandle.open(Object)
is possible.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.UnknownHandleRuntimeException
- in case the given handle is
unknown.Copyright © 2015. All rights reserved.