Class JsonUtils
java.lang.Object
org.apache.camel.component.salesforce.api.utils.JsonUtils
Factory class for creating ObjectMapper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperstatic com.fasterxml.jackson.databind.ObjectMapperstatic Stringstatic com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchemagetGlobalObjectsJsonSchemaAsSchema(GlobalObjects globalObjects) static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchemagetJsonSchemaAsSchema(Set<com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema> allSchemas, String id) static StringgetJsonSchemaString(com.fasterxml.jackson.databind.ObjectMapper mapper, Set<com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema> allSchemas, String id) static Set<com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema>getSObjectJsonSchema(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SObjectDescription description, String idPrefix, boolean addQuerySchema) static StringgetSObjectJsonSchema(SObjectDescription description) static StringgetSObjectJsonSchema(SObjectDescription description, boolean addQuerySchema) static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchemagetSObjectJsonSchemaAsJson(SObjectDescription description) static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchemagetSObjectJsonSchemaAsSchema(SObjectDescription description, boolean addQuerySchema) static com.fasterxml.jackson.databind.ObjectMapperwithNullSerialization(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Field Details
-
SCHEMA4
- See Also:
-
DEFAULT_ID_PREFIX
- See Also:
-
-
Method Details
-
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.jakarta.JsonSchema> allSchemas, String id) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getJsonSchemaAsSchema
-
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.jakarta.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.jakarta.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.jakarta.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.jakarta.JsonSchema getGlobalObjectsJsonSchemaAsSchema(GlobalObjects globalObjects) -
withNullSerialization
public static com.fasterxml.jackson.databind.ObjectMapper withNullSerialization(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-