org.apache.directory.shared.ldap.extras.controls.ppolicy_impl
Enum PasswordPolicyStates

java.lang.Object
  extended by java.lang.Enum<PasswordPolicyStates>
      extended by org.apache.directory.shared.ldap.extras.controls.ppolicy_impl.PasswordPolicyStates
All Implemented Interfaces:
Serializable, Comparable<PasswordPolicyStates>, States

public enum PasswordPolicyStates
extends Enum<PasswordPolicyStates>
implements States

various states used in PasswordPolicyGrammar.

Author:
Apache Directory Project

Enum Constant Summary
END_STATE
           
PPOLICY_ERROR_TAG_STATE
           
PPOLICY_GRACE_AUTHNS_REMAINING_STATE
           
PPOLICY_SEQ_STATE
           
PPOLICY_TIME_BEFORE_EXPIRATION_STATE
           
PPOLICY_WARNING_TAG_STATE
           
START_STATE
           
 
Method Summary
 String getGrammarName(Grammar grammar)
          
 String getGrammarName(int grammar)
          
 PasswordPolicyStates getStartState()
          
 String getState(int state)
          
 boolean isEndState()
          
static PasswordPolicyStates valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PasswordPolicyStates[] 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

START_STATE

public static final PasswordPolicyStates START_STATE

PPOLICY_SEQ_STATE

public static final PasswordPolicyStates PPOLICY_SEQ_STATE

PPOLICY_WARNING_TAG_STATE

public static final PasswordPolicyStates PPOLICY_WARNING_TAG_STATE

PPOLICY_TIME_BEFORE_EXPIRATION_STATE

public static final PasswordPolicyStates PPOLICY_TIME_BEFORE_EXPIRATION_STATE

PPOLICY_GRACE_AUTHNS_REMAINING_STATE

public static final PasswordPolicyStates PPOLICY_GRACE_AUTHNS_REMAINING_STATE

PPOLICY_ERROR_TAG_STATE

public static final PasswordPolicyStates PPOLICY_ERROR_TAG_STATE

END_STATE

public static final PasswordPolicyStates END_STATE
Method Detail

values

public static PasswordPolicyStates[] 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 (PasswordPolicyStates c : PasswordPolicyStates.values())
    System.out.println(c);

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

valueOf

public static PasswordPolicyStates 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

getGrammarName

public String getGrammarName(Grammar grammar)


getGrammarName

public String getGrammarName(int grammar)


getState

public String getState(int state)


isEndState

public boolean isEndState()

Specified by:
isEndState in interface States

getStartState

public PasswordPolicyStates getStartState()

Specified by:
getStartState in interface States


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.