com.sun.identity.policy
クラス ValidValues

java.lang.Object
  上位を拡張 com.sun.identity.policy.ValidValues

public class ValidValues
extends Object

This class ValidValues provides search results and a error code indicating if the search was successfully or time limit exceeded or search limit exceeded.


フィールドの概要
static int SIZE_LIMIT_EXCEEDED
          Code used to indicate that the search was unsuccessful as the size limit exceeded during the search process.
static int SUCCESS
          Code used to indicate a successful search
static int TIME_LIMIT_EXCEEDED
          Code used to indicate that the search was unsuccessful as the time limit exceeded during the search process.
 
コンストラクタの概要
ValidValues(int errorCode, Set results)
          Constructs a ValidValues given errorCode and a set of values
 
メソッドの概要
 int getErrorCode()
          Returns the error code of search.
 Set getSearchResults()
          Returns the search results as a set.
 

フィールドの詳細

SUCCESS

public static final int SUCCESS
Code used to indicate a successful search

関連項目:
定数フィールド値

SIZE_LIMIT_EXCEEDED

public static final int SIZE_LIMIT_EXCEEDED
Code used to indicate that the search was unsuccessful as the size limit exceeded during the search process.

関連項目:
定数フィールド値

TIME_LIMIT_EXCEEDED

public static final int TIME_LIMIT_EXCEEDED
Code used to indicate that the search was unsuccessful as the time limit exceeded during the search process.

関連項目:
定数フィールド値
コンストラクタの詳細

ValidValues

public ValidValues(int errorCode,
                   Set results)
Constructs a ValidValues given errorCode and a set of values

パラメータ:
errorCode - error code
results - set of values to be included
関連項目:
ValidValues.SUCCESS, ValidValues.SIZE_LIMIT_EXCEEDED, ValidValues.TIME_LIMIT_EXCEEDED
メソッドの詳細

getSearchResults

public Set getSearchResults()
Returns the search results as a set.

戻り値:
set of entries matching the search criteria. Each element in the Set is a String.

getErrorCode

public int getErrorCode()
Returns the error code of search.

戻り値:
Error code of search. The possible values are SUCCESS, SIZE_LIMIT_EXCEEDED and TIME_LIMIT_EXCEEDED
関連項目:
ValidValues.SUCCESS, ValidValues.SIZE_LIMIT_EXCEEDED, ValidValues.TIME_LIMIT_EXCEEDED