public final class ErrorEval extends java.lang.Object implements ValueEval, HyperlinkEval
Modifier and Type | Field and Description |
---|---|
static ErrorEval |
CIRCULAR_REF_ERROR |
static ErrorEval |
DIV_ZERO
#DIV/0!
|
static ErrorEval |
FORMULA_INVALID |
static ErrorEval |
NA
#N/A - Argument or function not available
|
static ErrorEval |
NAME_INVALID
#NAME?
|
static ErrorEval |
NULL_INTERSECTION
#NULL!
|
static ErrorEval |
NUM_ERROR
#NUM!
|
static ErrorEval |
REF_INVALID
#REF!
|
static ErrorEval |
VALUE_INVALID
#VALUE!
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
Hyperlink |
getHyperlink()
Returns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.
|
static java.lang.String |
getText(int errorCode)
Converts error codes to text.
|
static java.lang.String |
getTooltip(int errorCode) |
void |
setHyperlink(Hyperlink hyperlink)
Sets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.
|
java.lang.String |
toString() |
static ErrorEval |
valueOf(int errorCode)
Translates an Excel internal error code into the corresponding POI ErrorEval instance
|
public static final ErrorEval NULL_INTERSECTION
public static final ErrorEval DIV_ZERO
public static final ErrorEval VALUE_INVALID
public static final ErrorEval REF_INVALID
public static final ErrorEval NAME_INVALID
public static final ErrorEval NUM_ERROR
public static final ErrorEval NA
public static final ErrorEval FORMULA_INVALID
public static final ErrorEval CIRCULAR_REF_ERROR
public static ErrorEval valueOf(int errorCode)
errorCode
- public static java.lang.String getText(int errorCode)
public int getErrorCode()
public java.lang.String toString()
toString
in class java.lang.Object
public void setHyperlink(Hyperlink hyperlink)
HyperlinkEval
setHyperlink
in interface HyperlinkEval
hyperlink
- the associated hyperlinkpublic Hyperlink getHyperlink()
HyperlinkEval
getHyperlink
in interface HyperlinkEval
public static java.lang.String getTooltip(int errorCode)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.