com.sap.cds.adapter.odata.v4.serializer.json.StructCollection2Json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cds-adapter-odata-v4 Show documentation
Show all versions of cds-adapter-odata-v4 Show documentation
OData V4 adapter for CDS Services Java
/**************************************************************************
* (C) 2019-2024 SAP SE or an SAP affiliate company. All rights reserved. *
**************************************************************************/
package com.sap.cds.adapter.odata.v4.serializer.json;
import java.io.IOException;
import java.util.Map;
import org.apache.olingo.commons.api.Constants;
import com.fasterxml.jackson.core.JsonGenerator;
import com.sap.cds.adapter.odata.v4.serializer.json.api.Data2Json;
import com.sap.cds.adapter.odata.v4.serializer.json.primitive.Number2Json;
import com.sap.cds.adapter.odata.v4.serializer.json.primitive.String2Json;
public abstract class StructCollection2Json implements Data2Json>> {
// prepared serializers:
Struct2Json entity2Json;
String2Json nextLink;
Number2Json>> count;
String2Json>> countStr;
String navigationPropertyName;
boolean writeOnlyReferences;
StructCollection2Json() {
}
@Override
public void toJson(Iterable