|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.response.ResultMessage
public class ResultMessage
this class encapsulates result messages contained in the DENIC responses
Nested Class Summary | |
---|---|
static class |
ResultMessage.Level
enumeration for the different error levels of a message |
Field Summary | |
---|---|
private java.util.List<java.lang.String> |
arguments
the arguments |
private ErrorCode |
code
the error code |
private ResultMessage.Level |
level
the level of the message |
private java.lang.String |
message
the textual message |
private static java.util.regex.Pattern |
messagePattern
the pattern for the value part |
Constructor Summary | |
---|---|
ResultMessage(org.w3c.dom.Element el)
constructor for XML |
|
ResultMessage(java.lang.String key,
boolean levelFromKey,
java.lang.String value)
constructor for key-value pairs |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getArguments()
return the arguments |
ErrorCode |
getCode()
return the message code |
ResultMessage.Level |
getLevel()
return the error level |
java.lang.String |
getMessage()
return the message text |
java.lang.String |
toString()
return a string representation for debugging purposes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private ResultMessage.Level level
private ErrorCode code
private java.lang.String message
private java.util.List<java.lang.String> arguments
private static java.util.regex.Pattern messagePattern
Constructor Detail |
---|
public ResultMessage(java.lang.String key, boolean levelFromKey, java.lang.String value) throws ResponseParseException
key
- the keylevelFromKey
- if true
, the level is derived
from the key, otherwise it is derived
from the message code itselfvalue
- the code and message
ResponseParseException
- if the key and value do not represent a
messagepublic ResultMessage(org.w3c.dom.Element el) throws org.w3c.dom.DOMException, ResponseParseException
el
- the message element
org.w3c.dom.DOMException
- on DOM exceptions
ResponseParseException
- if the key and value do not represent a
messageMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public ResultMessage.Level getLevel()
public ErrorCode getCode()
public java.lang.String getMessage()
public java.util.List<java.lang.String> getArguments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |