public class JsonSchemas extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENVIRONMENT_SCHEMA_FILE |
protected static com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
JsonSchemas() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEnvironmentVariables(JsonSchema schema,
Map<String,String> environmentVariables)
Modifies the given json schema adding the additional environment variable overrides which either create
new properties or override the default values of existing known properties
|
protected static JsonSchema |
combineSchemas(JsonSchema schema1,
JsonSchema schema2) |
protected static com.fasterxml.jackson.databind.ObjectMapper |
createObjectMapper()
Creates a configured Jackson object mapper for parsing JSON
|
static JsonSchema |
loadEnvironmentSchemas(ClassLoader classLoader,
String... folderPaths)
Finds all of the environment json schemas and combines them together
|
static JsonSchema |
loadSchema(byte[] data) |
static JsonSchema |
loadSchema(File file) |
static JsonSchema |
loadSchema(InputStream inputStream) |
static JsonSchema |
loadSchema(URL url) |
public static final String ENVIRONMENT_SCHEMA_FILE
protected static com.fasterxml.jackson.databind.ObjectMapper objectMapper
public static JsonSchema loadEnvironmentSchemas(ClassLoader classLoader, String... folderPaths) throws IOException
IOExceptionprotected static JsonSchema combineSchemas(JsonSchema schema1, JsonSchema schema2)
public static JsonSchema loadSchema(URL url) throws IOException
IOExceptionpublic static JsonSchema loadSchema(File file) throws IOException
IOExceptionpublic static JsonSchema loadSchema(InputStream inputStream) throws IOException
IOExceptionpublic static JsonSchema loadSchema(byte[] data) throws IOException
IOExceptionprotected static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
public static void addEnvironmentVariables(JsonSchema schema, Map<String,String> environmentVariables)
Copyright © 2011–2015 Red Hat. All rights reserved.