info.magnolia.voting.voters
Class IfVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.IfVoter
- All Implemented Interfaces:
- Voter
public class IfVoter
- extends BaseVoterImpl
Conditional voter. If the "condition" voter is positive, returns the "then" voter's value,
otherwise returns the "otherwise" voter's value.
- Author:
- pbracher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfVoter
public IfVoter()
vote
public int vote(java.lang.Object value)
getCondition
public Voter getCondition()
setCondition
public void setCondition(Voter condition)
getThen
public Voter getThen()
setThen
public void setThen(Voter then)
getOtherwise
public Voter getOtherwise()
setOtherwise
public void setOtherwise(Voter otherwise)
toString
public java.lang.String toString()
- Overrides:
toString
in class BaseVoterImpl
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.