org.rhq.plugins.jbossas5.util
Class MetaTypeUtils

java.lang.Object
  extended by org.rhq.plugins.jbossas5.util.MetaTypeUtils

public class MetaTypeUtils
extends Object

Author:
Mark Spritzler, Ian Springer

Method Summary
static boolean instanceOf(org.jboss.metatype.api.values.MetaValue metaValue, org.jboss.metatype.api.types.MetaType metaType)
          Checks if the specified MetaValue is an instance of the specified MetaType.
static boolean isNumeric(org.jboss.metatype.api.types.SimpleMetaType simpleMetaType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instanceOf

public static boolean instanceOf(org.jboss.metatype.api.values.MetaValue metaValue,
                                 org.jboss.metatype.api.types.MetaType metaType)
Checks if the specified MetaValue is an instance of the specified MetaType.

Parameters:
metaValue - a MetaValue
metaType - a MetaType
Returns:
true if the MetaValue is an instance of the MetaType, or false if not

isNumeric

public static boolean isNumeric(org.jboss.metatype.api.types.SimpleMetaType simpleMetaType)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.