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
IfVoter
public IfVoter()
vote
public int vote(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 String toString()
- Overrides:
toString
in class BaseVoterImpl
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.