|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.repository.local.LocalPkgInfo
public abstract class LocalPkgInfo
Information about a locally installed package.
Local package information is retrieved via theLocalSdk
object.
Clients should not need to create instances of LocalPkgInfo
directly.
Instead please use the LocalSdk
methods to parse and retrieve packages.
Constructor Summary | |
---|---|
protected |
LocalPkgInfo(LocalSdk localSdk,
java.io.File localDir,
java.util.Properties sourceProps)
|
Method Summary | |
---|---|
int |
compareTo(LocalPkgInfo o)
Comparison is solely done based on the IPkgDesc . |
void |
delete()
Deletes the files in the SDK corresponding to this package. |
boolean |
equals(java.lang.Object obj)
Computes object equality to this instance based on the underlying IPkgDesc but also specific local properties such a local directory,
update available and actual source properties. |
abstract IPkgDesc |
getDesc()
Returns the IPkgDesc describing this package. |
java.lang.String |
getListDescription()
Returns a description of this package that is suitable for a list display. |
java.lang.String |
getLoadError()
|
java.io.File |
getLocalDir()
|
LocalSdk |
getLocalSdk()
|
java.lang.String |
getLongDescription()
Returns a description of the given element. |
java.lang.String |
getShortDescription()
Returns a description of the given element. |
java.util.Properties |
getSourceProperties()
|
int |
hashCode()
Computes a hash code specific to this instance based on the underlying IPkgDesc but also specific local properties such a local directory,
and actual source properties. |
boolean |
hasLoadError()
A "broken" package is installed but is not fully operational. |
java.lang.String |
toString()
String representation for debugging purposes. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LocalPkgInfo(@NonNull LocalSdk localSdk, @NonNull java.io.File localDir, @NonNull java.util.Properties sourceProps)
Method Detail |
---|
@NonNull public LocalSdk getLocalSdk()
@NonNull public java.io.File getLocalDir()
@NonNull public java.util.Properties getSourceProperties()
@Nullable public java.lang.String getLoadError()
@NonNull public abstract IPkgDesc getDesc()
IPkgDesc
describing this package.
public int compareTo(@NonNull LocalPkgInfo o)
IPkgDesc
.
Other local attributes (local directory, source properties)
are not used in the comparison. Consequently compareTo(LocalPkgInfo)
does not match equals(Object)
and the hashCode()
properties.
compareTo
in interface java.lang.Comparable<LocalPkgInfo>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
IPkgDesc
but also specific local properties such a local directory,
and actual source properties.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
IPkgDesc
but also specific local properties such a local directory,
update available and actual source properties. This is different from
the behavior of compareTo(LocalPkgInfo)
which only uses the
IPkgDesc
for ordering.
equals
in class java.lang.Object
public boolean hasLoadError()
@NonNull public java.lang.String getListDescription()
IListDescription
IDescription.getShortDescription()
should be used if you
want more details such as the package revision number or the API, if applicable.
getListDescription
in interface IListDescription
public java.lang.String getShortDescription()
IDescription
Object.toString()
would provide.
getShortDescription
in interface IDescription
public java.lang.String getLongDescription()
IDescription
Object.toString()
would provide.
getLongDescription
in interface IDescription
public void delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |