hudson.model
Class UpdateSite.Entry
java.lang.Object
hudson.model.UpdateSite.Entry
- Direct Known Subclasses:
- UpdateSite.Plugin
- Enclosing class:
- UpdateSite
@ExportedBean
public static class UpdateSite.Entry
- extends Object
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 |
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.
UpdateSite.Entry
public UpdateSite.Entry(String sourceId,
net.sf.json.JSONObject o)
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.