public class StructDataParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StructDataParser.Include
Defines how JSON data is handled that does not correspond to declared CDS properties.
|
Modifier and Type | Method and Description |
---|---|
static StructDataParser |
create(CdsStructuredType type) |
List<Map<String,Object>> |
parseArray(String jsonArray) |
List<Map<String,Object>> |
parseArray(String jsonArray,
StructDataParser.Include incl) |
static <T> List<T> |
parseArrayOf(CdsSimpleType itemType,
String jsonArray) |
static <T> List<T> |
parseArrayOf(CdsSimpleType itemType,
String jsonArray,
StructDataParser.Include incl) |
static List<Map<String,Object>> |
parseArrayOf(CdsStructuredType itemType,
String jsonArray) |
static List<Map<String,Object>> |
parseArrayOf(CdsStructuredType itemType,
String jsonArray,
StructDataParser.Include incl) |
static List<?> |
parseArrayOf(CdsType itemType,
String jsonArray) |
static List<?> |
parseArrayOf(CdsType itemType,
String jsonArray,
StructDataParser.Include incl) |
Map<String,Object> |
parseObject(String jsonObject) |
Map<String,Object> |
parseObject(String jsonObject,
StructDataParser.Include incl) |
public static StructDataParser create(CdsStructuredType type)
public static List<?> parseArrayOf(CdsType itemType, String jsonArray, StructDataParser.Include incl)
public static <T> List<T> parseArrayOf(CdsSimpleType itemType, String jsonArray)
public static <T> List<T> parseArrayOf(CdsSimpleType itemType, String jsonArray, StructDataParser.Include incl)
public static List<Map<String,Object>> parseArrayOf(CdsStructuredType itemType, String jsonArray)
public static List<Map<String,Object>> parseArrayOf(CdsStructuredType itemType, String jsonArray, StructDataParser.Include incl)
public List<Map<String,Object>> parseArray(String jsonArray, StructDataParser.Include incl)
public Map<String,Object> parseObject(String jsonObject, StructDataParser.Include incl)
Copyright © 2023 SAP. All rights reserved.