K - the type of the safe keys.public static interface PromptingKey.Controller<K extends PromptingKey<K>>
PromptingKey.View implementations.
Implementations need to be stateful and hence do not need to be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
K |
getKeyClone()
Returns a clone of the protected resource's key or
null if
no key has been set. |
URI |
getResource()
Returns the unique resource identifier (resource ID) of the
protected resource for which this controller is used.
|
void |
setKeyClone(K key)
Sets the protected resource's key to a clone of the given key or
resets it to null.
|
@Nullable K getKeyClone()
null if
no key has been set.IllegalStateException - if getting key is not legal in the
current state.URI getResource()
IllegalStateException - if getting this property is not legal
in the current state.void setKeyClone(@Nullable K key)
key - The nullable key to clone and use for accessing the
protected resource.IllegalStateException - if setting key is not legal in the
current state.Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.