@Internal public class EntityPropertyBeanHelper extends Object
Constructor and Description |
---|
EntityPropertyBeanHelper() |
Modifier and Type | Method and Description |
---|---|
static List<EntityPropertyBean> |
createFrom(List<Map<String,Object>> jacksonEnteredProperties)
EntityPropertyBean s are represented in our Jackson beans as a List of Maps (aka JSON objects)
and we need to get them from that format and into serialised JSON string format
|
static EntityPropertyBean |
createFrom(String key,
Object jsonJavaObject,
String selfLink)
Creates an EntityPropertyBean by serialising object into JSON for it
|
static Map<String,org.codehaus.jackson.JsonNode> |
propertiesAsMap(List<EntityPropertyBean> properties)
Turns a list of EntityPropertyBean into a Map of String -> Jackson JsonNode
|
public static EntityPropertyBean createFrom(String key, Object jsonJavaObject, String selfLink)
key
- the key of the entity propertyjsonJavaObject
- the java object to JSON serializeselfLink
- a self link to this property@Nullable public static List<EntityPropertyBean> createFrom(List<Map<String,Object>> jacksonEnteredProperties)
jacksonEnteredProperties
- the wire serialised entity property valuespublic static Map<String,org.codehaus.jackson.JsonNode> propertiesAsMap(List<EntityPropertyBean> properties)
properties
- the list of EntityPropertyBean'sCopyright © 2002-2022 Atlassian. All Rights Reserved.