org.nakedobjects.metamodel.consent
Class InteractionResultSet

java.lang.Object
  extended by org.nakedobjects.metamodel.consent.InteractionResultSet

public class InteractionResultSet
extends java.lang.Object


Constructor Summary
InteractionResultSet()
           
 
Method Summary
 InteractionResultSet add(InteractionResult result)
           
 Consent createConsent()
          Returns the Consent corresponding to getInteractionResult(), or an Allow if there have been no InteractionResults added.
 InteractionResult getInteractionResult()
          Returns the "best" contained InteractionResult.
 boolean isAllowed()
          Empty only if all the contained InteractionResults are also empty.
 boolean isVetoed()
          Vetoed if any of the contained InteractionResults are also not empty.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InteractionResultSet

public InteractionResultSet()
Method Detail

add

public InteractionResultSet add(InteractionResult result)

isAllowed

public boolean isAllowed()
Empty only if all the contained InteractionResults are also empty.


isVetoed

public boolean isVetoed()
Vetoed if any of the contained InteractionResults are also not empty.

Returns:

createConsent

public Consent createConsent()
Returns the Consent corresponding to getInteractionResult(), or an Allow if there have been no InteractionResults added.

Returns:

getInteractionResult

public InteractionResult getInteractionResult()
Returns the "best" contained InteractionResult.

This will be the first InteractionResult that has vetoed the interaction, or the first InteractionResult added if none have vetoed.

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.