com.android.sdklib.repository.local
Class LocalAddonPkgInfo

java.lang.Object
  extended by com.android.sdklib.repository.local.LocalPkgInfo
      extended by com.android.sdklib.repository.local.LocalPlatformPkgInfo
          extended by com.android.sdklib.repository.local.LocalAddonPkgInfo
All Implemented Interfaces:
com.android.sdklib.internal.repository.IListDescription, java.lang.Comparable<LocalPkgInfo>

public class LocalAddonPkgInfo
extends LocalPlatformPkgInfo


Field Summary
static java.lang.String ADDON_API
           
static java.lang.String ADDON_DEFAULT_SKIN
           
static java.lang.String ADDON_DESCRIPTION
           
static java.lang.String ADDON_LIBRARIES
           
static java.lang.String ADDON_NAME
           
static java.lang.String ADDON_REVISION
           
static java.lang.String ADDON_REVISION_OLD
           
static java.lang.String ADDON_USB_VENDOR
           
static java.lang.String ADDON_VENDOR
           
 
Fields inherited from class com.android.sdklib.repository.local.LocalPlatformPkgInfo
PROP_VERSION_CODENAME, PROP_VERSION_RELEASE, PROP_VERSION_SDK
 
Constructor Summary
LocalAddonPkgInfo(LocalSdk localSdk, java.io.File localDir, java.util.Properties sourceProps, AndroidVersion version, MajorRevision revision)
           
 
Method Summary
protected  IAndroidTarget createAndroidTarget()
          Creates the AddOnTarget.
protected  com.android.sdklib.internal.repository.packages.Package createPackage()
          Creates an AddonPackage wrapping the IAndroidTarget if defined.
 IPkgDesc getDesc()
          Returns the IPkgDesc describing this package.
 java.lang.String getTargetHash()
          The "path" of a Platform is its Target Hash.
 java.lang.String getVendorId()
           
 
Methods inherited from class com.android.sdklib.repository.local.LocalPlatformPkgInfo
getAndroidTarget, getPackage, isLoaded, parseSkinFolder
 
Methods inherited from class com.android.sdklib.repository.local.LocalPkgInfo
compareTo, equals, getListDescription, getLoadError, getLocalDir, getLocalSdk, getSourceProperties, getUpdate, hashCode, hasLoadError, hasUpdate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADDON_NAME

public static final java.lang.String ADDON_NAME
See Also:
Constant Field Values

ADDON_VENDOR

public static final java.lang.String ADDON_VENDOR
See Also:
Constant Field Values

ADDON_API

public static final java.lang.String ADDON_API
See Also:
Constant Field Values

ADDON_DESCRIPTION

public static final java.lang.String ADDON_DESCRIPTION
See Also:
Constant Field Values

ADDON_LIBRARIES

public static final java.lang.String ADDON_LIBRARIES
See Also:
Constant Field Values

ADDON_DEFAULT_SKIN

public static final java.lang.String ADDON_DEFAULT_SKIN
See Also:
Constant Field Values

ADDON_USB_VENDOR

public static final java.lang.String ADDON_USB_VENDOR
See Also:
Constant Field Values

ADDON_REVISION

public static final java.lang.String ADDON_REVISION
See Also:
Constant Field Values

ADDON_REVISION_OLD

public static final java.lang.String ADDON_REVISION_OLD
See Also:
Constant Field Values
Constructor Detail

LocalAddonPkgInfo

public LocalAddonPkgInfo(@NonNull
                         LocalSdk localSdk,
                         @NonNull
                         java.io.File localDir,
                         @NonNull
                         java.util.Properties sourceProps,
                         @NonNull
                         AndroidVersion version,
                         @NonNull
                         MajorRevision revision)
Method Detail

getDesc

@NonNull
public IPkgDesc getDesc()
Description copied from class: LocalPkgInfo
Returns the IPkgDesc describing this package.

Overrides:
getDesc in class LocalPlatformPkgInfo

getVendorId

@NonNull
public java.lang.String getVendorId()

getTargetHash

@NonNull
public java.lang.String getTargetHash()
Description copied from class: LocalPlatformPkgInfo
The "path" of a Platform is its Target Hash.

Overrides:
getTargetHash in class LocalPlatformPkgInfo

createPackage

@Nullable
protected com.android.sdklib.internal.repository.packages.Package createPackage()
Creates an AddonPackage wrapping the IAndroidTarget if defined. Invoked by LocalPlatformPkgInfo.getPackage().

Overrides:
createPackage in class LocalPlatformPkgInfo
Returns:
A Package or null if target isn't available.

createAndroidTarget

@Nullable
protected IAndroidTarget createAndroidTarget()
Creates the AddOnTarget. Invoked by LocalPlatformPkgInfo.getAndroidTarget().

Overrides:
createAndroidTarget in class LocalPlatformPkgInfo