H
- The type of the handle.OpenableHandle<H>
, OpenedHandle<H>
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 | 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, openUnchecked
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.UnknownHandleRuntimeException
- in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.Copyright © 2018. All rights reserved.