|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.module.DefaultMessageStore
public class DefaultMessageStore
| Constructor Summary | |
|---|---|
DefaultMessageStore()
Optimized constructor that doesn't allocate empty lists. |
|
DefaultMessageStore(Collection<FileMessage> errors,
Collection<FileMessage> warnings)
|
|
DefaultMessageStore(FileMessage[] errors,
FileMessage[] warnings)
|
|
| Method Summary | |
|---|---|
FileMessage |
getError(int index)
|
int |
getErrorCount()
|
List<FileMessage> |
getErrors()
Fetch a shallow-cloned copy of the underlying error messages. |
FileMessage |
getWarning(int index)
|
int |
getWarningCount()
|
List<FileMessage> |
getWarnings()
Fetch a shallow-cloned copy of the underlying warnings messages. |
void |
merge(IMessageStore other)
Destructively insert the contents of the second message collection into this one. |
void |
removeError(int index)
|
void |
removeWarning(int index)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageStore(FileMessage[] errors,
FileMessage[] warnings)
public DefaultMessageStore(Collection<FileMessage> errors,
Collection<FileMessage> warnings)
public DefaultMessageStore()
| Method Detail |
|---|
public FileMessage getError(int index)
getError in interface IMessageStorepublic void removeError(int index)
removeError in interface IMessageStorepublic int getErrorCount()
getErrorCount in interface IMessageStorepublic List<FileMessage> getErrors()
IMessageStore
getErrors in interface IMessageStorepublic FileMessage getWarning(int index)
getWarning in interface IMessageStorepublic void removeWarning(int index)
removeWarning in interface IMessageStorepublic int getWarningCount()
getWarningCount in interface IMessageStorepublic List<FileMessage> getWarnings()
IMessageStore
getWarnings in interface IMessageStorepublic void merge(IMessageStore other)
IMessageStore
merge in interface IMessageStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||