|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextmaven.configuration.DictionaryProxy
Dictionary class holding reference to dictionary instance as string id.
Constructor Summary | |
DictionaryProxy()
|
Method Summary | |
void |
close()
Performs close operations on the source. |
boolean |
containsKey(java.lang.String key)
Checks whether a key is contained in the dictionary. |
java.lang.String |
getDescription()
Returns description |
java.lang.String |
getId()
Returns dictionary id |
java.lang.String |
getLanguage()
|
java.lang.String |
getName()
|
java.lang.String |
getRefId()
|
java.util.Iterator |
keys()
Returns all keys as specified in dictionary. |
java.util.Iterator |
keys(java.lang.String word)
Returns the keys which would be looked up when accessing the dictionary with the specified word. |
java.util.Iterator |
keysWithPrefix(java.lang.String prefix)
Returns all keys starting with the specified prefix |
void |
open()
Opens connection to datasource |
void |
setDescription()
|
void |
setDescription(java.lang.String description)
Sets description |
void |
setId(java.lang.String id)
Sets dictionary id |
void |
setLanguage(java.lang.String language)
Sets input language |
void |
setRefId(java.lang.String refId)
|
java.util.Iterator |
translations()
Returns all translations available in the dictionary. |
java.util.Iterator |
translations(java.lang.String word)
Retrieves available translations for a given word. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DictionaryProxy()
Method Detail |
public java.lang.String getRefId()
public void setRefId(java.lang.String refId)
refId
- The refId to set.public java.lang.String getName()
public java.lang.String getId()
IBaseDictionary
getId
in interface IBaseDictionary
public void open()
IBaseDictionary
open
in interface IBaseDictionary
public void close()
IBaseDictionary
close
in interface IBaseDictionary
public void setDescription(java.lang.String description)
IBaseDictionary
setDescription
in interface IBaseDictionary
description
- public java.lang.String getDescription()
IBaseDictionary
getDescription
in interface IBaseDictionary
public void setId(java.lang.String id)
IBaseDictionary
setId
in interface IBaseDictionary
id
- public void setLanguage(java.lang.String language)
IBaseDictionary
setLanguage
in interface IBaseDictionary
language
- public java.lang.String getLanguage()
getLanguage
in interface IBaseDictionary
public void setDescription()
public java.util.Iterator translations(java.lang.String word)
IDictionary
The word is retrieved from the dictionary as passed in as parameter. If no translation is found, an empty iterator.
translations
in interface IDictionary
word
- word to retrieve
Translation
public java.util.Iterator translations()
IDictionary
translations
in interface IDictionary
Translation
public boolean containsKey(java.lang.String key)
IDictionary
containsKey
in interface IDictionary
key
- word to lookup
public java.util.Iterator keys()
IDictionary
keys
in interface IDictionary
public java.util.Iterator keys(java.lang.String word)
IDictionary
keys
in interface IDictionary
word
- word to be used for lookup
public java.util.Iterator keysWithPrefix(java.lang.String prefix)
IDictionary
keysWithPrefix
in interface IDictionary
prefix
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |