org.nakedobjects.object.control
Class Veto

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

public class Veto
extends Permission

See Also:
Serialized Form

Field Summary
static Veto DEFAULT
          An Veto object with no reason.
 
Constructor Summary
Veto()
           
Veto(java.lang.String reason)
           
 
Method Summary
 boolean isAllowed()
          Returns false.
 boolean isVetoed()
          Returns true.
 
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 Veto DEFAULT
An Veto object with no reason.

Constructor Detail

Veto

public Veto()

Veto

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

isAllowed

public final boolean isAllowed()
Returns false.

Specified by:
isAllowed in class Permission

isVetoed

public final boolean isVetoed()
Returns true.

Specified by:
isVetoed in class Permission