站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

MetaDataUtil (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


org.jboss.mx.util
Class MetaDataUtil

java.lang.Object
  extended byorg.jboss.mx.util.MetaDataUtil

public final class MetaDataUtil
extends Object

Utilities for handling meta data Based on Strings from common (should jbossmx use common?)

Version:
$Revision: 1.4 $
Author:
Jason Dillon, Scott Stark, Adrian Brock

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

BOOLEAN_TYPE_NAME

public static final String BOOLEAN_TYPE_NAME

BYTE_TYPE_NAME

public static final String BYTE_TYPE_NAME

CHAR_TYPE_NAME

public static final String CHAR_TYPE_NAME

DOUBLE_TYPE_NAME

public static final String DOUBLE_TYPE_NAME

FLOAT_TYPE_NAME

public static final String FLOAT_TYPE_NAME

INT_TYPE_NAME

public static final String INT_TYPE_NAME

LONG_TYPE_NAME

public static final String LONG_TYPE_NAME

SHORT_TYPE_NAME

public static final String SHORT_TYPE_NAME

VOID_TYPE_NAME

public static final String VOID_TYPE_NAME
Constructor Detail

MetaDataUtil

public MetaDataUtil()
Method Detail

isValidJavaIdentifier

public static final boolean isValidJavaIdentifier(String string)
Tests whether the passed string is a valid java identifier

Parameters:
string - the string to test
Returns:
true when it is valid

isValidJavaType

public static final boolean isValidJavaType(String string)
Tests whether the passed string is a valid java type

Parameters:
string - the string to test
Returns:
true when it is valid

getBaseClassName

public 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.

NOTE: The class is not check for validity.

Null is returned when the array declaration is invalid.

Returns:
the underlying class name or null

isPrimitive

public static boolean isPrimitive(String string)
Checks whether a string is primitive

Parameters:
string - the string to test
Returns:
true if it is primitive


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.