public class StatusString extends Status
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private String |
data |
BAD_CONTENT_FIELD, BAD_REPLY_TO_FIELD, EXCEPTION_CAUGHT, SUCCESS, TIMEOUT, UNEXEPCTED_EXCEPTION_CAUGHT, UNKNOWN_ERROR, UNKNOWN_REPLY, UNKNOWN_WARNING
Constructor and Description |
---|
StatusString() |
StatusString(int status,
String data) |
StatusString(int status,
String explanation,
String data) |
StatusString(String data) |
StatusString(TokenParser p) |
Modifier and Type | Method and Description |
---|---|
void |
fromString_extension(TokenParser parser)
To be overridden by subclasses to read any additional information from a string.
|
String |
getData() |
void |
setData(String data) |
String |
toString_extension()
To be overridden by subclasses to write out any extended data.
|
clone, codeToString, fromString, fromString, fromString2, getExplanation, getStatusValue, main, setExplanation, setStatus, setStatusValue, toString
private String data
public StatusString()
public StatusString(int status, String data)
public StatusString(TokenParser p) throws Exception
Exception
public String getData()
public void setData(String data)
data
- public String toString_extension()
Status
toString_extension
in class Status
public void fromString_extension(TokenParser parser) throws Exception
Status
fromString_extension
in class Status
ParseException
Exception