public class

DefaultIntrospector

extends Object
implements Introspector
java.lang.Object
   ↳ com.atlassian.confluence.json.introspector.DefaultIntrospector

Class Overview

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)

Summary

Public Methods
static DefaultIntrospector getInstance()
Map<StringObject> getProperties(Object bean)
Return the properties of the bean as property names mapped to property value Objects.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.json.introspector.Introspector

Public Methods

public static DefaultIntrospector getInstance ()

public Map<StringObject> getProperties (Object bean)

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.

Returns
  • map of property name Strings to property values.