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()
           
 java.lang.String getOp()
           
 Voter[] getVoters()
           
 Voting getVoting()
           
 boolean isNot()
           
 void setLevel(int level)
           
 void setNot(boolean not)
           
 void setOp(java.lang.String op)
           
 void setVoting(Voting voting)
           
 java.lang.String toString()
           
 int vote(java.lang.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(java.lang.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 java.lang.String toString()
Overrides:
toString in class BaseVoterImpl

getOp

public java.lang.String getOp()

setOp

public void setOp(java.lang.String op)


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