public class MEIDCondition
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
MEID |
private static int |
MEID_LENGTH |
private static java.lang.String |
ORG_OSGI_UTIL_CDMA_MEID |
| Modifier | Constructor and Description |
|---|---|
private |
MEIDCondition() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.service.condpermadmin.Condition |
getCondition(org.osgi.framework.Bundle bundle,
org.osgi.service.condpermadmin.ConditionInfo conditionInfo)
Creates a MEIDCondition object.
|
private static final java.lang.String ORG_OSGI_UTIL_CDMA_MEID
private static final java.lang.String MEID
private static final int MEID_LENGTH
public static org.osgi.service.condpermadmin.Condition getCondition(org.osgi.framework.Bundle bundle,
org.osgi.service.condpermadmin.ConditionInfo conditionInfo)
bundle - This parameter is ignored, as the MEID number is the
property of the mobile device, and thus the same for all bundles.conditionInfo - Contains the MEID value against which to match the
device's MEID. Its ConditionInfo.getArgs() method should
return a String array with one value, the MEID string. The MEID is
14 hexadecimal digits (56 bits) without hyphens. Limited pattern
matching is allowed: the string is 0 to 13 digits, followed by an
asterisk(*).*), then the beginning of the MEID is
compared to the pattern.java.lang.IllegalArgumentException - If the MEID is not a string of 14
hexadecimal digits, or 0 to 13 hexadecimal digits with an
* at the end.