站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

UpdateElement (Auto Update Services) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.autoupdate.services 1.2

org.netbeans.api.autoupdate
Class UpdateElement

java.lang.Object
  extended by org.netbeans.api.autoupdate.UpdateElement

public final class UpdateElement
extends Object

Instances provided by the UpdateUnit which represents specific version of update (e.g. module or feature). The UpdateElement can be installed, available on a remote server or stored in backup.


Method Summary
 boolean equals(Object obj)
           
 String getAuthor()
          Returns name of the author of the update element.
 String getCategory()
          Returns display name of category where UpdateElement belongs to.
 String getCodeName()
          Returns the code name of the update, sans release version.
 String getDate()
          Returns date when UpdateElement was published or install time if the UpdateElement is installed already.
 String getDescription()
          Returns the description of update, displaying in UI to end users.
 String getDisplayName()
          Returns the display name of the update, displaying in UI to end users.
 int getDownloadSize()
          Returns size of UpdateElement in Bytes.
 String getHomepage()
          Returns the String representation of URL.
 String getLicence()
          Returns text of license agreement if the UpdateElement has a copyright.
 String getSource()
          Returns name of UpdateProvider
 String getSpecificationVersion()
          Returns the specification version.
 UpdateUnit getUpdateUnit()
          Returns UpdateUnit where is this UpdateElement contained.
 int hashCode()
           
 boolean isEnabled()
          Returns if the UpdateElement is active in the system.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUpdateUnit

public UpdateUnit getUpdateUnit()
Returns UpdateUnit where is this UpdateElement contained.

Returns:
UpdateUnit in which belongs to

getCodeName

public String getCodeName()
Returns the code name of the update, sans release version.

Returns:
code name of the update

getDisplayName

public String getDisplayName()
Returns the display name of the update, displaying in UI to end users.

Returns:
display name

getSpecificationVersion

public String getSpecificationVersion()
Returns the specification version.

Returns:
specification version or null

isEnabled

public boolean isEnabled()
Returns if the UpdateElement is active in the system.

Returns:
true of UpdateElement is active

getDescription

public String getDescription()
Returns the description of update, displaying in UI to end users.

Returns:
description

getSource

public String getSource()
Returns name of UpdateProvider

Returns:
name of UpdateProvider

getAuthor

public String getAuthor()
Returns name of the author of the update element.

Returns:
name or null

getHomepage

public String getHomepage()
Returns the String representation of URL.

Returns:
String or null

getDownloadSize

public int getDownloadSize()
Returns size of UpdateElement in Bytes.

Returns:
size

getCategory

public String getCategory()
Returns display name of category where UpdateElement belongs to.

Returns:
name of category

getDate

public String getDate()
Returns date when UpdateElement was published or install time if the UpdateElement is installed already. Can return null if the date is unknown.

Returns:
date in format "yyyy/MM/dd" or null

getLicence

public String getLicence()
Returns text of license agreement if the UpdateElement has a copyright.

Returns:
String or null

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.autoupdate.services 1.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.