com.atlassian.confluence.json.introspector
Class DefaultIntrospector

java.lang.Object
  extended by com.atlassian.confluence.json.introspector.DefaultIntrospector
All Implemented Interfaces:
Introspector

public class DefaultIntrospector
extends java.lang.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
static DefaultIntrospector getInstance()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.Object bean)
          Return the properties of the bean as property names mapped to property value Objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DefaultIntrospector getInstance()

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.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 interface Introspector
Returns:
map of property name Strings to property values.


Copyright © 2003-2014 Atlassian. All Rights Reserved.