|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.command.CommandUtils
public final class CommandUtils
Command utilities.
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 |
---|
public static boolean isLegalName(String name)
null
or empty, must contain no more than 255 characters,
and must match this regular expression:
([a-zA-Z]|_|:)[a-zA-Z0-9\.\-_:]*
name
- The name to test for legality, can be null
.
true
if the name is legal, false
otherwise.public static boolean isLegalCategory(String category)
null
or empty, must contain no more than 255 characters,
and must match this regular expression:
([a-zA-Z]|_|:)[a-zA-Z0-9\.\-_:]*
category
- The category to test for legality, can be null
.
true
if the category is legal, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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