|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.text.filter.InitialArticleWord
public abstract class InitialArticleWord
Abstract class for implementing initial article word filters Allows you to create new classes with their own rules for mapping languages to article word lists.
| Constructor Summary | |
|---|---|
protected |
InitialArticleWord()
|
protected |
InitialArticleWord(boolean stripWord)
|
| Method Summary | |
|---|---|
String |
filter(String str)
When no language is passed, use null and let implementation decide what to do |
String |
filter(String str,
String lang)
Do an initial definite/indefinite article filter on the passed string. |
protected abstract String[] |
getArticleWords(String lang)
Abstract method to get the list of words to use in the initial word filter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InitialArticleWord(boolean stripWord)
protected InitialArticleWord()
| Method Detail |
|---|
public String filter(String str)
filter in interface TextFilter
public String filter(String str,
String lang)
filter in interface TextFilterstr - The string to parselang - The language of the passed string
protected abstract String[] getArticleWords(String lang)
lang - The language to retrieve article words for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||