org.nakedobjects.object.control
Class Allow

java.lang.Object
  extended byorg.nakedobjects.object.control.Permission
      extended byorg.nakedobjects.object.control.Allow
All Implemented Interfaces:
java.io.Serializable

public class Allow
extends Permission

An instance of this type is used to allow something.

See Also:
Serialized Form

Field Summary
static Allow DEFAULT
          An Allow object with no reason.
 
Constructor Summary
Allow()
           
Allow(java.lang.String reason)
           
 
Method Summary
 boolean isAllowed()
          Returns true.
 boolean isVetoed()
          Returns false.
 
Methods inherited from class org.nakedobjects.object.control.Permission
allow, create, create, getReason, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final Allow DEFAULT
An Allow object with no reason.

Constructor Detail

Allow

public Allow()

Allow

public Allow(java.lang.String reason)
Method Detail

isAllowed

public final boolean isAllowed()
Returns true.

Specified by:
isAllowed in class Permission

isVetoed

public final boolean isVetoed()
Returns false.

Specified by:
isVetoed in class Permission