jp.go.nict.langrid.wrapper.ws_1_2.paralleltext
クラス AbstractMetadataForParallelTextService

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.AbstractMetadataForParallelTextService
すべての実装されたインタフェース:
MetadataForParallelTextService

public abstract class AbstractMetadataForParallelTextService
extends AbstractLanguagePairService
implements MetadataForParallelTextService

用例対訳用メタデータサービスの基底クラスです.

バージョン:
$Revision: 5678 $
作成者:
$Author: Takao Nakaguchi $

フィールドの概要
 
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたフィールド
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
 
コンストラクタの概要
AbstractMetadataForParallelTextService()
          コンストラクタ。
AbstractMetadataForParallelTextService(Collection<LanguagePair> supportedPairs)
          コンストラクタ。
AbstractMetadataForParallelTextService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
          コンストラクタ。
 
メソッドの概要
protected abstract  String[] doGetMetadata(String Id)
          メタデータを取得する。
protected abstract  String[] doGetMetadataSchema()
          メタデータのスキーマを取得する。
protected abstract  String[] doSearchCandidatesWithMetadata(String query, MatchingMethod matchingMethod)
          メタデータを元に検索を行う。
 String[] getMetadata(String Id)
          指定した用例のIDに関連付けられたメタデータを取得する。
 String[] getMetadataSchema()
          どのようなメタデータが付与されているのかが分かるようにメタデータのスキーマを返す。
 String[] searchCandidatesWithMetadata(String query, String matchingMethod)
          指定されたqueryとマッチング方法にマッチしたメタデータが付与された用例対訳のIDの一覧を返す。
protected  void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
          対応する検索方法を設定します.
 
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguagePairService から継承されたメソッド
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
 
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたメソッド
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException
 
クラス jp.go.nict.langrid.servicecontainer.service.AbstractService から継承されたメソッド
getComponentServiceFactory, setComponentServiceFactory
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractMetadataForParallelTextService

public AbstractMetadataForParallelTextService()
コンストラクタ。


AbstractMetadataForParallelTextService

public AbstractMetadataForParallelTextService(Collection<LanguagePair> supportedPairs)
コンストラクタ。 対応する言語対の集合を引数にとります。

パラメータ:
supportedPairs - 対応する言語対の集合

AbstractMetadataForParallelTextService

public AbstractMetadataForParallelTextService(ServiceContext serviceContext,
                                              Collection<LanguagePair> supportedPairs)
コンストラクタ。 対応する言語対とサービスコンテキストを引数にとる。

パラメータ:
serviceContext - サービスコンテキスト
supportedPairs - 対応する言語対
メソッドの詳細

getMetadata

public String[] getMetadata(String Id)
                     throws AccessLimitExceededException,
                            InvalidParameterException,
                            LanguagePairNotUniquelyDecidedException,
                            NoAccessPermissionException,
                            NoValidEndpointsException,
                            ProcessFailedException,
                            ServerBusyException,
                            ServiceNotActiveException,
                            ServiceNotFoundException,
                            UnsupportedLanguagePairException
インタフェース MetadataForParallelTextService の記述:
指定した用例のIDに関連付けられたメタデータを取得する。

定義:
インタフェース MetadataForParallelTextService 内の getMetadata
パラメータ:
Id - 用例のID
戻り値:
検索結果が格納された配列。存在しない場合空配列
例外:
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException - 複数の言語対候補が見つかった
UnsupportedLanguagePairException - 指定された言語対はサポートされていない
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException - 有効なエンドポイントが無い
ProcessFailedException - 検索処理に失敗した
ServerBusyException - サーバが混雑していて処理が実行できない
ServiceNotActiveException - サービスはアクティブではない
ServiceNotFoundException - 指定されたサービスが見つからない

getMetadataSchema

public String[] getMetadataSchema()
                           throws AccessLimitExceededException,
                                  InvalidParameterException,
                                  LanguagePairNotUniquelyDecidedException,
                                  NoAccessPermissionException,
                                  NoValidEndpointsException,
                                  ProcessFailedException,
                                  ServerBusyException,
                                  ServiceNotActiveException,
                                  ServiceNotFoundException,
                                  UnsupportedLanguagePairException
インタフェース MetadataForParallelTextService の記述:
どのようなメタデータが付与されているのかが分かるようにメタデータのスキーマを返す。

定義:
インタフェース MetadataForParallelTextService 内の getMetadataSchema
戻り値:
検索結果が格納された配列。存在しない場合空配列
例外:
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException - 複数の言語対候補が見つかった
UnsupportedLanguagePairException - 指定された言語対はサポートされていない
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException - 有効なエンドポイントが無い
ProcessFailedException - 検索処理に失敗した
ServerBusyException - サーバが混雑していて処理が実行できない
ServiceNotActiveException - サービスはアクティブではない
ServiceNotFoundException - 指定されたサービスが見つからない

searchCandidatesWithMetadata

public String[] searchCandidatesWithMetadata(String query,
                                             String matchingMethod)
                                      throws AccessLimitExceededException,
                                             InvalidParameterException,
                                             LanguagePairNotUniquelyDecidedException,
                                             NoAccessPermissionException,
                                             NoValidEndpointsException,
                                             ProcessFailedException,
                                             ServerBusyException,
                                             ServiceNotActiveException,
                                             ServiceNotFoundException,
                                             UnsupportedLanguagePairException
インタフェース MetadataForParallelTextService の記述:
指定されたqueryとマッチング方法にマッチしたメタデータが付与された用例対訳のIDの一覧を返す。

定義:
インタフェース MetadataForParallelTextService 内の searchCandidatesWithMetadata
パラメータ:
query - メタデータの検索クエリ
matchingMethod - 検索方法
戻り値:
検索結果が格納された配列。存在しない場合空配列
例外:
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException - 複数の言語対候補が見つかった
UnsupportedLanguagePairException - 指定された言語対はサポートされていない
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException - 有効なエンドポイントが無い
ProcessFailedException - 検索処理に失敗した
ServerBusyException - サーバが混雑していて処理が実行できない
ServiceNotActiveException - サービスはアクティブではない
ServiceNotFoundException - 指定されたサービスが見つからない

doGetMetadata

protected abstract String[] doGetMetadata(String Id)
                                   throws InvalidParameterException,
                                          ProcessFailedException
メタデータを取得する。

パラメータ:
Id - メタデータID
戻り値:
メタデータ
例外:
InvalidParameterException - 不正なパラメータが渡された
ProcessFailedException - 処理に失敗した

doGetMetadataSchema

protected abstract String[] doGetMetadataSchema()
                                         throws ProcessFailedException
メタデータのスキーマを取得する。

戻り値:
スキーマ
例外:
ProcessFailedException - 処理に失敗した

doSearchCandidatesWithMetadata

protected abstract String[] doSearchCandidatesWithMetadata(String query,
                                                           MatchingMethod matchingMethod)
                                                    throws InvalidParameterException,
                                                           ProcessFailedException
メタデータを元に検索を行う。

パラメータ:
query - クエリ
matchingMethod - マッチング方法
例外:
InvalidParameterException - 不正なパラメータが渡された
ProcessFailedException - 処理に失敗した

setSupportedMatchingMethods

protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
対応する検索方法を設定します.

パラメータ:
supportedMatchingMethods - 対応する検索方法の集合