TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

de.schlichtherle.truezip.key
Enum PromptingKeyProvider.State

java.lang.Object
  extended by java.lang.Enum<PromptingKeyProvider.State>
      extended by de.schlichtherle.truezip.key.PromptingKeyProvider.State
All Implemented Interfaces:
Serializable, Comparable<PromptingKeyProvider.State>
Enclosing class:
PromptingKeyProvider<K extends SafeKey<K>>

@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
static enum PromptingKeyProvider.State
extends Enum<PromptingKeyProvider.State>

Implements the behavior strategy of its enclosing class.


Enum Constant Summary
CANCELLED
           
PROVIDED
           
RESET
           
 
Method Summary
(package private) abstract
<K extends SafeKey<K>>
K
getCreateKey(PromptingKeyProvider<K> provider)
           
(package private) abstract
<K extends SafeKey<K>>
K
getOpenKey(PromptingKeyProvider<K> provider, boolean invalid)
           
(package private) abstract
<K extends SafeKey<K>>
void
resetCancelledKey(PromptingKeyProvider<K> provider)
           
(package private) abstract
<K extends SafeKey<K>>
void
setKey(PromptingKeyProvider<K> provider, K key)
           
static PromptingKeyProvider.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PromptingKeyProvider.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RESET

public static final PromptingKeyProvider.State RESET

PROVIDED

public static final PromptingKeyProvider.State PROVIDED

CANCELLED

public static final PromptingKeyProvider.State CANCELLED
Method Detail

values

public static PromptingKeyProvider.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PromptingKeyProvider.State c : PromptingKeyProvider.State.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PromptingKeyProvider.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCreateKey

abstract <K extends SafeKey<K>> K getCreateKey(PromptingKeyProvider<K> provider)
                                    throws UnknownKeyException
Throws:
UnknownKeyException

getOpenKey

abstract <K extends SafeKey<K>> K getOpenKey(PromptingKeyProvider<K> provider,
                                             boolean invalid)
                                  throws UnknownKeyException
Throws:
UnknownKeyException

setKey

abstract <K extends SafeKey<K>> void setKey(PromptingKeyProvider<K> provider,
                                            @CheckForNull
                                            K key)

resetCancelledKey

abstract <K extends SafeKey<K>> void resetCancelledKey(PromptingKeyProvider<K> provider)

TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.