Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.library.api
Class APIType

java.lang.Object
  extended by org.eclipse.mtj.core.model.library.api.APIType

public class APIType
extends Object

An enumeration type that represents the type of an API.


Field Summary
static APIType CONFIGURATION
          An API that acts as a configuration
static int CONFIGURATION_CODE
          Static constant representing a API that acts as a configuration
static APIType OPTIONAL
          An API that is optional
static int OPTIONAL_CODE
          Static constant representing an API that offers optional functionality
static APIType PROFILE
          An API that acts as a profile
static int PROFILE_CODE
          Static constant representing an API that acts as a profile
static String[] TYPE_STRINGS
           
static APIType UNKNOWN
          An API that is an unknown type
static int UNKNOWN_CODE
          Static constant representing an API that is of an unknown type
 
Method Summary
 boolean equals(Object obj)
           
 int getTypeCode()
          Return the type code for this particular type.
 int hashCode()
           
 String toString()
           
static APIType typeForCode(int typeCode)
          Return the type associated with the specified code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIGURATION_CODE

public static final int CONFIGURATION_CODE
Static constant representing a API that acts as a configuration

See Also:
Constant Field Values

CONFIGURATION

public static final APIType CONFIGURATION
An API that acts as a configuration


PROFILE_CODE

public static final int PROFILE_CODE
Static constant representing an API that acts as a profile

See Also:
Constant Field Values

PROFILE

public static final APIType PROFILE
An API that acts as a profile


OPTIONAL_CODE

public static final int OPTIONAL_CODE
Static constant representing an API that offers optional functionality

See Also:
Constant Field Values

OPTIONAL

public static final APIType OPTIONAL
An API that is optional


UNKNOWN_CODE

public static final int UNKNOWN_CODE
Static constant representing an API that is of an unknown type

See Also:
Constant Field Values

UNKNOWN

public static final APIType UNKNOWN
An API that is an unknown type


TYPE_STRINGS

public static final String[] TYPE_STRINGS
Method Detail

typeForCode

public static APIType typeForCode(int typeCode)
Return the type associated with the specified code.

Parameters:
typeCode -
Returns:

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getTypeCode

public int getTypeCode()
Return the type code for this particular type.

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

Mobile Tools for Java
Release 1.0