Brooklyn

brooklyn.util.collections
[Java] Class Jsonya

java.lang.Object
  brooklyn.util.collections.Jsonya

@Beta
public class Jsonya

Jsonya = JSON-yet-another (tool)

provides conveniences for working with maps and lists containing maps and lists, and other datatypes too, easily convertible to json.

see JsonyaTest for examples

Since:
0.6.0


Nested Class Summary
static class Jsonya.Navigator

 
Method Summary
static Jsonya.Navigator at(java.lang.Object... pathSegments)

convenience for Navigator#at(Object, Object...) on a newInstance()

static Jsonya.Navigator newInstance()

creates a Navigator backed by a newly created map; the map can be accessed by Navigator#getMap()#getMap()

static Jsonya.Navigator of(java.lang.Object map)

creates a Navigator backed by the given map (focussed at the root)

static Jsonya.Navigator of(Jsonya.Navigator navigator)

creates a Navigator backed by the map at the focus of the given navigator

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

at

public static Jsonya.Navigator at(java.lang.Object... pathSegments)
convenience for Navigator#at(Object, Object...) on a newInstance()


newInstance

public static Jsonya.Navigator newInstance()
creates a Navigator backed by a newly created map; the map can be accessed by Navigator#getMap()#getMap()


of

public static Jsonya.Navigator of(java.lang.Object map)
creates a Navigator backed by the given map (focussed at the root)


of

public static Jsonya.Navigator of(Jsonya.Navigator navigator)
creates a Navigator backed by the map at the focus of the given navigator


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.