com.android.sdklib.local
Class LocalPkgInfo

java.lang.Object
  extended by com.android.sdklib.local.LocalPkgInfo
All Implemented Interfaces:
com.android.sdklib.internal.repository.IListDescription, java.lang.Comparable<LocalPkgInfo>
Direct Known Subclasses:
LocalBuildToolPkgInfo, LocalDocPkgInfo, LocalExtraPkgInfo, LocalPlatformPkgInfo, LocalPlatformToolPkgInfo, LocalSamplePkgInfo, LocalSourcePkgInfo, LocalSysImgPkgInfo, LocalToolPkgInfo

public abstract class LocalPkgInfo
extends java.lang.Object
implements com.android.sdklib.internal.repository.IListDescription, java.lang.Comparable<LocalPkgInfo>


Constructor Summary
protected LocalPkgInfo(LocalSdk localSdk, java.io.File localDir, java.util.Properties sourceProps)
           
 
Method Summary
 int compareTo(LocalPkgInfo o)
           
 AndroidVersion getAndroidVersion()
           
 FullRevision getFullRevision()
           
 java.lang.String getListDescription()
           
 java.lang.String getLoadError()
           
 java.io.File getLocalDir()
           
 LocalSdk getLocalSdk()
           
 MajorRevision getMajorRevision()
           
 com.android.sdklib.internal.repository.packages.Package getPackage()
           
 java.lang.String getPath()
           
 java.util.Properties getSourceProperties()
           
abstract  int getType()
           
 boolean hasAndroidVersion()
           
 boolean hasFullRevision()
           
 boolean hasLoadError()
          A "broken" package is installed but is not fully operational.
 boolean hasMajorRevision()
           
 boolean hasPath()
           
 java.lang.String toString()
          String representation for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalPkgInfo

protected LocalPkgInfo(@NonNull
                       LocalSdk localSdk,
                       @NonNull
                       java.io.File localDir,
                       @NonNull
                       java.util.Properties sourceProps)
Method Detail

getLocalSdk

@NonNull
public LocalSdk getLocalSdk()

getLocalDir

@NonNull
public java.io.File getLocalDir()

getSourceProperties

@NonNull
public java.util.Properties getSourceProperties()

getLoadError

@Nullable
public java.lang.String getLoadError()

getType

public abstract int getType()

hasFullRevision

public boolean hasFullRevision()

hasMajorRevision

public boolean hasMajorRevision()

hasAndroidVersion

public boolean hasAndroidVersion()

hasPath

public boolean hasPath()

getFullRevision

@Nullable
public FullRevision getFullRevision()

getMajorRevision

@Nullable
public MajorRevision getMajorRevision()

getAndroidVersion

@Nullable
public AndroidVersion getAndroidVersion()

getPath

@Nullable
public java.lang.String getPath()

compareTo

public int compareTo(@NonNull
                     LocalPkgInfo o)
Specified by:
compareTo in interface java.lang.Comparable<LocalPkgInfo>

toString

public java.lang.String toString()
String representation for debugging purposes.

Overrides:
toString in class java.lang.Object

hasLoadError

public boolean hasLoadError()
A "broken" package is installed but is not fully operational. For example an addon that lacks its underlying platform or a tool package that lacks some of its binaries or essentially files.

Operational code should generally ignore broken packages. Only the SDK Updater cares about displaying them so that they can be fixed.


getPackage

@Nullable
public com.android.sdklib.internal.repository.packages.Package getPackage()

getListDescription

@NonNull
public java.lang.String getListDescription()
Specified by:
getListDescription in interface com.android.sdklib.internal.repository.IListDescription