|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.warnings.util.BuildResult
public abstract class BuildResult
A base class for build results that is capable of storing a reference to the current build. Provides support for persisting the results of the build.
| Field Summary | |
|---|---|
protected static com.thoughtworks.xstream.XStream |
XSTREAM
Serialization provider. |
| Constructor Summary | |
|---|---|
BuildResult(hudson.model.AbstractBuild<?,?> build,
java.util.Set<java.lang.String> modules,
java.util.Collection<java.lang.String> errorMessages,
java.lang.String defaultEncoding)
Creates a new instance of BuildResult. |
|
| Method Summary | |
|---|---|
FileAnnotation |
getAnnotation(long key)
Returns the annotation with the specified key. |
FileAnnotation |
getAnnotation(java.lang.String key)
Returns the annotation with the specified key. |
java.util.Collection<FileAnnotation> |
getAnnotations()
Returns the annotations for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(Priority priority)
Returns the annotations of the specified priority for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
abstract AnnotationContainer |
getContainer()
Gets the annotation container. |
protected hudson.XmlFile |
getDataFile()
Returns the serialization file. |
java.lang.String |
getDefaultEncoding()
Returns the defined default encoding. |
java.util.List<java.lang.String> |
getErrors()
Returns the error messages associated with this build. |
java.util.Collection<java.lang.String> |
getModules()
Returns the modules of this build result. |
int |
getNumberOfAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
int |
getNumberOfModules()
Returns the number of modules in this project. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the build as owner of this action. |
protected abstract java.lang.String |
getSerializationFileName()
Returns the name of the file to store the serialized annotations. |
boolean |
hasAnnotations()
Returns whether this objects has annotations. |
boolean |
hasAnnotations(Priority priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
hasAnnotations(java.lang.String priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
hasError()
Returns whether a module with an error is part of this project. |
boolean |
hasNoAnnotations()
Returns whether this objects has no annotations. |
boolean |
hasNoAnnotations(Priority priority)
Returns whether this objects has no annotations with the specified priority. |
boolean |
hasNoAnnotations(java.lang.String priority)
Returns whether this objects has no annotations with the specified priority. |
boolean |
isCurrent()
Returns whether this result belongs to the last build. |
protected java.lang.Object |
readResolve()
Initializes members that were not present in previous versions of this plug-in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
|---|
getDisplayName |
| Methods inherited from interface hudson.plugins.warnings.util.model.AnnotationProvider |
|---|
getNumberOfAnnotations, getNumberOfAnnotations |
| Field Detail |
|---|
protected static final com.thoughtworks.xstream.XStream XSTREAM
| Constructor Detail |
|---|
public BuildResult(hudson.model.AbstractBuild<?,?> build,
java.util.Set<java.lang.String> modules,
java.util.Collection<java.lang.String> errorMessages,
java.lang.String defaultEncoding)
BuildResult.
build - owner of this resultmodules - the modules represented by this resulterrorMessages - the error messages during the builddefaultEncoding - the default encoding to be used when reading and parsing files| Method Detail |
|---|
public boolean hasError()
true if at least one module has an error.public java.util.List<java.lang.String> getErrors()
protected java.lang.Object readResolve()
public java.util.Collection<java.lang.String> getModules()
public int getNumberOfModules()
public java.lang.String getDefaultEncoding()
protected final hudson.XmlFile getDataFile()
protected abstract java.lang.String getSerializationFileName()
public final boolean isCurrent()
true if this result belongs to the last buildpublic final hudson.model.AbstractBuild<?,?> getOwner()
public boolean hasAnnotations(Priority priority)
hasAnnotations in interface AnnotationProviderpriority - the priority
true if this objects has annotations.public boolean hasAnnotations(java.lang.String priority)
hasAnnotations in interface AnnotationProviderpriority - the priority as a string object
true if this objects has annotations.public final boolean hasAnnotations()
hasAnnotations in interface AnnotationProvidertrue if this objects has annotations.public boolean hasNoAnnotations()
hasNoAnnotations in interface AnnotationProvidertrue if this objects has no annotations.public boolean hasNoAnnotations(Priority priority)
hasNoAnnotations in interface AnnotationProviderpriority - the priority
true if this objects has no annotations.public boolean hasNoAnnotations(java.lang.String priority)
hasNoAnnotations in interface AnnotationProviderpriority - the priority as a string object
true if this objects has no annotations.public java.util.Collection<FileAnnotation> getAnnotations()
getAnnotations in interface AnnotationProviderpublic FileAnnotation getAnnotation(long key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation
public FileAnnotation getAnnotation(java.lang.String key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation as a long value in string representation
public java.util.Collection<FileAnnotation> getAnnotations(Priority priority)
getAnnotations in interface AnnotationProviderpriority - the priority
public java.util.Collection<FileAnnotation> getAnnotations(java.lang.String priority)
getAnnotations in interface AnnotationProviderpriority - the priority as a string object
public int getNumberOfAnnotations(java.lang.String priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority as a string object
public abstract AnnotationContainer getContainer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||