Package com.sun.identity.entitlement
Class ValidateResourceResult
- java.lang.Object
-
- com.sun.identity.entitlement.ValidateResourceResult
-
public class ValidateResourceResult extends Object
This class has an error code which indicates why the resource name is valid or invalid; and also a message.
-
-
Field Summary
Fields Modifier and Type Field Description static intVALID_CODE_DOES_NOT_MATCH_VALID_RESOURCESstatic intVALID_CODE_INVALIDstatic intVALID_CODE_VALID
-
Constructor Summary
Constructors Constructor Description ValidateResourceResult(int validCode, String message)Constructor.ValidateResourceResult(int validCode, String message, Object... args)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalizedMessage(Locale locale)Returns localized message.StringgetMessage()Returns message.intgetValidCode()Returns valid code.booleanisValid()Returnstrueif it is valid.
-
-
-
Field Detail
-
VALID_CODE_VALID
public static final int VALID_CODE_VALID
- See Also:
- Constant Field Values
-
VALID_CODE_INVALID
public static final int VALID_CODE_INVALID
- See Also:
- Constant Field Values
-
VALID_CODE_DOES_NOT_MATCH_VALID_RESOURCES
public static final int VALID_CODE_DOES_NOT_MATCH_VALID_RESOURCES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValidateResourceResult
public ValidateResourceResult(int validCode, String message)Constructor.- Parameters:
validCode- valid code.message- Message.
-
-
Method Detail
-
getMessage
public String getMessage()
Returns message.- Returns:
- message.
-
getLocalizedMessage
public String getLocalizedMessage(Locale locale)
Returns localized message.- Parameters:
locale- Locale.- Returns:
- localized message.
-
getValidCode
public int getValidCode()
Returns valid code.- Returns:
- valid code.
-
isValid
public boolean isValid()
Returnstrueif it is valid.- Returns:
trueif it is valid.
-
-