info.magnolia.voting.voters
Class VoterSet

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

public class VoterSet
extends BaseVoterImpl

Can take a set of voters. The voting can be set as well as the returned level. If the level is not set (0) the votings result is returned.

Author:
pbracher

Constructor Summary
VoterSet()
           
 
Method Summary
 void addVoter(Voter voter)
           
 int getLevel()
           
 String getOp()
           
 Voter[] getVoters()
           
 Voting getVoting()
           
 boolean isNot()
           
 void setLevel(int level)
           
 void setNot(boolean not)
           
 void setOp(String op)
           
 void setVoting(Voting voting)
           
 String toString()
           
 int vote(Object value)
           
 
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

VoterSet

public VoterSet()
Method Detail

getVoters

public Voter[] getVoters()

addVoter

public void addVoter(Voter voter)

vote

public int vote(Object value)

getVoting

public Voting getVoting()

setVoting

public void setVoting(Voting voting)

isNot

public boolean isNot()

setNot

public void setNot(boolean not)

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

toString

public String toString()
Overrides:
toString in class BaseVoterImpl

getOp

public String getOp()

setOp

public void setOp(String op)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.