Package org.apache.juneau.jsonschema
Class SchemaUtils
java.lang.Object
org.apache.juneau.jsonschema.SchemaUtils
Utilities for working with the schema annotations.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Joins an array of strings with newlines.static JsonMap
Parses a generic object as JSON and converts it to anJsonMap
.static JsonMap
Concatenates and parses a string array as a JSON object.Concatenates and parses a string array as JSON array or comma-delimited list.
-
Constructor Details
-
SchemaUtils
public SchemaUtils()
-
-
Method Details
-
parseMap
Concatenates and parses a string array as a JSON object.- Parameters:
ss
- The array to concatenate and parse.- Returns:
- The parsed contents.
- Throws:
ParseException
- Invalid JSON encountered.
-
parseMap
Parses a generic object as JSON and converts it to anJsonMap
.- Parameters:
o
- The object to convert.- Returns:
- The parsed contents.
- Throws:
ParseException
- Invalid JSON encountered.
-
parseSet
Concatenates and parses a string array as JSON array or comma-delimited list.- Parameters:
ss
- The array to concatenate and parse.- Returns:
- The parsed contents.
- Throws:
ParseException
- Invalid JSON encountered.
-
joinnl
Joins an array of strings with newlines.- Parameters:
s
- The array to join.- Returns:
- A new joined string.
-