hudson.model
Class UpdateSite.Entry

java.lang.Object
  extended by hudson.model.UpdateSite.Entry
Direct Known Subclasses:
UpdateSite.Plugin
Enclosing class:
UpdateSite

@ExportedBean
public static class UpdateSite.Entry
extends Object


Field Summary
 String name
          Artifact ID.
 String sourceId
          UpdateSite ID.
 String url
          Download URL.
 String version
          The version.
 
Constructor Summary
UpdateSite.Entry(String sourceId, net.sf.json.JSONObject o)
           
 
Method Summary
 Api getApi()
           
 boolean isNewerThan(String currentVersion)
          Checks if the specified "current version" is older than the version of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceId

@Exported
public final String sourceId
UpdateSite ID.


name

@Exported
public final String name
Artifact ID.


version

@Exported
public final String version
The version.


url

@Exported
public final String url
Download URL.

Constructor Detail

UpdateSite.Entry

public UpdateSite.Entry(String sourceId,
                        net.sf.json.JSONObject o)
Method Detail

isNewerThan

public boolean isNewerThan(String currentVersion)
Checks if the specified "current version" is older than the version of this entry.

Parameters:
currentVersion - The string that represents the version number to be compared.
Returns:
true if the version listed in this entry is newer. false otherwise, including the situation where the strings couldn't be parsed as version numbers.

getApi

public Api getApi()


Copyright © 2004-2013. All Rights Reserved.