Package com.polarion.alm.builder.model
Interface IBuildEvents
- All Superinterfaces:
IChangeGenerator
,IChangeListener
,IHasCustomValues
,IHasValues
,IStructure
List of build events.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(IBuildEvent event, boolean updateCounters) Add event to the list.int
Number of errors.Reported events.int
Number of fatal errors.int
Number of warnings.void
incErrorCount
(int count) Increase number of errors.void
incFatalCount
(int count) Increase number of fatal errors.void
incWarnCount
(int count) Increase number of warnings.void
setErrorCount
(int count) Set number of errors.void
setFatalCount
(int count) Set number of fatal errors.void
setWarnCount
(int count) Set number of warnings.Methods inherited from interface com.polarion.platform.persistence.model.IChangeGenerator
setChangeOwner
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.platform.persistence.model.IStructure
getEnumeration, getEnumerationOptionForField, getEnumerationTypeForField, getPrototype, getValue, isModified, isReadOnly, isReadOnly, setValue
-
Field Details
-
Method Details
-
getWarnCount
int getWarnCount()Number of warnings.- Returns:
- number of warnings
-
getErrorCount
int getErrorCount()Number of errors.- Returns:
- number of errors
-
getFatalCount
int getFatalCount()Number of fatal errors.- Returns:
- number of fatal errors
-
getEvents
List getEvents()Reported events.Note that normally this does not contain other events than errors and fatal errors.
- Returns:
List
ofIBuildEvent
s (notnull
)
-
setWarnCount
void setWarnCount(int count) Set number of warnings.- Parameters:
count
- number of warnings
-
setErrorCount
void setErrorCount(int count) Set number of errors.- Parameters:
count
- number of errors
-
setFatalCount
void setFatalCount(int count) Set number of fatal errors.- Parameters:
count
- number of fatal errors
-
addEvent
Add event to the list.The event is always added regardless of its severity (no filtering here).
- Parameters:
event
- eventupdateCounters
-true
if counters should be updated- Throws:
IllegalArgumentException
- ifevent
isnull
-
incWarnCount
void incWarnCount(int count) Increase number of warnings.- Parameters:
count
- number of warnings
-
incErrorCount
void incErrorCount(int count) Increase number of errors.- Parameters:
count
- number of errors
-
incFatalCount
void incFatalCount(int count) Increase number of fatal errors.- Parameters:
count
- number of fatal errors
-