info.magnolia.voting.voters
Class NotVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl
      extended by info.magnolia.voting.voters.AbstractBoolVoter
          extended by info.magnolia.voting.voters.NotVoter
All Implemented Interfaces:
Voter

public class NotVoter
extends AbstractBoolVoter

Does invert the boolean outcome of a voter. This is not the same thing as inverting the value (see InverseVoter)

Author:
pbracher

Constructor Summary
NotVoter()
           
 
Method Summary
protected  boolean boolVote(java.lang.Object value)
           
 AbstractBoolVoter getVoter()
           
 void setVoter(AbstractBoolVoter voter)
           
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, vote
 
Methods inherited from class info.magnolia.voting.voters.BaseVoterImpl
getName, isEnabled, setEnabled, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotVoter

public NotVoter()
Method Detail

boolVote

protected boolean boolVote(java.lang.Object value)
Specified by:
boolVote in class AbstractBoolVoter

getVoter

public AbstractBoolVoter getVoter()

setVoter

public void setVoter(AbstractBoolVoter voter)


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.