|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 IMessageStore
public void removeError(int index)
removeError
in interface IMessageStore
public int getErrorCount()
getErrorCount
in interface IMessageStore
public List<FileMessage> getErrors()
IMessageStore
getErrors
in interface IMessageStore
public FileMessage getWarning(int index)
getWarning
in interface IMessageStore
public void removeWarning(int index)
removeWarning
in interface IMessageStore
public int getWarningCount()
getWarningCount
in interface IMessageStore
public List<FileMessage> getWarnings()
IMessageStore
getWarnings
in interface IMessageStore
public 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 |