hudson.model
Class Fingerprint.BuildPtr

java.lang.Object
  extended by hudson.model.Fingerprint.BuildPtr
Enclosing class:
Fingerprint

@ExportedBean(defaultVisibility=2)
public static class Fingerprint.BuildPtr
extends Object

Pointer to a Build.


Constructor Summary
Fingerprint.BuildPtr(Run run)
           
Fingerprint.BuildPtr(String name, int number)
           
 
Method Summary
 boolean belongsTo(Job job)
          Returns true if Fingerprint.BuildPtr points to the given job or one of its subordinates.
 AbstractProject getJob()
          Gets the Job that this pointer points to, or null if such a job no longer exists.
 String getName()
          Gets the full name of the job.
 int getNumber()
          Gets the project build number.
 Run getRun()
          Gets the Job that this pointer points to, or null if such a job no longer exists.
 boolean is(Job job)
          Returns true if Fingerprint.BuildPtr points to the given job.
 boolean is(Run r)
          Returns true if Fingerprint.BuildPtr points to the given run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fingerprint.BuildPtr

public Fingerprint.BuildPtr(String name,
                            int number)

Fingerprint.BuildPtr

public Fingerprint.BuildPtr(Run run)
Method Detail

getName

@Exported
public String getName()
Gets the full name of the job.

Such job could be since then removed, so there might not be a corresponding Job.


getJob

public AbstractProject getJob()
Gets the Job that this pointer points to, or null if such a job no longer exists.


getNumber

@Exported
public int getNumber()
Gets the project build number.

Such Run could be since then discarded.


getRun

public Run getRun()
Gets the Job that this pointer points to, or null if such a job no longer exists.


is

public boolean is(Run r)
Returns true if Fingerprint.BuildPtr points to the given run.


is

public boolean is(Job job)
Returns true if Fingerprint.BuildPtr points to the given job.


belongsTo

public boolean belongsTo(Job job)
Returns true if Fingerprint.BuildPtr points to the given job or one of its subordinates.

This is useful to check if an artifact in MavenModule belongs to MavenModuleSet.



Copyright © 2004-2013. All Rights Reserved.