Class ObjectCodecService.NumberCodec
- java.lang.Object
- 
- org.nuxeo.ecm.automation.io.services.codec.ObjectCodec<Number>
- 
- org.nuxeo.ecm.automation.io.services.codec.ObjectCodecService.NumberCodec
 
 
- 
- Enclosing class:
- ObjectCodecService
 
 public static class ObjectCodecService.NumberCodec extends ObjectCodec<Number> 
- 
- 
Field Summary- 
Fields inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodectype
 
- 
 - 
Constructor SummaryConstructors Constructor Description NumberCodec()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()Get this codec type.booleanisBuiltin()Whether this codec is a builtin codecNumberread(com.fasterxml.jackson.core.JsonParser jp, CoreSession session)When the object codec is called the stream is positioned on the first value.voidregister(ObjectCodecService service)voidwrite(com.fasterxml.jackson.core.JsonGenerator jg, Number value)- 
Methods inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodecfindParametrizedType, getJavaType
 
- 
 
- 
- 
- 
Method Detail- 
getTypepublic String getType() Description copied from class:ObjectCodecGet this codec type. Implementors can override to return a short name. The default name is the object type name.- Overrides:
- getTypein class- ObjectCodec<Number>
 
 - 
writepublic void write(com.fasterxml.jackson.core.JsonGenerator jg, Number value) throws IOException- Overrides:
- writein class- ObjectCodec<Number>
- Throws:
- IOException
 
 - 
readpublic Number read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException Description copied from class:ObjectCodecWhen 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:
- readin class- ObjectCodec<Number>
- Throws:
- IOException
 
 - 
isBuiltinpublic boolean isBuiltin() Description copied from class:ObjectCodecWhether this codec is a builtin codec- Overrides:
- isBuiltinin class- ObjectCodec<Number>
 
 - 
registerpublic void register(ObjectCodecService service) 
 
- 
 
-