Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policy.validation
Interface IValidationError

All Superinterfaces:
Serializable
All Known Implementing Classes:
ValidationError

public interface IValidationError
extends Serializable

Nested Class Summary
static class IValidationError.VALIDATION_MSG_LEVEL_ENUM
          Validation Message Level "ERROR" and "WARNING"

 

Field Summary
static String GENERIC_ERROR_CODE
          Generic Validation error code Can be used when no suitable error code is found
static String VALIDATION_MSG_LEVEL_ERROR
           
static String VALIDATION_MSG_LEVEL_WARNING
           

 

Method Summary
 String getErrorCode()
          return error code for this error Error Code is used for purposes of internationalization of error messages.
 String getErrorContext()
          Return the error context.
 IValidationError.VALIDATION_MSG_LEVEL_ENUM getErrorLevel()
          Return the level of the Error Message - supported levels are ERROR and WARNING
 String getErrorMessage()
          Get the error message.
 String getErrorMessage(Locale locale)
          Get the localized error message.
 ResourceBundle getResourceBundle(Locale locale)
          Get Resource Bundle Pass null to get the default resource bundle.
 void setErrorCode(String code)
          Set error code for this error Error Code is used for purposes of internationalization of error messages.
 void setErrorMessage(String message)
           
 void setResourceBundle(String bundle)
          Set Resource Bundle

 

Field Detail

VALIDATION_MSG_LEVEL_ERROR

static final String VALIDATION_MSG_LEVEL_ERROR

VALIDATION_MSG_LEVEL_WARNING

static final String VALIDATION_MSG_LEVEL_WARNING

GENERIC_ERROR_CODE

static final String GENERIC_ERROR_CODE
Generic Validation error code Can be used when no suitable error code is found
See Also:
Constant Field Values

Method Detail

getErrorCode

String getErrorCode()
return error code for this error Error Code is used for purposes of internationalization of error messages. Use of Error Codes is the recommended approach.
Returns:
Error code for this Validation error

setErrorCode

void setErrorCode(String code)
Set error code for this error Error Code is used for purposes of internationalization of error messages. Use of Error Codes is the recommended approach.
Parameters:
Error - Code to be set

getErrorMessage

String getErrorMessage()
Get the error message.

getErrorMessage

String getErrorMessage(Locale locale)
Get the localized error message.

setErrorMessage

void setErrorMessage(String message)
Parameters:
message - Validation Error message

getErrorContext

String getErrorContext()
Return the error context. The error context captures sufficient context information as to where the error occurred to enable, policy authors to fix the validation error
Returns:
String representation of the context. Will return null if no error context is provided

getErrorLevel

IValidationError.VALIDATION_MSG_LEVEL_ENUM getErrorLevel()
Return the level of the Error Message - supported levels are ERROR and WARNING

setResourceBundle

void setResourceBundle(String bundle)
Set Resource Bundle

getResourceBundle

ResourceBundle getResourceBundle(Locale locale)
Get Resource Bundle Pass null to get the default resource bundle.
Parameters:
locale -

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.