com.atlassian.bamboo.jsonator
Interface Introspector

All Known Implementing Classes:
DefaultIntrospector

public interface Introspector

Converts a Java bean to a set of String-to-Object mappings by enumerating all get* and is* methods on the bean.


Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.Object bean, java.lang.Class<? extends java.lang.annotation.Annotation> annotationFilter)
          Return the properties of the bean as property names mapped to property value Objects.
 

Method Detail

getProperties

@NotNull
java.util.Map<java.lang.String,java.lang.Object> getProperties(@NotNull
                                                                       java.lang.Object bean,
                                                                       @Nullable
                                                                       java.lang.Class<? extends java.lang.annotation.Annotation> annotationFilter)
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.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.