org.fuin.utils4j.filter
Class TokenPropertyFilter

java.lang.Object
  extended by org.fuin.utils4j.filter.PropertyFilter
      extended by org.fuin.utils4j.filter.TokenPropertyFilter
All Implemented Interfaces:
Filter

public class TokenPropertyFilter
extends PropertyFilter

Defines a filter on a String property.


Constructor Summary
TokenPropertyFilter(java.lang.String newPropertyName, java.lang.String constValue, java.lang.String newSeparators)
          Constructor with a property, a constant value and separators.
 
Method Summary
 boolean complies(java.lang.Object obj)
          Checks if the argument complies with the condition of the filter.
 java.lang.String getConstValue()
          Returns the constant value any value is compared with.
 java.lang.String getSeparators()
          Returns a string with one or more separators.
 java.lang.String toString()
          
 
Methods inherited from class org.fuin.utils4j.filter.PropertyFilter
getProperty, getPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenPropertyFilter

public TokenPropertyFilter(java.lang.String newPropertyName,
                           java.lang.String constValue,
                           java.lang.String newSeparators)
Constructor with a property, a constant value and separators.

Parameters:
newPropertyName - Name of the property.
constValue - Value to compare with.
newSeparators - Separators
Method Detail

complies

public final boolean complies(java.lang.Object obj)
Checks if the argument complies with the condition of the filter.

Parameters:
obj - Object to be tested for compliance
Returns:
If object complies TRUE else FALSE is returned.

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object

getConstValue

public final java.lang.String getConstValue()
Returns the constant value any value is compared with.

Returns:
String value.

getSeparators

public final java.lang.String getSeparators()
Returns a string with one or more separators.

Returns:
Separators.


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.