Class JsonUtils
- java.lang.Object
-
- org.apache.camel.component.salesforce.api.utils.JsonUtils
-
public abstract class JsonUtils extends Object
Factory class for creating ObjectMapper
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ID_PREFIX
static String
SCHEMA4
-
Constructor Summary
Constructors Constructor Description JsonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper()
static com.fasterxml.jackson.databind.ObjectMapper
createSchemaObjectMapper()
static String
getBasicApiJsonSchema()
static com.fasterxml.jackson.module.jsonSchema.JsonSchema
getGlobalObjectsJsonSchemaAsSchema(GlobalObjects globalObjects)
static com.fasterxml.jackson.module.jsonSchema.JsonSchema
getJsonSchemaAsSchema(Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas, String id)
static String
getJsonSchemaString(com.fasterxml.jackson.databind.ObjectMapper mapper, Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas, String id)
static Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema>
getSObjectJsonSchema(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SObjectDescription description, String idPrefix, boolean addQuerySchema)
static String
getSObjectJsonSchema(SObjectDescription description)
static String
getSObjectJsonSchema(SObjectDescription description, boolean addQuerySchema)
static com.fasterxml.jackson.module.jsonSchema.JsonSchema
getSObjectJsonSchemaAsJson(SObjectDescription description)
static com.fasterxml.jackson.module.jsonSchema.JsonSchema
getSObjectJsonSchemaAsSchema(SObjectDescription description, boolean addQuerySchema)
static com.fasterxml.jackson.databind.ObjectMapper
withNullSerialization(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
-
Field Detail
-
SCHEMA4
public static final String SCHEMA4
- See Also:
- Constant Field Values
-
DEFAULT_ID_PREFIX
public static final String DEFAULT_ID_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
-
getBasicApiJsonSchema
public static String getBasicApiJsonSchema() throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getJsonSchemaString
public static String getJsonSchemaString(com.fasterxml.jackson.databind.ObjectMapper mapper, Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas, String id) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getJsonSchemaAsSchema
public static com.fasterxml.jackson.module.jsonSchema.JsonSchema getJsonSchemaAsSchema(Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas, String id)
-
getSObjectJsonSchema
public static String getSObjectJsonSchema(SObjectDescription description) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getSObjectJsonSchemaAsJson
public static com.fasterxml.jackson.module.jsonSchema.JsonSchema getSObjectJsonSchemaAsJson(SObjectDescription description) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getSObjectJsonSchema
public static String getSObjectJsonSchema(SObjectDescription description, boolean addQuerySchema) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getSObjectJsonSchemaAsSchema
public static com.fasterxml.jackson.module.jsonSchema.JsonSchema getSObjectJsonSchemaAsSchema(SObjectDescription description, boolean addQuerySchema) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getSObjectJsonSchema
public static Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> getSObjectJsonSchema(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SObjectDescription description, String idPrefix, boolean addQuerySchema) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
createSchemaObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createSchemaObjectMapper()
-
getGlobalObjectsJsonSchemaAsSchema
public static com.fasterxml.jackson.module.jsonSchema.JsonSchema getGlobalObjectsJsonSchemaAsSchema(GlobalObjects globalObjects)
-
withNullSerialization
public static com.fasterxml.jackson.databind.ObjectMapper withNullSerialization(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-