Class 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 Detail

      • JsonPropertyEntitySerializer

        public JsonPropertyEntitySerializer()
    • 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 - Writer
        propertyInfo - EntityPropertyInfo
        value - 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:
        IOException
        org.apache.olingo.odata2.api.edm.EdmException
        org.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:
        IOException
        org.apache.olingo.odata2.api.edm.EdmException