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
FieldsModifier and TypeFieldDescriptionprotected IConstantsprotected ContentTypeprotected Stringprotected ExpandItemprotected booleanprotected ServiceMetadataprotected final Struct2JsonOptionsprotected Stringprotected final EdmStructuredType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStruct2JsonBuilder(Struct2JsonOptions options, EdmStructuredType structType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddContextAnnotation(Struct2Json struct2json, boolean withETag) voidaddDynamicExpandProperties(Struct2Json struct2json, Set<String> potentialDynamicProperties) protected abstract voidaddNavigationLink(String navigationPropertyName) protected voidaddTypeAnnotation(Struct2Json struct2json) protected voidcreateProperties(Struct2Json struct2json) protected voidprotected 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)
-