Class JsonUtils
java.lang.Object
org.apache.camel.component.salesforce.api.utils.JsonUtils
Factory class for creating ObjectMapper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
static com.fasterxml.jackson.databind.ObjectMapper
static String
static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
getGlobalObjectsJsonSchemaAsSchema
(GlobalObjects globalObjects) static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
getJsonSchemaAsSchema
(Set<com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema> allSchemas, String id) static String
getJsonSchemaString
(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 String
getSObjectJsonSchema
(SObjectDescription description) static String
getSObjectJsonSchema
(SObjectDescription description, boolean addQuerySchema) static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
getSObjectJsonSchemaAsJson
(SObjectDescription description) static com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
getSObjectJsonSchemaAsSchema
(SObjectDescription description, boolean addQuerySchema) static com.fasterxml.jackson.databind.ObjectMapper
withNullSerialization
(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)
-