Class IntrospectionSupport
java.lang.Object
org.fusesource.hawtbuf.proto.compiler.IntrospectionSupport
Support class used to do introspection/reflection based setting and getting of properties on a Java Bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addFields
(Object target, Class startClass, Class<Object> stopClass, LinkedHashMap<String, Object> map) protected static void
appendToString
(StringBuffer buffer, Object value) private static Object
private static String
convertToString
(Object value, Class type) extractProperties
(Map props, String optionPrefix) private static Method
findSetterMethod
(Class clazz, String name) static boolean
getProperties
(Object target, Map props, String optionPrefix) private static boolean
isSettableType
(Class clazz) 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
static String
-
Constructor Details
-
IntrospectionSupport
private IntrospectionSupport()
-
-
Method Details
-
getProperties
-
setProperties
-
extractProperties
-
setProperties
-
setProperty
-
convert
- Throws:
URISyntaxException
-
convertToString
- Throws:
URISyntaxException
-
findSetterMethod
-
isSettableType
-
toString
-
toString
-
appendToString
-
simpleName
-
addFields
-