info.magnolia.voting.voters
Class BaseVoterImpl<T>

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl<T>
Type Parameters:
T - the type of object passed to vote
All Implemented Interfaces:
Voter<T>
Direct Known Subclasses:
AbstractBoolVoter, IfVoter, InverseVoter, VoterSet

public abstract class BaseVoterImpl<T>
extends Object
implements Voter<T>

Abstract voter. Supports the name and can be disabled.


Constructor Summary
BaseVoterImpl()
          Default constructor.
 
Method Summary
 String getName()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.voting.Voter
vote
 

Constructor Detail

BaseVoterImpl

public BaseVoterImpl()
Default constructor.

Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Voter<T>

setEnabled

public void setEnabled(boolean enabled)

getName

public String getName()

setName

public void setName(String name)

toString

public String toString()
Overrides:
toString in class Object


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