|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.MetaDataUtil
Utilities for handling meta data Based on Strings from common (should jbossmx use common?)
Field Summary | |
static String |
BOOLEAN_TYPE_NAME
|
static String |
BYTE_TYPE_NAME
|
static String |
CHAR_TYPE_NAME
|
static String |
DOUBLE_TYPE_NAME
|
static String |
FLOAT_TYPE_NAME
|
static String |
INT_TYPE_NAME
|
static String |
LONG_TYPE_NAME
|
static String |
SHORT_TYPE_NAME
|
static String |
VOID_TYPE_NAME
|
Constructor Summary | |
MetaDataUtil()
|
Method Summary | |
static String |
getBaseClassName(String className)
Gets the base class name, either the passed class name or the underlying class name if it is an array. |
static boolean |
isPrimitive(String string)
Checks whether a string is primitive |
static boolean |
isValidJavaIdentifier(String string)
Tests whether the passed string is a valid java identifier |
static boolean |
isValidJavaType(String string)
Tests whether the passed string is a valid java type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String BOOLEAN_TYPE_NAME
public static final String BYTE_TYPE_NAME
public static final String CHAR_TYPE_NAME
public static final String DOUBLE_TYPE_NAME
public static final String FLOAT_TYPE_NAME
public static final String INT_TYPE_NAME
public static final String LONG_TYPE_NAME
public static final String SHORT_TYPE_NAME
public static final String VOID_TYPE_NAME
Constructor Detail |
public MetaDataUtil()
Method Detail |
public static final boolean isValidJavaIdentifier(String string)
string
- the string to test
public static final boolean isValidJavaType(String string)
string
- the string to test
public static String getBaseClassName(String className)
NOTE: The class is not check for validity.
Null is returned when the array declaration is invalid.
public static boolean isPrimitive(String string)
string
- the string to test
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |