org.eclipse.update.util
Class FeatureWrap

java.lang.Object
  extended by org.eclipse.update.util.FeatureWrap
All Implemented Interfaces:
INode

public class FeatureWrap
extends java.lang.Object
implements INode


Field Summary
static int NO_RESOLVED
           
static int RESOLVED
           
static int UNKNOWN
           
 
Constructor Summary
FeatureWrap()
           
FeatureWrap(ISiteFeatureReference featureReference)
           
 
Method Summary
 void addUiObject(java.lang.Object uiObject)
           
 boolean downloadFeature(IProgressMonitor monitor)
           
 INode findByUiObject(java.lang.Object uiObject)
           
 java.lang.String getDescription()
           
 IFeature getFeature()
           
 long getFeatureIncludeSize()
          Returns the total size in KiloBytes of this feature and its included feature(s).
 long getFeatureSize()
          Returns the size in KiloBytes of this feature.
 java.lang.String getLicense()
           
 int getResolvedStatus()
           
 java.lang.String getShowedName()
           
 java.util.Vector getUiObjects()
           
 VersionedIdentifier getVID()
           
 boolean isFeatureReady()
           
 boolean isPreviousSelected()
           
 boolean isSelected()
           
 void releaseFeature()
           
 void setPreviousSelected(boolean previousSelected)
           
 void setResolvedStatus(int resolvedStatus)
           
 void setSelected(boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

RESOLVED

public static final int RESOLVED
See Also:
Constant Field Values

NO_RESOLVED

public static final int NO_RESOLVED
See Also:
Constant Field Values
Constructor Detail

FeatureWrap

public FeatureWrap()

FeatureWrap

public FeatureWrap(ISiteFeatureReference featureReference)
Method Detail

isSelected

public boolean isSelected()
Specified by:
isSelected in interface INode

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface INode

getUiObjects

public java.util.Vector getUiObjects()

addUiObject

public void addUiObject(java.lang.Object uiObject)

getShowedName

public java.lang.String getShowedName()

findByUiObject

public INode findByUiObject(java.lang.Object uiObject)
Specified by:
findByUiObject in interface INode

isFeatureReady

public boolean isFeatureReady()

downloadFeature

public boolean downloadFeature(IProgressMonitor monitor)

getFeatureIncludeSize

public long getFeatureIncludeSize()
Returns the total size in KiloBytes of this feature and its included feature(s). The size is the sum of the download size and install size.

Returns:
the total size of the feature and the included feature(s)

getFeatureSize

public long getFeatureSize()
Returns the size in KiloBytes of this feature. Only the value for this feature self and no the included feature(s). The size is the sum of the download size and install size.

Returns:
the total size of the feature and the included feature(s)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface INode

getLicense

public java.lang.String getLicense()

getFeature

public IFeature getFeature()

releaseFeature

public void releaseFeature()

isPreviousSelected

public boolean isPreviousSelected()
Specified by:
isPreviousSelected in interface INode

setPreviousSelected

public void setPreviousSelected(boolean previousSelected)
Specified by:
setPreviousSelected in interface INode

getResolvedStatus

public int getResolvedStatus()

setResolvedStatus

public void setResolvedStatus(int resolvedStatus)

getVID

public VersionedIdentifier getVID()