org.hammurapi
Class WaiverSet

java.lang.Object
  extended byorg.hammurapi.WaiverSet

public class WaiverSet
extends java.lang.Object

Version:
$Revision: 1.8 $
Author:
Pavel Vlasov

Constructor Summary
WaiverSet()
           
 
Method Summary
 void addWaiver(Waiver waiver, java.util.Date now)
           
 java.util.Collection getRejectedRequests()
           
 java.util.Collection getWaivers()
           
 Waiver requestWaiver(Violation violation, boolean peek)
          Requests and removes a waiver from the set.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaiverSet

public WaiverSet()
Method Detail

getWaivers

public java.util.Collection getWaivers()
Returns:
Collection of waivers remaining in the set

size

public int size()

getRejectedRequests

public java.util.Collection getRejectedRequests()
Returns:
Collection of violations which requested waivers, but weren't granted ones.

requestWaiver

public Waiver requestWaiver(Violation violation,
                            boolean peek)
Requests and removes a waiver from the set. Waivers with signature==null aren't removed as they apply to multiple violations.

Parameters:
violation -
peek - Just peek for waiver.
Returns:
Waiver if there is one for the violation, null otherwise.

addWaiver

public void addWaiver(Waiver waiver,
                      java.util.Date now)


Copyright © 2004 Hammurapi Group. All Rights Reserved.