|
org.netbeans.modules.autoupdate.services 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.autoupdate.UpdateUnit
public final class UpdateUnit
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 |
---|
public String getCodeName()
public UpdateElement getInstalled()
UpdateElement
if any or null if
no element which unit's code name is already installed.
UpdateElement
public List<UpdateElement> getAvailableUpdates()
UpdateElement
public UpdateElement getBackup()
UpdateElement
in IDE backup if any or null. The element
can found in backup if any another element did update them.
UpdateElement
from backuppublic UpdateElement getInstalledLocalization()
UpdateElement
active with current Locale
or null.
UpdateElement
installed in IDEpublic List<UpdateElement> getAvailableLocalizations()
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.
UpdateElement
public UpdateManager.TYPE getType()
public boolean isPending()
UpdateUnit
is in a pending state.
State of this unit will be changed while restart the application.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
org.netbeans.modules.autoupdate.services 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |