org.opennms.core.soa.filter
Class PatternMatchingFilter

java.lang.Object
  extended by org.opennms.core.soa.filter.AbstractFilter
      extended by org.opennms.core.soa.filter.AttributeComparisonFilter
          extended by org.opennms.core.soa.filter.PatternMatchingFilter
All Implemented Interfaces:
Filter

public class PatternMatchingFilter
extends AttributeComparisonFilter

PatternMatchingFilter

Author:
brozow

Constructor Summary
PatternMatchingFilter(String attribute, String value)
           
 
Method Summary
static String escapeAll(String input, String chars)
           
static String toFilterMatch(Pattern pattern)
           
static Pattern toRegex(String value)
           
 String toString()
           
protected  boolean valueMatches(String value)
           
 
Methods inherited from class org.opennms.core.soa.filter.AttributeComparisonFilter
getAttribute, match
 
Methods inherited from class org.opennms.core.soa.filter.AbstractFilter
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternMatchingFilter

public PatternMatchingFilter(String attribute,
                             String value)
Method Detail

valueMatches

protected boolean valueMatches(String value)
Specified by:
valueMatches in class AttributeComparisonFilter

toString

public String toString()
Specified by:
toString in interface Filter
Specified by:
toString in class AttributeComparisonFilter

toRegex

public static Pattern toRegex(String value)

toFilterMatch

public static String toFilterMatch(Pattern pattern)

escapeAll

public static String escapeAll(String input,
                               String chars)


Copyright © 2011. All Rights Reserved.