Class ODataJsonInstanceAnnotationSerializer
java.lang.Object
org.apache.olingo.server.core.serializer.json.ODataJsonInstanceAnnotationSerializer
-
Constructor Summary
ConstructorsConstructorDescriptionODataJsonInstanceAnnotationSerializer(ContentType contentType, IConstants constants) -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteInstanceAnnotationsOnEntity(List<Annotation> annotations, com.fasterxml.jackson.core.JsonGenerator json) Write the instance annotation of an entityvoidwriteInstanceAnnotationsOnProperties(EdmProperty edmProperty, Property property, com.fasterxml.jackson.core.JsonGenerator json) Write instance annotation of a propertyprotected voidwritePrimitiveValue(String name, EdmPrimitiveType type, Object primitiveValue, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, com.fasterxml.jackson.core.JsonGenerator json)
-
Constructor Details
-
ODataJsonInstanceAnnotationSerializer
-
-
Method Details
-
writeInstanceAnnotationsOnEntity
public void writeInstanceAnnotationsOnEntity(List<Annotation> annotations, com.fasterxml.jackson.core.JsonGenerator json) throws IOException, SerializerException, org.apache.commons.codec.DecoderException Write the instance annotation of an entity- Parameters:
annotations- List of annotationsjson- JsonGenerator- Throws:
IOExceptionSerializerExceptionorg.apache.commons.codec.DecoderException
-
writeInstanceAnnotationsOnProperties
public void writeInstanceAnnotationsOnProperties(EdmProperty edmProperty, Property property, com.fasterxml.jackson.core.JsonGenerator json) throws IOException, SerializerException, org.apache.commons.codec.DecoderException Write instance annotation of a property- Parameters:
edmProperty- EdmPropertyproperty- Propertyjson- JsonGenerator- Throws:
IOExceptionSerializerExceptionorg.apache.commons.codec.DecoderException
-
writePrimitiveValue
protected void writePrimitiveValue(String name, EdmPrimitiveType type, Object primitiveValue, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, com.fasterxml.jackson.core.JsonGenerator json) throws EdmPrimitiveTypeException, IOException - Throws:
EdmPrimitiveTypeExceptionIOException
-