Package com.polarion.alm.builder.model
Class IBuildStatus.BuildStatusType
java.lang.Object
com.polarion.alm.builder.model.IBuildStatus.BuildStatusType
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- IBuildStatus
Build status type "enumeration".
Values of this enumeration treat Object.equals(java.lang.Object)
and
==
the same.
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IBuildStatus.BuildStatusType
build execution failed miserablystatic final IBuildStatus.BuildStatusType
build execution was cancelledstatic final IBuildStatus.BuildStatusType
build execution failedstatic final IBuildStatus.BuildStatusType
build executed without problemsstatic final IBuildStatus.BuildStatusType
build executed without problems, but there were some errors reportedstatic final IBuildStatus.BuildStatusType
build is runningstatic final IBuildStatus.BuildStatusType
build is waiting to be run -
Method Summary
Modifier and TypeMethodDescriptionstatic IBuildStatus.BuildStatusType
fromString
(String s) Return enumeration value for given name.getLabel()
Return localized label of the statusgetName()
Return status type name.boolean
toString()
-
Field Details
-
STATUS_TYPE_WAITING
build is waiting to be run -
STATUS_TYPE_RUNNING
build is running -
STATUS_TYPE_OK
build executed without problems -
STATUS_TYPE_OK_WITH_FAILURES
build executed without problems, but there were some errors reported -
STATUS_TYPE_CANCELLED
build execution was cancelled -
STATUS_TYPE_FAILED
build execution failed -
STATUS_TYPE_ABORTED
build execution failed miserably
-
-
Method Details
-
getName
Return status type name.Same as
toString()
.Do not use for comparison, use
fromString(String)
first.- Returns:
- name (not
null
)
-
getLabel
Return localized label of the status- Returns:
- label
- Since:
- 3.9.0
-
isFinished
public boolean isFinished()- Returns:
true
if this status means build completition (build is finished), returnsfalse
if build is still in progress.
-
toString
-
fromString
Return enumeration value for given name.Comparison is case insensitive.
- Parameters:
s
- name- Returns:
- proper enumeration value (not
null
) - Throws:
IllegalArgumentException
- if name is not known- See Also:
-