Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs.io
Class ObjectCodecService.BooleanCodec

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodec<Boolean>
      extended by org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodecService.BooleanCodec
Enclosing class:
ObjectCodecService

public static class ObjectCodecService.BooleanCodec
extends ObjectCodec<Boolean>


Constructor Summary
ObjectCodecService.BooleanCodec()
           
 
Method Summary
 String getType()
          Get this codec type.
 boolean isBuiltin()
          Whether this codec is a builtin codec
 Boolean read(org.codehaus.jackson.JsonParser jp)
          When the object codec is called the stream is positioned on the first value.
 void register(ObjectCodecService service)
           
 void write(org.codehaus.jackson.JsonGenerator jg, Boolean value)
           
 
Methods inherited from class org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodec
findParametrizedType, getJavaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCodecService.BooleanCodec

public ObjectCodecService.BooleanCodec()
Method Detail

getType

public String getType()
Description copied from class: ObjectCodec
Get this codec type. Implementors can override to return a short name. The default name is the object type name.

Overrides:
getType in class ObjectCodec<Boolean>
Returns:

write

public void write(org.codehaus.jackson.JsonGenerator jg,
                  Boolean value)
           throws IOException
Overrides:
write in class ObjectCodec<Boolean>
Throws:
IOException

read

public Boolean read(org.codehaus.jackson.JsonParser jp)
             throws IOException
Description copied from class: ObjectCodec
When the object codec is called the stream is positioned on the first value. For inlined objects this is the first value after the "entity-type" property. For non inlined objects this will be the object itself (i.e. '{' or '[')

Overrides:
read in class ObjectCodec<Boolean>
Returns:
Throws:
IOException

isBuiltin

public boolean isBuiltin()
Description copied from class: ObjectCodec
Whether this codec is a builtin codec

Overrides:
isBuiltin in class ObjectCodec<Boolean>
Returns:

register

public void register(ObjectCodecService service)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.