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(java.lang.Object value)
           
 java.lang.String getProperty()
           
 java.lang.String getValue()
           
 void setProperty(java.lang.String property)
           
 void setValue(java.lang.String value)
           
 java.lang.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(java.lang.Object value)
Specified by:
boolVote in class AbstractBoolVoter

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String property)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

toString

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


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