| java.lang.Object org.jicarilla.lang.StringSelector
StringSelector | public class StringSelector implements CriterionExposingSelector(Code) | | A
Selector which matches the string representation of an object
against the provided string.
author: Leo Simons version: $Id: StringSelector.java,v 1.1 2004/03/23 13:37:58 lsimons Exp $ |
Field Summary | |
final protected boolean | m_ignoreCase Whether to ignore case in comparisons. | final protected String | m_string The string to compare against. |
Constructor Summary | |
public | StringSelector(String string) Create a new instance that matches against the specified string while
not ignoring case. | public | StringSelector(String string, boolean ignoreCase) Create a new instance that matches against the specified string. |
m_ignoreCase | final protected boolean m_ignoreCase(Code) | | Whether to ignore case in comparisons.
|
m_string | final protected String m_string(Code) | | The string to compare against.
|
StringSelector | public StringSelector(String string)(Code) | | Create a new instance that matches against the specified string while
not ignoring case.
Parameters: string - the string to match against |
StringSelector | public StringSelector(String string, boolean ignoreCase)(Code) | | Create a new instance that matches against the specified string.
Parameters: string - the string to match against Parameters: ignoreCase - whether to ignore case |
hashCode | public int hashCode()(Code) | | |
select | public boolean select(Object object)(Code) | | Match the provided parameter against the string of this selector.
Parameters: object - the object to test true if the object is selected, false otherwise |
|
|