info.magnolia.voting.voters
Class AbstractBoolVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
- All Implemented Interfaces:
- Voter
- Direct Known Subclasses:
- AuthenticatedVoter, BasePatternVoter, DelegateVoter, DontDispatchOnForwardAttributeVoter, ExtensionVoter, FalseVoter, ForwardVoter, NotVoter, OnAdminVoter, PropertyVoter, RequestHasParametersVoter, ResponseContentTypeVoter, TrueVoter, UserAgentVoter
public abstract class AbstractBoolVoter
- extends BaseVoterImpl
Used to create boolean voters which can't return integer values. You can
stear the returned values by setting the trueValue and falseValue. To inverse
the result of the boolVote method use the not property.
- Version:
- $Id: AbstractBoolVoter.java 41137 2011-01-06 18:19:25Z gjoseph $
- Author:
- philipp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractBoolVoter
public AbstractBoolVoter()
vote
public int vote(java.lang.Object value)
getFalseValue
public int getFalseValue()
setFalseValue
public void setFalseValue(int negativeVoteValue)
getTrueValue
public int getTrueValue()
setTrueValue
public void setTrueValue(int positiveVoteValue)
boolVote
protected abstract boolean boolVote(java.lang.Object value)
isNot
public boolean isNot()
setNot
public void setNot(boolean not)
toString
public java.lang.String toString()
- Overrides:
toString
in class BaseVoterImpl
getLevel
public int getLevel()
setLevel
public void setLevel(int level)
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.