public class ODataJsonInstanceAnnotationSerializer extends Object
| Constructor and Description |
|---|
ODataJsonInstanceAnnotationSerializer(org.apache.olingo.commons.api.format.ContentType contentType,
org.apache.olingo.commons.api.IConstants constants) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeInstanceAnnotationsOnEntity(List<org.apache.olingo.commons.api.data.Annotation> annotations,
com.fasterxml.jackson.core.JsonGenerator json)
Write the instance annotation of an entity
|
void |
writeInstanceAnnotationsOnProperties(org.apache.olingo.commons.api.edm.EdmProperty edmProperty,
org.apache.olingo.commons.api.data.Property property,
com.fasterxml.jackson.core.JsonGenerator json)
Write instance annotation of a property
|
protected void |
writePrimitiveValue(String name,
org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
Object primitiveValue,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode,
com.fasterxml.jackson.core.JsonGenerator json) |
public ODataJsonInstanceAnnotationSerializer(org.apache.olingo.commons.api.format.ContentType contentType,
org.apache.olingo.commons.api.IConstants constants)
public void writeInstanceAnnotationsOnEntity(List<org.apache.olingo.commons.api.data.Annotation> annotations, com.fasterxml.jackson.core.JsonGenerator json) throws IOException, org.apache.olingo.server.api.serializer.SerializerException, org.apache.commons.codec.DecoderException
annotations - List of annotationsjson - JsonGeneratorIOExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionorg.apache.commons.codec.DecoderExceptionpublic void writeInstanceAnnotationsOnProperties(org.apache.olingo.commons.api.edm.EdmProperty edmProperty,
org.apache.olingo.commons.api.data.Property property,
com.fasterxml.jackson.core.JsonGenerator json)
throws IOException,
org.apache.olingo.server.api.serializer.SerializerException,
org.apache.commons.codec.DecoderException
edmProperty - EdmPropertyproperty - Propertyjson - JsonGeneratorIOExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionorg.apache.commons.codec.DecoderExceptionprotected void writePrimitiveValue(String name, org.apache.olingo.commons.api.edm.EdmPrimitiveType type, Object primitiveValue, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, com.fasterxml.jackson.core.JsonGenerator json) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException, IOException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionIOExceptionCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.