info.magnolia.dam.util
Class RegexVoter

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

public class RegexVoter
extends info.magnolia.voting.voters.AbstractBoolVoter

RegexVoter following the Voter pattern.


Constructor Summary
RegexVoter()
           
 
Method Summary
protected  boolean boolVote(Object value)
           
 String getPattern()
           
 void init()
           
 boolean isInverse()
           
 void setInverse(boolean inverse)
           
 void setPattern(String pattern)
           
 void setTrueValue(int positiveVoteValue)
           
 String toString()
           
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, 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

RegexVoter

public RegexVoter()
Method Detail

init

public void init()

setTrueValue

public void setTrueValue(int positiveVoteValue)
Overrides:
setTrueValue in class info.magnolia.voting.voters.AbstractBoolVoter

getPattern

public String getPattern()

setPattern

public void setPattern(String pattern)

isInverse

public boolean isInverse()

setInverse

public void setInverse(boolean inverse)

toString

public String toString()
Overrides:
toString in class info.magnolia.voting.voters.AbstractBoolVoter

boolVote

protected boolean boolVote(Object value)
Specified by:
boolVote in class info.magnolia.voting.voters.AbstractBoolVoter


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.