OSGi™ Service Platform
Release 4 Version 4.2

Class MEIDCondition

  extended by org.osgi.util.cdma.MEIDCondition

public class MEIDCondition
extends java.lang.Object

Class representing an MEID condition. Instances of this class contain a string value that is matched against the MEID of the device.


Method Summary
static Condition getCondition(Bundle bundle, ConditionInfo conditionInfo)
          Creates a MEIDCondition object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static Condition getCondition(Bundle bundle,
                                     ConditionInfo conditionInfo)
Creates a MEIDCondition object.

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(*).
A Condition object that indicates whether the specified MEID number matches that of the device. If the number ends with 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.

OSGi™ Service Platform
Release 4 Version 4.2

Copyright © OSGi Alliance (2000, 2010). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0