|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.commons.modules.glossary.morphService.MorphologicalServiceLocalImpl
public class MorphologicalServiceLocalImpl
Description:
Simulates a morphological Service and delivers the reply from a local XML-file.
It's used only for testing! This is why some return values are "hard coded".
Initial Date: 7.12.2008
| Field Summary |
|---|
| Fields inherited from interface org.olat.core.commons.modules.glossary.morphService.MorphologicalService |
|---|
STATUS_ERROR, STATUS_GUESSED, STATUS_KNOWN |
| Constructor Summary | |
|---|---|
MorphologicalServiceLocalImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
assumePartOfSpeech(java.lang.String glossTerm)
returns part-of-speech for a given word or wordgroup |
java.util.ArrayList<java.lang.String> |
getFlexions(java.lang.String word)
same as getFlexions(String partOfSpeech, String word) but with automatic assumption of partofspeech |
java.util.ArrayList<java.lang.String> |
getFlexions(java.lang.String partOfSpeech,
java.lang.String word)
returns a list of Flexions found for a given word. |
java.lang.String |
getMorphServiceDescriptor()
get service name as description in guis |
java.lang.String |
getMorphServiceIdentifier()
get unique identifier to store with glossary-config |
java.lang.String |
getReplyStatus()
Get the Status from the reply arrived from the morphological service status can either be: - known Flexions were found in Lexicon - guessed Flexions were generated with heuristics - error Couldn't find anything or service error / unavailable |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MorphologicalServiceLocalImpl()
| Method Detail |
|---|
public java.util.ArrayList<java.lang.String> getFlexions(java.lang.String partOfSpeech,
java.lang.String word)
MorphologicalService
getFlexions in interface MorphologicalServicepartOfSpeech - possible values, see: assumePartOfSpeech()word - a single word or a wordgroup
org.olat.core.commons.modules.glossary.morphService.FlexionServiceClient#getFlexions(java.lang.String, java.lang.String)public java.lang.String assumePartOfSpeech(java.lang.String glossTerm)
MorphologicalService
assumePartOfSpeech in interface MorphologicalServiceorg.olat.core.commons.modules.glossary.morphService.FlexionServiceClient#assumePartOfSpeech(java.lang.String)public java.util.ArrayList<java.lang.String> getFlexions(java.lang.String word)
MorphologicalService
getFlexions in interface MorphologicalServiceorg.olat.core.commons.modules.glossary.morphService.FlexionServiceClient#getFlexions(java.lang.String)public java.lang.String getReplyStatus()
MorphologicalService
getReplyStatus in interface MorphologicalServiceorg.olat.core.commons.modules.glossary.morphService.FlexionServiceClient#getReplyStatus()public java.lang.String getMorphServiceDescriptor()
MorphologicalService
getMorphServiceDescriptor in interface MorphologicalServiceorg.olat.core.commons.modules.glossary.morphService.FlexionServiceManager#getFlexionServiceDescriptor()public java.lang.String getMorphServiceIdentifier()
MorphologicalService
getMorphServiceIdentifier in interface MorphologicalServiceorg.olat.core.commons.modules.glossary.morphService.FlexionServiceManager#getFlexionServiceIdentifier()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||