org.skyscreamer.yoga.model
Class ObjectStreamingJsonHierarchicalModel

java.lang.Object
  extended by org.skyscreamer.yoga.model.ObjectStreamingJsonHierarchicalModel
All Implemented Interfaces:
HierarchicalModel<org.codehaus.jackson.JsonGenerator>, MapHierarchicalModel<org.codehaus.jackson.JsonGenerator>

public class ObjectStreamingJsonHierarchicalModel
extends Object
implements MapHierarchicalModel<org.codehaus.jackson.JsonGenerator>


Field Summary
protected  org.codehaus.jackson.JsonGenerator generator
           
 
Constructor Summary
ObjectStreamingJsonHierarchicalModel(org.codehaus.jackson.JsonGenerator generator)
           
ObjectStreamingJsonHierarchicalModel(org.codehaus.jackson.JsonGenerator generator, ArrayStreamingJsonHierarchicalModel arrayModel)
           
 
Method Summary
 void addProperty(String name, Object result)
           
 ListHierarchicalModel<org.codehaus.jackson.JsonGenerator> createChildList(String name)
           
 MapHierarchicalModel<org.codehaus.jackson.JsonGenerator> createChildMap(String name)
           
 void finished()
           
 org.codehaus.jackson.JsonGenerator getUnderlyingModel()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generator

protected org.codehaus.jackson.JsonGenerator generator
Constructor Detail

ObjectStreamingJsonHierarchicalModel

public ObjectStreamingJsonHierarchicalModel(org.codehaus.jackson.JsonGenerator generator)
                                     throws IOException
Throws:
IOException

ObjectStreamingJsonHierarchicalModel

public ObjectStreamingJsonHierarchicalModel(org.codehaus.jackson.JsonGenerator generator,
                                            ArrayStreamingJsonHierarchicalModel arrayModel)
                                     throws IOException
Throws:
IOException
Method Detail

start

public void start()
           throws IOException
Throws:
IOException

getUnderlyingModel

public org.codehaus.jackson.JsonGenerator getUnderlyingModel()
Specified by:
getUnderlyingModel in interface HierarchicalModel<org.codehaus.jackson.JsonGenerator>

finished

public void finished()
              throws IOException
Specified by:
finished in interface HierarchicalModel<org.codehaus.jackson.JsonGenerator>
Throws:
IOException

addProperty

public void addProperty(String name,
                        Object result)
                 throws IOException
Specified by:
addProperty in interface MapHierarchicalModel<org.codehaus.jackson.JsonGenerator>
Throws:
IOException

createChildMap

public MapHierarchicalModel<org.codehaus.jackson.JsonGenerator> createChildMap(String name)
                                                                        throws IOException
Specified by:
createChildMap in interface MapHierarchicalModel<org.codehaus.jackson.JsonGenerator>
Throws:
IOException

createChildList

public ListHierarchicalModel<org.codehaus.jackson.JsonGenerator> createChildList(String name)
                                                                          throws IOException
Specified by:
createChildList in interface MapHierarchicalModel<org.codehaus.jackson.JsonGenerator>
Throws:
IOException


Copyright © 2013. All Rights Reserved.