|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.nict.langrid.servicecontainer.service.AbstractService jp.go.nict.langrid.wrapper.ws_1_2.AbstractService jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguagePairService jp.go.nict.langrid.wrapper.ws_1_2.paralleltext.AbstractParallelTextService
public abstract class AbstractParallelTextService
用例対訳サービスの基底クラスです。
フィールドの概要 |
---|
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたフィールド |
---|
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS |
コンストラクタの概要 | |
---|---|
AbstractParallelTextService()
コンストラクタ。 |
|
AbstractParallelTextService(Collection<LanguagePair> supportedPairs)
コンストラクタ。 |
|
AbstractParallelTextService(ServiceContext serviceContext)
サービスコンテキストを引数にとるコンストラクタ。 |
|
AbstractParallelTextService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs)
コンストラクタ。 |
メソッドの概要 | |
---|---|
protected abstract Collection<ParallelText> |
doSearch(Language sourceLang,
Language targetLang,
String source,
MatchingMethod matchingMethod)
検索を行う。 |
String[] |
getSupportedMatchingMethods()
|
protected LanguagePair |
getValidLanguagePair(String parameterName1,
String lang1,
String parameterName2,
String lang2)
|
protected MatchingMethod |
getValidMatchingMethod(String parameterName,
String matchingMethod)
|
ParallelText[] |
search(String sourceLang,
String targetLang,
String source,
String matchingMethod)
指定された検索語、マッチング方法で用例対訳の検索を行う。 |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
|
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguagePairService から継承されたメソッド |
---|
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs |
クラス jp.go.nict.langrid.servicecontainer.service.AbstractService から継承されたメソッド |
---|
getComponentServiceFactory, setComponentServiceFactory |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public AbstractParallelTextService()
public AbstractParallelTextService(ServiceContext serviceContext)
serviceContext
- サービスコンテキストpublic AbstractParallelTextService(Collection<LanguagePair> supportedPairs)
supportedPairs
- 対応する言語対の集合public AbstractParallelTextService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
serviceContext
- サービスコンテキストsupportedPairs
- 対応する言語対メソッドの詳細 |
---|
public ParallelText[] search(String sourceLang, String targetLang, String source, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
ParallelTextService
の記述:
ParallelTextService
内の search
sourceLang
- 元言語。RFC3066準拠targetLang
- 対訳を探す言語。RFC3066準拠source
- 対訳を探す文章matchingMethod
- 検索方法
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException
- 複数の言語対候補が見つかった
UnsupportedLanguagePairException
- 指定された言語対はサポートされていない
UnsupportedMatchingMethodException
- 指定されたマッチング方法はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないprotected abstract Collection<ParallelText> doSearch(Language sourceLang, Language targetLang, String source, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
sourceLang
- 元言語targetLang
- 対象言語source
- 検索するキーワードmatchingMethod
- マッチング方法
InvalidParameterException
- 不正なパラメータが渡された
ProcessFailedException
- 処理に失敗したpublic String[] getSupportedMatchingMethods() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
AccessLimitExceededException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
protected LanguagePair getValidLanguagePair(String parameterName1, String lang1, String parameterName2, String lang2) throws LanguagePairNotUniquelyDecidedException, UnsupportedLanguagePairException, InvalidParameterException
LanguagePairNotUniquelyDecidedException
UnsupportedLanguagePairException
InvalidParameterException
protected MatchingMethod getValidMatchingMethod(String parameterName, String matchingMethod) throws InvalidParameterException
InvalidParameterException
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |