public final class JSonSchemaHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getPropertyDefaultValue(List<Map<String,String>> rows,
String name) |
static String |
getPropertyJavaType(List<Map<String,String>> rows,
String name) |
static String |
getPropertyType(List<Map<String,String>> rows,
String name) |
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)
public static String getSafeValue(String key, Map<String,String> rows)
public static String getPropertyDefaultValue(List<Map<String,String>> rows, String name)
public static String getPropertyJavaType(List<Map<String,String>> rows, String name)
Apache Camel