org.eclipse.mtj.core.sdk.device.midp
Enum MIDPAPIType
java.lang.Object
java.lang.Enum<
MIDPAPIType>
org.eclipse.mtj.core.sdk.device.midp.MIDPAPIType
-
All Implemented Interfaces:
-
Serializable,
Comparable<
MIDPAPIType>
-
public enum MIDPAPIType
- extends
Enum<
MIDPAPIType>
This enumeration represents the four types of
IMIDPAPI
possible.
-
Since:
- 1.0
Enum Constant Summary
|
CONFIGURATION
A configuration provides the most basic set of libraries and virtual
machine capabilities for a broad range of devices. |
OPTIONAL
An optional package is a set of technology-specific APIs. |
PROFILE
A profile is a set of APIs that support a narrower range of devices. |
UNKNOWN
An Unknown type of MIDPAPI . |
CONFIGURATION
public static final
MIDPAPIType CONFIGURATION
- A configuration provides the most basic set of libraries and virtual
machine capabilities for a broad range of devices.
PROFILE
public static final
MIDPAPIType PROFILE
- A profile is a set of APIs that support a narrower range of devices.
OPTIONAL
public static final
MIDPAPIType OPTIONAL
- An optional package is a set of technology-specific APIs.
UNKNOWN
public static final
MIDPAPIType UNKNOWN
- An Unknown type of
MIDPAPI
.
values
public static
MIDPAPIType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MIDPAPIType c : MIDPAPIType.values())
System.out.println(c);
-
-
Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static
MIDPAPIType 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
-
NullPointerException
- if the argument is null
getTypecode
public int getTypecode()
- Returns the numerical code that represents this type.
-
-
Returns:
- the numerical code that represents this type.
toString
public
String toString()
-
-
Overrides:
-
toString
in class
Enum<
MIDPAPIType>
-
getMIDPAPITypeByCode
public static
MIDPAPIType getMIDPAPITypeByCode(int code)
- Return a MIDPAPIType associated with the informed code
-
-
Parameters:
-
code
- the code that represents an specific
MIDPAPIType
instance.
-
Returns:
- the MIDPAPIType instance associated with the informed code.