org.fusesource.hawtbuf.proto.compiler
Class IntrospectionSupport
java.lang.Object
org.fusesource.hawtbuf.proto.compiler.IntrospectionSupport
public final class IntrospectionSupport
- extends Object
Support class used to do introspection/reflection based setting and getting of properties on a Java Bean.
- Author:
- Hiram Chirino
Method Summary |
protected static void |
appendToString(StringBuffer buffer,
Object value)
|
static Map<String,Object> |
extractProperties(Map props,
String optionPrefix)
|
static boolean |
getProperties(Object target,
Map props,
String optionPrefix)
|
static boolean |
setProperties(Object target,
Map props)
|
static boolean |
setProperties(Object target,
Map<String,?> props,
String optionPrefix)
|
static boolean |
setProperty(Object target,
String name,
Object value)
|
static String |
simpleName(Class clazz)
|
static String |
toString(Object target)
|
static String |
toString(Object target,
Class stopClass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getProperties
public static boolean getProperties(Object target,
Map props,
String optionPrefix)
setProperties
public static boolean setProperties(Object target,
Map<String,?> props,
String optionPrefix)
extractProperties
public static Map<String,Object> extractProperties(Map props,
String optionPrefix)
setProperties
public static boolean setProperties(Object target,
Map props)
setProperty
public static boolean setProperty(Object target,
String name,
Object value)
toString
public static String toString(Object target)
toString
public static String toString(Object target,
Class stopClass)
appendToString
protected static void appendToString(StringBuffer buffer,
Object value)
simpleName
public static String simpleName(Class clazz)
Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.