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

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

org.netbeans.modules.autoupdate.services 1.2

org.netbeans.api.autoupdate
Class UpdateUnit

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

public final class UpdateUnit
extends Object

Instances provided by the UpdateManager which represents wrapper of UpdateElement. The one unit contains all avaliable elements of as same unit, i.e. Editor module, version 1.1 is installed in IDE, server with module update can contain Editor module, version 1.2 and Editor, version 1.0 is in IDE backup.


Method Summary
 boolean equals(Object obj)
           
 List<UpdateElement> getAvailableLocalizations()
          Returns list of avaiable localization active with current Locale, the localization are not installed in IDE and has higher version then installed localization (is any).
 List<UpdateElement> getAvailableUpdates()
          Returns list of avaiable element which are not installed in IDE and has higher version then installed element (is any).
 UpdateElement getBackup()
          Returns UpdateElement in IDE backup if any or null.
 String getCodeName()
          Return code name of unit, it's unique among rest of another units.
 UpdateElement getInstalled()
          Returns installed UpdateElement if any or null if no element which unit's code name is already installed.
 UpdateElement getInstalledLocalization()
          Returns localization UpdateElement active with current Locale or null.
 int hashCode()
           
 boolean isAutoload()
          Deprecated. 
 boolean isEager()
          Deprecated. 
 boolean isFixed()
          Deprecated. 
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

isAutoload

@Deprecated
public boolean isAutoload()
Deprecated. 


isEager

@Deprecated
public boolean isEager()
Deprecated. 


isFixed

@Deprecated
public boolean isFixed()
Deprecated. 


getCodeName

public String getCodeName()
Return code name of unit, it's unique among rest of another units.

Returns:
code name

getInstalled

public UpdateElement getInstalled()
Returns installed UpdateElement if any or null if no element which unit's code name is already installed.

Returns:
installed UpdateElement

getAvailableUpdates

public List<UpdateElement> getAvailableUpdates()
Returns list of avaiable element which are not installed in IDE and has higher version then installed element (is any). These elements can be installed as new one element or as update of already installed element.

Returns:
list of available and not installed UpdateElement

getBackup

public UpdateElement getBackup()
Returns UpdateElement in IDE backup if any or null. The element can found in backup if any another element did update them.

Returns:
UpdateElement from backup

getInstalledLocalization

public UpdateElement getInstalledLocalization()
Returns localization UpdateElement active with current Locale or null.

Returns:
localization UpdateElement installed in IDE

getAvailableLocalizations

public List<UpdateElement> getAvailableLocalizations()
Returns list of avaiable localization active with current Locale, the localization are not installed in IDE and has higher version then installed localization (is any). These elements can be installed as new one element or as update of already installed element.

Returns:
list of available and not installed localization UpdateElement

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.