public class MessageList extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
highestSevirity |
protected ArrayList |
messages |
| Constructor and Description |
|---|
MessageList() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(String code)
Adds an error code to mesaage list
|
int |
add(String code,
String param1) |
int |
add(String code,
String[] params)
Adds an error code with additional information about the error
|
int |
add(String code,
String param1,
String param2) |
int |
add(String code,
String param1,
String param2,
String param3) |
int |
add(String code,
String param1,
String param2,
String param3,
String param4) |
String |
getMessage(int id) |
int |
getSevirity()
Returns the highest sevirity of all messages that are added so far
|
int |
size() |
String |
toString()
toString() overridden to return a text that reflect the contents
|
protected ArrayList messages
protected int highestSevirity
public int add(String code)
code - error codepublic int add(String code, String[] params)
code - params - public int getSevirity()
public int size()
public String getMessage(int id)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.