jp.go.nict.langrid.wrapper.ws_1_2.pictogramdictionary
クラス AbstractPictogramDictionaryService

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.AbstractLanguageService
              上位を拡張 jp.go.nict.langrid.wrapper.ws_1_2.pictogramdictionary.AbstractPictogramDictionaryService
すべての実装されたインタフェース:
PictogramDictionaryService

public abstract class AbstractPictogramDictionaryService
extends AbstractLanguageService
implements PictogramDictionaryService

絵文字サービスの抽象クラス。

バージョン:
$Revision: 6255 $
作成者:
$Author: Masaaki Kamiya $

フィールドの概要
 
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたフィールド
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
 
コンストラクタの概要
AbstractPictogramDictionaryService()
          引数をとらないコンストラクタ。
AbstractPictogramDictionaryService(Collection<Language> supportedLanguages)
          対応する言語の集合を引数にとるコンストラクタ。
AbstractPictogramDictionaryService(ServiceContext context, Collection<Language> supportedLanguages)
          サービスコンテキストと対応する言語の集合を引数にとるコンストラクタ。
 
メソッドの概要
protected abstract  Collection<Pictogram> doSearch(Language language, String word, MatchingMethod matchingMethod)
          単語に対応する絵文字を返す。
 String[] getSupportedMatchingMethods()
           
 Pictogram[] search(String language, String word, String matchingMethod)
          単語に対応する絵文字を検索する。
protected  void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
           
 
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguageService から継承されたメソッド
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguages
 
クラス 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
 

コンストラクタの詳細

AbstractPictogramDictionaryService

public AbstractPictogramDictionaryService()
引数をとらないコンストラクタ。


AbstractPictogramDictionaryService

public AbstractPictogramDictionaryService(Collection<Language> supportedLanguages)
対応する言語の集合を引数にとるコンストラクタ。

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

AbstractPictogramDictionaryService

public AbstractPictogramDictionaryService(ServiceContext context,
                                          Collection<Language> supportedLanguages)
サービスコンテキストと対応する言語の集合を引数にとるコンストラクタ。

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

search

public Pictogram[] search(String language,
                          String word,
                          String matchingMethod)
                   throws AccessLimitExceededException,
                          InvalidParameterException,
                          LanguageNotUniquelyDecidedException,
                          NoAccessPermissionException,
                          NoValidEndpointsException,
                          ProcessFailedException,
                          ServerBusyException,
                          ServiceNotActiveException,
                          ServiceNotFoundException,
                          UnsupportedLanguageException,
                          UnsupportedMatchingMethodException
インタフェース PictogramDictionaryService の記述:
単語に対応する絵文字を検索する。

定義:
インタフェース PictogramDictionaryService 内の search
パラメータ:
language - wordの言語
word - 絵文字を検索する単語
matchingMethod - マッチング方法(MatchingMethod列挙値)
戻り値:
絵文字の検索結果.見つからない場合空配列
例外:
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - text,languageのいずれかがnullまたは空文字列.languageがRFC3066に準拠していない
LanguageNotUniquelyDecidedException - 対応言語候補が一意に求まらない(例:languageにzhを指定したときに,対応言語にzh-Hansとzh-Hantが存在した場合)
UnsupportedLanguageException - 指定された言語はサポートされていない
UnsupportedMatchingMethodException - 指定されたマッチング方法はサポートされていない
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException - 有効なエンドポイントが無い
ProcessFailedException - 言い換え処理に失敗した
ServerBusyException - サーバが混雑していて処理が実行できない
ServiceNotActiveException - サービスはアクティブではない
ServiceNotFoundException - 指定されたサービスが見つからない

doSearch

protected abstract Collection<Pictogram> doSearch(Language language,
                                                  String word,
                                                  MatchingMethod matchingMethod)
                                           throws InvalidParameterException,
                                                  ProcessFailedException
単語に対応する絵文字を返す。存在しない場合要素数0のコレクションを返す。

パラメータ:
language - 言語
word - 単語
matchingMethod - マッチング方法
戻り値:
単語に対応する絵文字の配列
例外:
InvalidParameterException - 不正なパラメータが渡された
ProcessFailedException - 処理に失敗した

getSupportedMatchingMethods

public String[] getSupportedMatchingMethods()
                                     throws AccessLimitExceededException,
                                            NoAccessPermissionException,
                                            NoValidEndpointsException,
                                            ProcessFailedException,
                                            ServerBusyException,
                                            ServiceNotActiveException,
                                            ServiceNotFoundException
例外:
AccessLimitExceededException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException

setSupportedMatchingMethods

protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)