org.araneaframework.uilib.list.util.like
Class BaseWildcardHandler

java.lang.Object
  extended by org.araneaframework.uilib.list.util.like.BaseWildcardHandler
All Implemented Interfaces:
Serializable, WildcardHandler
Direct Known Subclasses:
AutomaticWildcardHandler, DefaultWildcardHandler, RegExpWildcardHandler

public abstract class BaseWildcardHandler
extends Object
implements WildcardHandler, Serializable

Base implementation of WildcardHandler.

Author:
Rein Raudjärv
See Also:
WildcardHandler, Serialized Form

Field Summary
protected  int endsWith
           
protected  int startsWith
           
 
Fields inherited from interface org.araneaframework.uilib.list.util.like.WildcardHandler
ANY_CHAR_WILDCARD, ANY_STRING_WILDCARD, NO_WILDCARD
 
Constructor Summary
BaseWildcardHandler()
           
 
Method Summary
 int getEndsWith()
          Returns which wildcard the Like pattern currently ends with.
 int getStartsWith()
          Returns which wildcard the Like pattern currently starts with.
 void setEndsWith(int endsWith)
          Must be set as which wildcard the Like pattern ends with
 void setStartsWith(int startsWith)
          Must be set as which wildcard the Like pattern starts with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.araneaframework.uilib.list.util.like.WildcardHandler
newInstance, shouldEndWith, shouldStartWith
 

Field Detail

startsWith

protected int startsWith

endsWith

protected int endsWith
Constructor Detail

BaseWildcardHandler

public BaseWildcardHandler()
Method Detail

setStartsWith

public void setStartsWith(int startsWith)
Description copied from interface: WildcardHandler
Must be set as which wildcard the Like pattern starts with.

Specified by:
setStartsWith in interface WildcardHandler
Parameters:
startsWith - Like pattern wildcard.

setEndsWith

public void setEndsWith(int endsWith)
Description copied from interface: WildcardHandler
Must be set as which wildcard the Like pattern ends with

Specified by:
setEndsWith in interface WildcardHandler
Parameters:
endsWith - Like pattern wildcard.

getEndsWith

public int getEndsWith()
Description copied from interface: WildcardHandler
Returns which wildcard the Like pattern currently ends with.

Specified by:
getEndsWith in interface WildcardHandler
Returns:
Like pattern wildcard.

getStartsWith

public int getStartsWith()
Description copied from interface: WildcardHandler
Returns which wildcard the Like pattern currently starts with.

Specified by:
getStartsWith in interface WildcardHandler
Returns:
Like pattern wildcard.