TextFiltering Question

View: New views
2 Messages — Rating Filter:   Alert me  

TextFiltering Question

by srinivasan_pavan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

  I have had a look at the excellent screencasts for filtering ,sorting etc and also had a look at the api.
After  having a close look at the textmatcher & textmatcher editor class ,i have a question

 If i have to implement a text searching functionality where i have to provide
  a) (contains/startswith) +(case insensitive/sensitive) search
  b) regex search

Would a good approach be extending Textmatcher or TextSearchStrategy adding those extra modes
(it seems the TextSearchStrategy is only private accesible & very closed tied to theTextmatcher  ) ,
OR  instead implement my own matchers for a) & b) and have my own abstractmatchereditor.



Regards,
Pavan Kumar

Parent Message unknown Re: TextFiltering Question

by Holger Brands :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Pavan,

regex search is supported by using the mode
TextMatcherEditor#REGULAR_EXPRESSION, which is available
in the latest build of Glazed Lists:
https://glazedlists.dev.java.net/servlets/ProjectDocumentList?folderID=3916&expandFolder=3916&folderID=0

You would only have to implement the case sensitive search
yourself - if you really need it.

You could implement the appropriate TextSearchStrategies
and a TextSearchStrategy.Factory. See
TextMatcherEditor.IDENTICAL_STRATEGY
for an example.
You should then set your custom TextSearchStrategy.Factory on
your TextMatcherEditor.

Hope this helps,
Holger

>
> Hi,
>
>   I have had a look at the excellent screencasts for filtering ,sorting etc
> and also had a look at the api.
> After  having a close look at the textmatcher & textmatcher editor class ,i
> have a question
>
>  If i have to implement a text searching functionality where i have to
> provide
>   a) (contains/startswith) +(case insensitive/sensitive) search
>   b) regex search
>
> Would a good approach be extending Textmatcher or TextSearchStrategy adding
> those extra modes
> (it seems the TextSearchStrategy is only private accesible & very closed
> tied to theTextmatcher  ) ,
> OR  instead implement my own matchers for a) & b) and have my own
> abstractmatchereditor.
>
>
>
> Regards,
> Pavan Kumar
> --
> View this message in context: http://www.nabble.com/TextFiltering-Question-tp17707147p17707147.html
> Sent from the GlazedLists - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price