Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.library.api
Enum APIManifestAttributes

java.lang.Object
  extended by java.lang.Enum<APIManifestAttributes>
      extended by org.eclipse.mtj.core.model.library.api.APIManifestAttributes
All Implemented Interfaces:
Serializable, Comparable<APIManifestAttributes>

public enum APIManifestAttributes
extends Enum<APIManifestAttributes>

JAR files containing emulator APIs in the lib directory should provide additional information to IDEs by providing manifest files with the attributes contained in this enum.

Since:
0.9.1

Enum Constant Summary
API
          Code name for the API.
API_DEPENDENCIES
          A comma-separated list of APIs that are required by the API contained in this JAR.
API_NAME
          External name for the API.
API_TYPE
          Use one of the following values for this attribute.
API_VERSION
          The version number of the specification that is implemented by this JAR file.
 
Method Summary
 String toString()
           
static APIManifestAttributes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static APIManifestAttributes[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

API

public static final APIManifestAttributes API
Code name for the API. This name is only used internally and has no significance beyond its use for calculating API dependencies.


API_NAME

public static final APIManifestAttributes API_NAME
External name for the API. This text can be shown to developers.


API_TYPE

public static final APIManifestAttributes API_TYPE
Use one of the following values for this attribute.


API_DEPENDENCIES

public static final APIManifestAttributes API_DEPENDENCIES
A comma-separated list of APIs that are required by the API contained in this JAR. Each API dependency can contain just the code name of the API, or can additionally contain = version-number to require that a specific version be installed, or >= version-number to specify that at least a certain version be installed.


API_VERSION

public static final APIManifestAttributes API_VERSION
The version number of the specification that is implemented by this JAR file.

Method Detail

values

public static final APIManifestAttributes[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(APIManifestAttributes c : APIManifestAttributes.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static APIManifestAttributes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<APIManifestAttributes>

Mobile Tools for Java
Release 1.0