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

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

public class AutomaticWildcardHandler
extends BaseWildcardHandler

Automatic implementation of WildcardHandler. Wildcard is added at the start if there was no wildcard at the end and it is added at the end if there was no wildcard at the start.

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

Field Summary
 
Fields inherited from class org.araneaframework.uilib.list.util.like.BaseWildcardHandler
endsWith, startsWith
 
Fields inherited from interface org.araneaframework.uilib.list.util.like.WildcardHandler
ANY_CHAR_WILDCARD, ANY_STRING_WILDCARD, NO_WILDCARD
 
Constructor Summary
AutomaticWildcardHandler()
           
 
Method Summary
 WildcardHandler newInstance()
          Returns new instance of the same class.
 int shouldEndWith()
          Returns which wildcard the Like pattern should end with.
 int shouldStartWith()
          Returns which wildcard the Like pattern should start with.
 
Methods inherited from class org.araneaframework.uilib.list.util.like.BaseWildcardHandler
getEndsWith, getStartsWith, setEndsWith, setStartsWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticWildcardHandler

public AutomaticWildcardHandler()
Method Detail

shouldStartWith

public int shouldStartWith()
Description copied from interface: WildcardHandler
Returns which wildcard the Like pattern should start with.

Returns:
Like pattern wildcard.

shouldEndWith

public int shouldEndWith()
Description copied from interface: WildcardHandler
Returns which wildcard the Like pattern should end with.

Returns:
Like pattern wildcard.

newInstance

public WildcardHandler newInstance()
Description copied from interface: WildcardHandler
Returns new instance of the same class.

Returns:
new instance of the same class.