com.android.sdklib.internal.repository.packages
Interface IExactApiLevelDependency

All Known Implementing Classes:
AddonPackage, BrokenPackage

public interface IExactApiLevelDependency

Interface used to decorate a Package that has a dependency on a specific API level, e.g. which XML has a <api-level> element.

For example an add-on package requires a platform with an exact API level to be installed at the same time. This is not the same as IMinApiLevelDependency which requests that a platform with at least the requested API level be present or installed at the same time.

Such package requires the <api-level> element. It is not an optional property, however it can be invalid.


Field Summary
static int API_LEVEL_INVALID
          The value of getExactApiLevel() when the RepoConstants.NODE_API_LEVEL was not specified in the XML source.
 
Method Summary
 int getExactApiLevel()
          Returns the exact API level required by this package, if > 0, or API_LEVEL_INVALID if the value was missing.
 

Field Detail

API_LEVEL_INVALID

static final int API_LEVEL_INVALID
The value of getExactApiLevel() when the RepoConstants.NODE_API_LEVEL was not specified in the XML source.

See Also:
Constant Field Values
Method Detail

getExactApiLevel

int getExactApiLevel()
Returns the exact API level required by this package, if > 0, or API_LEVEL_INVALID if the value was missing.

This attribute is mandatory and should not be normally missing. It can only happen when dealing with an invalid repository XML.