|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.priv.pro.parser.OrderParser.Error
public static class OrderParser.Error
Represents an error which occurred during the order parsing
Field Summary | |
---|---|
protected java.lang.String |
fHTMLMessage
|
protected java.lang.String |
fMessage
|
protected int |
fSeverity
|
static int |
SEVERITY_HIGH
Defines high severity constant |
static int |
SEVERITY_LOW
Defines low severity constant |
static int |
SEVERITY_MEDIUM
Defines medium severity constant |
Constructor Summary | |
---|---|
OrderParser.Error(java.lang.String aMessage)
Creates and initializes an new Error instance with default SEVERITY_MEDIUM
severity value |
|
OrderParser.Error(java.lang.String aMessage,
int aSeverity)
Creates and initializes an new Error instance |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getHTMLMessage()
Returns HTML representation of the error |
java.lang.String |
getMessage()
Returns message |
int |
getSeverity()
Returns severity value |
void |
setHTMLMessage(java.lang.String aHTMLMessage)
Specifies HTML representation of the error |
java.lang.String |
toHTML()
Formats and returns message as HTML if HTML message was not specified; otherwise simply returns HTML message value |
java.lang.String |
toString()
Returns textual representation of the error |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SEVERITY_LOW
public static final int SEVERITY_MEDIUM
public static final int SEVERITY_HIGH
protected java.lang.String fMessage
protected int fSeverity
protected java.lang.String fHTMLMessage
Constructor Detail |
---|
public OrderParser.Error(java.lang.String aMessage, int aSeverity)
Error
instance
aMessage
- an error messageaSeverity
- an error severitypublic OrderParser.Error(java.lang.String aMessage)
Error
instance with default SEVERITY_MEDIUM
severity value
aMessage
- an error messageMethod Detail |
---|
public int getSeverity()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getHTMLMessage()
public void setHTMLMessage(java.lang.String aHTMLMessage)
aHTMLMessage
- HTML representation of the errorpublic java.lang.String toHTML()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |