gov.usda.gdpc
Class FilterSingleValue

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

public final class FilterSingleValue
extends AbstractFilterValue

This is a filter value which consists of a single value.

Author:
terryc

Field Summary
 
Fields inherited from class gov.usda.gdpc.AbstractFilterValue
myProperty
 
Constructor Summary
FilterSingleValue(Property property, java.lang.Object value)
          FilterSingleValue Constructor.
 
Method Summary
 FilterValueType getType()
          Returns type of this filter value.
 java.lang.Object getValue()
          Returns the single 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

FilterSingleValue

public FilterSingleValue(Property property,
                         java.lang.Object value)
FilterSingleValue Constructor.

Parameters:
property - property associated with this value
value - value (null values are not allowed)
Method Detail

getType

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

Returns:
filter value type

getValue

public java.lang.Object getValue()
Returns the single 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