net.sourceforge.java.feednread.backend.model.watchestree
Class WatchSettingsEntry

java.lang.Object
  extended bynet.sourceforge.java.feednread.backend.model.watchestree.WatchSettingsEntry

public class WatchSettingsEntry
extends Object

Represents a detail unit within a WatchSettings object.

Author:
Sebastian Machhausen

Field Summary
private  boolean caseSensitive
           true if case sensitive; false if case insensitive matching
private  String keyword
           The keyword to match
private  boolean wholeWord
           true if only whole words have to be matched; false otherwise
 
Constructor Summary
WatchSettingsEntry(String keyword, boolean caseSensitive, boolean wholeWord)
           Creates a new WatchSettingsEntry with the specified parameters which define the matching behaviour.
 
Method Summary
 String getKeyword()
           Gets the keyword of this WatchSettingsEntry.
 boolean isCaseSensitive()
           Returns true indicates case sensitive, false case insensitive matching.
 boolean isWholeWord()
           Returns true if only whole words have to be matched.
 void setCaseSensitive(boolean caseSensitive)
           Sets the case sensitive matching of this WatchSettingsEntry where true indicates case sensitive, false case insensitive matching.
 void setKeyword(String keyword)
           Sets the keyword of this WatchSettingsEntry.
 void setWholeWord(boolean wholeWord)
           Sets the whole word matching of this WatchSettingsEntry.
 String toString()
           Converts this WatchSettingsEntry to a textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keyword

private String keyword

The keyword to match


caseSensitive

private boolean caseSensitive

true if case sensitive; false if case insensitive matching


wholeWord

private boolean wholeWord

true if only whole words have to be matched; false otherwise

Constructor Detail

WatchSettingsEntry

public WatchSettingsEntry(String keyword,
                          boolean caseSensitive,
                          boolean wholeWord)

Creates a new WatchSettingsEntry with the specified parameters which define the matching behaviour.

Parameters:
keyword - the keyword to match
caseSensitive - true for case sensitive; false for case insensitive matching
wholeWord - true to only match whole words; false otherwise
Method Detail

isCaseSensitive

public boolean isCaseSensitive()

Returns true indicates case sensitive, false case insensitive matching.

Returns:
true if case sensitive; false if case insensitive matching
See Also:
setCaseSensitive(boolean)

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)

Sets the case sensitive matching of this WatchSettingsEntry where true indicates case sensitive, false case insensitive matching.

Parameters:
caseSensitive - true for case sensitive; false for case insensitive matching
See Also:
isCaseSensitive()

getKeyword

public String getKeyword()

Gets the keyword of this WatchSettingsEntry.

Returns:
the keyword of this WatchSettingsEntry
See Also:
setKeyword(String)

setKeyword

public void setKeyword(String keyword)

Sets the keyword of this WatchSettingsEntry.

Parameters:
keyword - the keyword of this WatchSettingsEntry
See Also:
getKeyword()

isWholeWord

public boolean isWholeWord()

Returns true if only whole words have to be matched.

Returns:
true if only whole words have to be matched; false otherwise
See Also:
setWholeWord(boolean)

setWholeWord

public void setWholeWord(boolean wholeWord)

Sets the whole word matching of this WatchSettingsEntry.

Parameters:
wholeWord - true to only match whole words; false otherwise
See Also:
isWholeWord()

toString

public String toString()

Converts this WatchSettingsEntry to a textual representation. Returns the keyword.

Returns:
the textual representation of this WatchSettingsEntry