Class JsonPropertyEntitySerializer
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.ep.serializer.JsonPropertyEntitySerializer
-
public class JsonPropertyEntitySerializer extends Object
Producer for writing a single simple or complex property in JSON, also usable for function imports returning a single instance of a simple or complex type.
-
-
Constructor Summary
Constructors Constructor Description JsonPropertyEntitySerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Writer writer, EntityPropertyInfo propertyInfo, Object value)Serializes a property of every entry in json payloadprotected static voidappendPropertyMetadata(JsonStreamWriter jsonStreamWriter, org.apache.olingo.odata2.api.edm.EdmType type)protected static voidappendPropertyValue(JsonStreamWriter jsonStreamWriter, EntityPropertyInfo propertyInfo, Object value, boolean validatingFacets)
-
-
-
Method Detail
-
append
public void append(Writer writer, EntityPropertyInfo propertyInfo, Object value) throws org.apache.olingo.odata2.api.ep.EntityProviderException
Serializes a property of every entry in json payload- Parameters:
writer- WriterpropertyInfo- EntityPropertyInfovalue- Object- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException- Caso ocorra exceção
-
appendPropertyValue
protected static void appendPropertyValue(JsonStreamWriter jsonStreamWriter, EntityPropertyInfo propertyInfo, Object value, boolean validatingFacets) throws IOException, org.apache.olingo.odata2.api.edm.EdmException, org.apache.olingo.odata2.api.ep.EntityProviderException
- Throws:
IOExceptionorg.apache.olingo.odata2.api.edm.EdmExceptionorg.apache.olingo.odata2.api.ep.EntityProviderException
-
appendPropertyMetadata
protected static void appendPropertyMetadata(JsonStreamWriter jsonStreamWriter, org.apache.olingo.odata2.api.edm.EdmType type) throws IOException, org.apache.olingo.odata2.api.edm.EdmException
- Throws:
IOExceptionorg.apache.olingo.odata2.api.edm.EdmException
-
-