org.apache.pivot.json
Class JSONSerializerListener.Adapter

java.lang.Object
  extended by org.apache.pivot.json.JSONSerializerListener.Adapter
All Implemented Interfaces:
JSONSerializerListener
Enclosing interface:
JSONSerializerListener

public static class JSONSerializerListener.Adapter
extends Object
implements JSONSerializerListener

JSON serializer listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.json.JSONSerializerListener
JSONSerializerListener.Adapter
 
Constructor Summary
JSONSerializerListener.Adapter()
           
 
Method Summary
 void beginDictionary(JSONSerializer jsonSerializer, Dictionary<String,?> value)
          Called when the serializer has begun reading a dictionary value.
 void beginSequence(JSONSerializer jsonSerializer, Sequence<?> value)
          Called when the serializer has begun reading a sequence value.
 void endDictionary(JSONSerializer jsonSerializer)
          Called when the serializer has finished reading a dictionary value.
 void endSequence(JSONSerializer jsonSerializer)
          Called when the serializer has finished reading a sequence value.
 void readBoolean(JSONSerializer jsonSerializer, Boolean value)
          Called when the serializer has read a boolean value.
 void readKey(JSONSerializer jsonSerializer, String key)
          Called when the serializer has read a dictionary key.
 void readNull(JSONSerializer jsonSerializer)
          Called when the serializer has read a null value.
 void readNumber(JSONSerializer jsonSerializer, Number value)
          Called when the serializer has read a numeric value.
 void readString(JSONSerializer jsonSerializer, String value)
          Called when the serializer has read a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONSerializerListener.Adapter

public JSONSerializerListener.Adapter()
Method Detail

beginDictionary

public void beginDictionary(JSONSerializer jsonSerializer,
                            Dictionary<String,?> value)
Description copied from interface: JSONSerializerListener
Called when the serializer has begun reading a dictionary value.

Specified by:
beginDictionary in interface JSONSerializerListener

endDictionary

public void endDictionary(JSONSerializer jsonSerializer)
Description copied from interface: JSONSerializerListener
Called when the serializer has finished reading a dictionary value.

Specified by:
endDictionary in interface JSONSerializerListener

readKey

public void readKey(JSONSerializer jsonSerializer,
                    String key)
Description copied from interface: JSONSerializerListener
Called when the serializer has read a dictionary key.

Specified by:
readKey in interface JSONSerializerListener

beginSequence

public void beginSequence(JSONSerializer jsonSerializer,
                          Sequence<?> value)
Description copied from interface: JSONSerializerListener
Called when the serializer has begun reading a sequence value.

Specified by:
beginSequence in interface JSONSerializerListener

endSequence

public void endSequence(JSONSerializer jsonSerializer)
Description copied from interface: JSONSerializerListener
Called when the serializer has finished reading a sequence value.

Specified by:
endSequence in interface JSONSerializerListener

readString

public void readString(JSONSerializer jsonSerializer,
                       String value)
Description copied from interface: JSONSerializerListener
Called when the serializer has read a string value.

Specified by:
readString in interface JSONSerializerListener

readNumber

public void readNumber(JSONSerializer jsonSerializer,
                       Number value)
Description copied from interface: JSONSerializerListener
Called when the serializer has read a numeric value.

Specified by:
readNumber in interface JSONSerializerListener

readBoolean

public void readBoolean(JSONSerializer jsonSerializer,
                        Boolean value)
Description copied from interface: JSONSerializerListener
Called when the serializer has read a boolean value.

Specified by:
readBoolean in interface JSONSerializerListener

readNull

public void readNull(JSONSerializer jsonSerializer)
Description copied from interface: JSONSerializerListener
Called when the serializer has read a null value.

Specified by:
readNull in interface JSONSerializerListener