org.gedcomx.rt.json
Class KeyedListSerializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonSerializer<Collection<? extends HasJsonKey>>
      extended by org.gedcomx.rt.json.KeyedListSerializer

public class KeyedListSerializer
extends org.codehaus.jackson.map.JsonSerializer<Collection<? extends HasJsonKey>>

Author:
Ryan Heaton

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
org.codehaus.jackson.map.JsonSerializer.None
 
Field Summary
static String JSON_DEFAULT_KEY
           
 
Constructor Summary
KeyedListSerializer()
           
 
Method Summary
 void serialize(Collection<? extends HasJsonKey> value, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider)
           
 
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
handledType, serializeWithType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSON_DEFAULT_KEY

public static final String JSON_DEFAULT_KEY
See Also:
Constant Field Values
Constructor Detail

KeyedListSerializer

public KeyedListSerializer()
Method Detail

serialize

public void serialize(Collection<? extends HasJsonKey> value,
                      org.codehaus.jackson.JsonGenerator jgen,
                      org.codehaus.jackson.map.SerializerProvider provider)
               throws IOException,
                      org.codehaus.jackson.JsonProcessingException
Specified by:
serialize in class org.codehaus.jackson.map.JsonSerializer<Collection<? extends HasJsonKey>>
Throws:
IOException
org.codehaus.jackson.JsonProcessingException


Copyright © 2016. All rights reserved.