Milyn-Tinak Version 0.6.1

org.milyn.device
Class UAContextUtil

java.lang.Object
  extended byorg.milyn.device.UAContextUtil

public abstract class UAContextUtil
extends java.lang.Object

UAContext utility methods.

Author:
tfennelly

Constructor Summary
UAContextUtil()
           
 
Method Summary
static boolean isDeviceOrProfile(java.lang.String name, UAContext deviceContext)
          Does the name parameter match device named in the deviceContext, or on of the deviceContext profiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UAContextUtil

public UAContextUtil()
Method Detail

isDeviceOrProfile

public static boolean isDeviceOrProfile(java.lang.String name,
                                        UAContext deviceContext)
Does the name parameter match device named in the deviceContext, or on of the deviceContext profiles.

Parameters:
name - The name.
deviceContext - The deviceContext.
Returns:
True if the name parameter is the requesting device's "Common Name" or the name name of one of it's profiles.

Milyn-Tinak Version 0.6.1