gov.usda.gdpc
Class FilterLikeValue

java.lang.Object
  extended bygov.usda.gdpc.AbstractFilterValue
      extended bygov.usda.gdpc.FilterLikeValue
All Implemented Interfaces:
FilterValue

public final class FilterLikeValue
extends AbstractFilterValue

This is a filter value which consists of a single string value which may contain the wild card(s) %, as a means of matching zero or more characters in that position.

Author:
terryc

Field Summary
 
Fields inherited from class gov.usda.gdpc.AbstractFilterValue
myProperty
 
Constructor Summary
FilterLikeValue(Property property, java.lang.String value)
          FilterLikeValue Constructor.
 
Method Summary
 FilterValueType getType()
          Returns type of this filter value.
 java.lang.String getValue()
          Gets the like value.
 boolean matches(java.util.Map properties)
          Returns whether the given properties match this filter value.
 java.lang.String toString()
          Returns the String representation of this filter value.
 
Methods inherited from class gov.usda.gdpc.AbstractFilterValue
getProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterLikeValue

public FilterLikeValue(Property property,
                       java.lang.String value)
FilterLikeValue Constructor.

Parameters:
property - property associated with this value
value - value (this can not be null)
Method Detail

getType

public FilterValueType getType()
Returns type of this filter value.

Returns:
filter value type

getValue

public java.lang.String getValue()
Gets the like value.

Returns:
value

matches

public boolean matches(java.util.Map properties)
Returns whether the given properties match this filter value.

Parameters:
properties - properties to check
Returns:
true if all properties matches

toString

public java.lang.String toString()
Returns the String representation of this filter value.

Returns:
String representation