Class DefaultIntrospector
- java.lang.Object
-
- com.atlassian.confluence.json.introspector.DefaultIntrospector
-
- All Implemented Interfaces:
Introspector
public class DefaultIntrospector extends Object implements Introspector
Override some behaviour of the JSON library JSON object to allow mapped fields to be converted to JSON objects before adding to map. (The default is to just store the object's toString representation in the map)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultIntrospector
getInstance()
Map<String,Object>
getProperties(Object bean)
Return the properties of the bean as property names mapped to property value Objects.
-
-
-
Method Detail
-
getInstance
public static DefaultIntrospector getInstance()
-
getProperties
public Map<String,Object> getProperties(Object bean)
Description copied from interface:Introspector
Return the properties of the bean as property names mapped to property value Objects.
Properties are defined by getter methods of the form getX or isX, with no parameters.- Specified by:
getProperties
in interfaceIntrospector
- Returns:
- map of property name Strings to property values.
-
-