net.sourceforge.rssowl.controller.properties
Class PropertiesFilter

java.lang.Object
  extended by net.sourceforge.rssowl.controller.properties.PropertiesFilter

public class PropertiesFilter
extends java.lang.Object

The PropertiesFilter creates and Index over all existing Property Pages. The index contains the I18N keys of most preferences. For a given Filter value, a list of matching Property Pages is returned.

Version:
1.2.4
Author:
Benjamin Pasero

Field Summary
private  java.util.HashMap index
           
 
Constructor Summary
PropertiesFilter()
          Instantiate a new PropertiesFilter.
 
Method Summary
private  void addToIndex(java.lang.StringBuffer index, java.lang.String i18nKey)
          Adds a new Value to the Index.
private  void createIndex()
          Create the Index over all Property Pages.
private  java.util.regex.Pattern createPattern(java.lang.String str)
          Creates a regular Expression Pattern from the given Value.
 java.util.ArrayList filter(java.lang.String str)
          Filter the Index by the given Value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

private java.util.HashMap index
Constructor Detail

PropertiesFilter

public PropertiesFilter()
Instantiate a new PropertiesFilter.

Method Detail

filter

public java.util.ArrayList filter(java.lang.String str)
Filter the Index by the given Value.

Parameters:
str - The String to Filter the Property Pages.
Returns:
ArrayList Containing all matching Property Pages

addToIndex

private void addToIndex(java.lang.StringBuffer index,
                        java.lang.String i18nKey)
Adds a new Value to the Index.

Parameters:
index - A single String containing all Values.
i18nKey - The Value to add as I18N Key.

createIndex

private void createIndex()
Create the Index over all Property Pages.


createPattern

private java.util.regex.Pattern createPattern(java.lang.String str)
Creates a regular Expression Pattern from the given Value. The Pattern will use ".*" as wrapper to ensure a Match.

Parameters:
str - The Value to create a Pattern from.
Returns:
Pattern The regular Expression Pattern from the given Value


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo