net.rim.device.api.command
Class CommandUtils

java.lang.Object
  extended by net.rim.device.api.command.CommandUtils

public final class CommandUtils
extends Object

Command utilities.

Since:
BlackBerry API 6.0.0

Method Summary
static boolean isLegalCategory(String category)
          Determines the legality of a category string.
static boolean isLegalName(String name)
          Determines the legality of a name string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Method Detail

isLegalName

public static boolean isLegalName(String name)
Determines the legality of a name string. To be legal, name strings must not be null or empty, must contain no more than 255 characters, and must match this regular expression: ([a-zA-Z]|_|:)[a-zA-Z0-9\.\-_:]*

Parameters:
name - The name to test for legality, can be null.
Returns:
true if the name is legal, false otherwise.
Since:
BlackBerry API 6.0.0

isLegalCategory

public static boolean isLegalCategory(String category)
Determines the legality of a category string. To be legal, category strings must not be null or empty, must contain no more than 255 characters, and must match this regular expression: ([a-zA-Z]|_|:)[a-zA-Z0-9\.\-_:]*

Parameters:
category - The category to test for legality, can be null.
Returns:
true if the category is legal, false otherwise.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal