info.magnolia.voting.voters
Class PropertyVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl
      extended by info.magnolia.voting.voters.AbstractBoolVoter
          extended by info.magnolia.voting.voters.PropertyVoter
All Implemented Interfaces:
Voter

public class PropertyVoter
extends AbstractBoolVoter

Checks if the named Magnolia property has the expected value.

Parameters (as Magnolia's configuration nodes):

Author:
pbracher

Constructor Summary
PropertyVoter()
           
 
Method Summary
protected  boolean boolVote(Object value)
           
 String getProperty()
           
 String getValue()
           
 void setProperty(String property)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, vote
 
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

PropertyVoter

public PropertyVoter()
Method Detail

boolVote

protected boolean boolVote(Object value)
Specified by:
boolVote in class AbstractBoolVoter

getProperty

public String getProperty()

setProperty

public void setProperty(String property)

getValue

public String getValue()

setValue

public void setValue(String value)

toString

public String toString()
Overrides:
toString in class AbstractBoolVoter


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.