org.netbeans.modules.autoupdate.services 1.3.1

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 available elements of the same type. For example, Editor module version 1.1 is installed in the IDE; a server with a 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.
 UpdateManager.TYPE getType()
           
 int hashCode()
           
 boolean isPending()
          Returns if the UpdateUnit is in a pending state.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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

getType

public UpdateManager.TYPE getType()

isPending

public boolean isPending()
Returns if the UpdateUnit is in a pending state. State of this unit will be changed while restart the application.

Returns:
true of UpdateUnit is pending

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.3.1

Built on January 29 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.