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 44893 2011-05-10 07:33:22Z dlipp $
- Author:
- philipp
AbstractBoolVoter
public AbstractBoolVoter()
vote
public int vote(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(Object value)
isNot
public boolean isNot()
setNot
public void setNot(boolean not)
toString
public String toString()
- Overrides:
toString
in class BaseVoterImpl
getLevel
public int getLevel()
setLevel
public void setLevel(int level)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.