org.jboss.security.config
Class ControlFlag

java.lang.Object
  extended by org.jboss.security.config.ControlFlag

public class ControlFlag
extends Object

Control Flag for module entries

Since:
Aug 2, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
static ControlFlag OPTIONAL
           
static ControlFlag REQUIRED
           
static ControlFlag REQUISITE
           
static ControlFlag SUFFICIENT
           
 
Constructor Summary
ControlFlag(String flag)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
          Returns the string represented "required", "requisite" etc
static ControlFlag valueOf(String flag)
          Method that returns the correct Control flag that is associated with the argument flag, which can be (REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUIRED

public static final ControlFlag REQUIRED

REQUISITE

public static final ControlFlag REQUISITE

SUFFICIENT

public static final ControlFlag SUFFICIENT

OPTIONAL

public static final ControlFlag OPTIONAL
Constructor Detail

ControlFlag

public ControlFlag(String flag)
Method Detail

toString

public String toString()
Returns the string represented "required", "requisite" etc

Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

valueOf

public static ControlFlag valueOf(String flag)
Method that returns the correct Control flag that is associated with the argument flag, which can be (REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL)

Parameters:
flag -
Returns:
Throws:
IllegalArgumentException - when flag is different from the four above


Copyright © 2011 JBoss Inc.. All Rights Reserved.