Class Struct2JsonBuilder
java.lang.Object
com.sap.cds.adapter.odata.v4.serializer.json.Struct2JsonBuilder
- Direct Known Subclasses:
Complex2JsonBuilder
,Entity2JsonBuilder
Abstract builder for both complex types and entities.
-
Field Summary
Modifier and TypeFieldDescriptionprotected IConstants
protected ContentType
protected String
protected ExpandItem
protected boolean
protected ServiceMetadata
protected final Struct2JsonOptions
protected String
protected final EdmStructuredType
-
Constructor Summary
ModifierConstructorDescriptionprotected
Struct2JsonBuilder
(Struct2JsonOptions options, EdmStructuredType structType) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addContextAnnotation
(Struct2Json struct2json, boolean withETag) void
addDynamicExpandProperties
(Struct2Json struct2json, Set<String> potentialDynamicProperties) protected abstract void
addNavigationLink
(String navigationPropertyName) protected void
addTypeAnnotation
(Struct2Json struct2json) protected void
createProperties
(Struct2Json struct2json) protected void
protected EdmStructuredType
-
Field Details
-
options
-
structType
-
constants
-
eTagProperty
-
metadata
-
selected
-
hasExpand
protected boolean hasExpand -
expandAll
-
resourceName
-
contentType
-
-
Constructor Details
-
Struct2JsonBuilder
-
-
Method Details
-
structType
-
addContextAnnotation
-
createSelectList
protected void createSelectList() -
addTypeAnnotation
-
createProperties
-
addDynamicExpandProperties
public void addDynamicExpandProperties(Struct2Json struct2json, Set<String> potentialDynamicProperties)
-