org.apache.empire.struts2.jsp.controls
Class InputControl.FieldValueError

java.lang.Object
  extended by org.apache.empire.struts2.jsp.controls.InputControl.FieldValueError
All Implemented Interfaces:
ErrorInfo
Enclosing class:
InputControl

public static final class InputControl.FieldValueError
extends Object
implements ErrorInfo

This class wraps a parsing or validation error. You should not use this class directly but through the error function of InputControl


Constructor Summary
InputControl.FieldValueError(ErrorType errorType, String[] msgParams, String value)
           
 
Method Summary
 String getErrorMessage()
          Returns the message associated with the last error.
 String[] getErrorParams()
          Returns the parameters used to build the error text.
 ErrorType getErrorType()
          Returns the last error code.
 String getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputControl.FieldValueError

public InputControl.FieldValueError(ErrorType errorType,
                                    String[] msgParams,
                                    String value)
Method Detail

getErrorType

public ErrorType getErrorType()
Description copied from interface: ErrorInfo
Returns the last error code.

Specified by:
getErrorType in interface ErrorInfo
Returns:
the error code of ERR_NONE if no error has been set.

getValue

public String getValue()

getErrorParams

public String[] getErrorParams()
Description copied from interface: ErrorInfo
Returns the parameters used to build the error text.

Specified by:
getErrorParams in interface ErrorInfo
Returns:
the error message or null if no error has been set.

getErrorMessage

public String getErrorMessage()
Description copied from interface: ErrorInfo
Returns the message associated with the last error.

Specified by:
getErrorMessage in interface ErrorInfo
Returns:
the error message or an empty string if no error has been set.


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.