info.magnolia.voting.voters
Class BaseVoterImpl

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl
All Implemented Interfaces:
Voter
Direct Known Subclasses:
AbstractBoolVoter, IfVoter, InverseVoter, VoterSet

public abstract class BaseVoterImpl
extends java.lang.Object
implements Voter

Abstract voter. Supports the name and can be disabled.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
fgiust

Constructor Summary
BaseVoterImpl()
          Default constructor.
 
Method Summary
 java.lang.String getName()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void setName(java.lang.String name)
           
 java.lang.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

setEnabled

public void setEnabled(boolean enabled)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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