Class EdmAssistedJsonSerializer
java.lang.Object
org.apache.olingo.server.core.serializer.json.EdmAssistedJsonSerializer
- All Implemented Interfaces:
EdmAssistedSerializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionEdmAssistedJsonSerializer(ContentType contentType) EdmAssistedJsonSerializer(ContentType contentType, IConstants constants) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSerialize(EdmEntityType entityType, AbstractEntityCollection entityCollection, String contextURLString, String metadataETag, com.fasterxml.jackson.core.JsonGenerator json) protected voiddoSerialize(EdmEntityType entityType, Entity entity, String contextURLString, String metadataETag, com.fasterxml.jackson.core.JsonGenerator json) entity(ServiceMetadata metadata, EdmEntityType entityType, Entity entity, EdmAssistedSerializerOptions options) entityCollection(ServiceMetadata metadata, EdmEntityType entityType, AbstractEntityCollection entityCollection, EdmAssistedSerializerOptions options) Writes entity-collection data into an InputStream.protected voidprimitiveValue(com.fasterxml.jackson.core.JsonGenerator json, EdmPrimitiveType valueType, String typeName, EdmProperty edmProperty, Object value) protected SerializerResultserialize(ServiceMetadata metadata, EdmEntityType entityType, AbstractODataObject obj, ContextURL contextURL) protected voidvaluable(com.fasterxml.jackson.core.JsonGenerator json, Valuable valuable, String name, EdmType type, EdmProperty edmProperty)
-
Field Details
-
isIEEE754Compatible
protected final boolean isIEEE754Compatible -
isODataMetadataNone
protected final boolean isODataMetadataNone -
isODataMetadataFull
protected final boolean isODataMetadataFull
-
-
Constructor Details
-
EdmAssistedJsonSerializer
-
EdmAssistedJsonSerializer
-
-
Method Details
-
entityCollection
public SerializerResult entityCollection(ServiceMetadata metadata, EdmEntityType entityType, AbstractEntityCollection entityCollection, EdmAssistedSerializerOptions options) throws SerializerException Description copied from interface:EdmAssistedSerializerWrites entity-collection data into an InputStream. Information from the EDM is used in addition to information from the data and preferred, but the serializer works without any EDM information as well. Linked data is always written as expanded items (so closed reference loops have to be avoided).- Specified by:
entityCollectionin interfaceEdmAssistedSerializer- Parameters:
metadata- metadata for the serviceentityType- theEdmEntityTypeornullif not availableentityCollection- the data of the entity collectionoptions- options for the serializer- Throws:
SerializerException
-
entity
public SerializerResult entity(ServiceMetadata metadata, EdmEntityType entityType, Entity entity, EdmAssistedSerializerOptions options) throws SerializerException - Throws:
SerializerException
-
serialize
protected SerializerResult serialize(ServiceMetadata metadata, EdmEntityType entityType, AbstractODataObject obj, ContextURL contextURL) throws SerializerException - Throws:
SerializerException
-
doSerialize
protected void doSerialize(EdmEntityType entityType, AbstractEntityCollection entityCollection, String contextURLString, String metadataETag, com.fasterxml.jackson.core.JsonGenerator json) throws IOException, SerializerException - Throws:
IOExceptionSerializerException
-
doSerialize
protected void doSerialize(EdmEntityType entityType, Entity entity, String contextURLString, String metadataETag, com.fasterxml.jackson.core.JsonGenerator json) throws IOException, SerializerException - Throws:
IOExceptionSerializerException
-
primitiveValue
protected void primitiveValue(com.fasterxml.jackson.core.JsonGenerator json, EdmPrimitiveType valueType, String typeName, EdmProperty edmProperty, Object value) throws IOException, SerializerException - Throws:
IOExceptionSerializerException
-
valuable
protected void valuable(com.fasterxml.jackson.core.JsonGenerator json, Valuable valuable, String name, EdmType type, EdmProperty edmProperty) throws IOException, SerializerException - Throws:
IOExceptionSerializerException
-