public final class JSonSchemaHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getSafeValue(String key,
List<Map<String,String>> rows)
Gets the value with the key in a safe way, eg returning an empty string if there was no value for the key.
|
static String |
getSafeValue(String key,
Map<String,String> rows)
Gets the value with the key in a safe way, eg returning an empty string if there was no value for the key.
|
static List<Map<String,String>> |
parseJsonSchema(String group,
String json,
boolean parseProperties)
Parses the json schema to split it into a list or rows, where each row contains key value pairs with the metadata
|
public static List<Map<String,String>> parseJsonSchema(String group, String json, boolean parseProperties)
group
- the group to parse from such as component, componentProperties, or properties.json
- the jsonpublic static String getSafeValue(String key, List<Map<String,String>> rows)
Apache Camel