Module org.refcodes.component
Package org.refcodes.component
Interface DecomposeableHandle.DecomposeAutomatonHandle<H>
- Type Parameters:
H
- The type of the handle.
- All Superinterfaces:
DecomposeableHandle<H>
- Enclosing interface:
- DecomposeableHandle<H>
public static interface DecomposeableHandle.DecomposeAutomatonHandle<H>
extends DecomposeableHandle<H>
The
DecomposeableHandle.DecomposeAutomatonHandle
interface defines those methods
related to the handle based decompose life-cycle. The handle reference
requires the Decomposeable.DecomposeAutomaton
interface to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.DecomposeableHandle
DecomposeableHandle.DecomposeAutomatonHandle<H>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Decomposes the component identified by the given handle.boolean
hasDecomposeAutomaton
(H aHandle) Determines whether the handle reference is decomposable by implementing theDecomposeable.DecomposeAutomaton
interface.boolean
isDecomposeable
(H aHandle) Determines whether the component identified by the given handle may get decomposed.Methods inherited from interface org.refcodes.component.DecomposeableHandle
hasDecomposeable
-
Method Details
-
hasDecomposeAutomaton
Determines whether the handle reference is decomposable by implementing theDecomposeable.DecomposeAutomaton
interface.- Parameters:
aHandle
- The handle to test whether the reference provides the according functionality.- Returns:
- True in case the reference provides the according functionality.
- Throws:
UnknownHandleRuntimeException
- in case the handle is unknown.
-
isDecomposeable
boolean isDecomposeable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException Determines whether the component identified by the given handle may get decomposed.- Parameters:
aHandle
- The handle identifying the component.- Returns:
- True if
decompose(Object)
is possible. - Throws:
UnknownHandleRuntimeException
- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException
- in case the reference of the handle does not support the requested operation.
-
decompose
void decompose(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException Decomposes the component identified by the given handle.- Specified by:
decompose
in interfaceDecomposeableHandle<H>
- Parameters:
aHandle
- The handle identifying the component.- Throws:
UnknownHandleRuntimeException
- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException
- in case the reference of the handle does not support the requested operation.
-