public final class ComponentConfigurator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
applyConfiguration(MaskingComponent component,
com.fasterxml.jackson.databind.JsonNode json)
Apply the specified configuration to the component objects.
|
static void |
applyConfiguration(MaskingComponent component,
java.lang.String json)
Apply the specified configuration to the component objects.
|
static com.fasterxml.jackson.databind.JsonNode |
extractConfigJsonNode(MaskingComponent component)
Extract and serialize all @JsonProperty annotated fields from the object.
|
static java.lang.String |
extractConfigString(MaskingComponent component)
Extract and serialize all @JsonProperty annotated fields from the object.
|
static com.fasterxml.jackson.module.jsonSchema.JsonSchema |
generateSchema(MaskingComponent component)
This method returns the schema object in a format appropriate for embedding in the swagger framework object.
|
static java.lang.String |
generateSchemaText(MaskingComponent component)
This method returns the schema object as a text string.
|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Get the object mapper for all plugin component serialization and deserialization activities.
|
public static void applyConfiguration(MaskingComponent component, java.lang.String json) throws ComponentConfigurationException
component - The component object to be modified.json - The JSON serialization of the object's configuration.ComponentConfigurationException - When the JSON can't be appliedpublic static void applyConfiguration(MaskingComponent component, com.fasterxml.jackson.databind.JsonNode json) throws ComponentConfigurationException
component - The component object to be modified.json - The JSON serialization of the object's configuration.ComponentConfigurationException - When the JSON can't be appliedpublic static java.lang.String extractConfigString(MaskingComponent component) throws ComponentConfigurationException
component - The component object to be modified.ComponentConfigurationException - When the component's configuration is invalidpublic static com.fasterxml.jackson.databind.JsonNode extractConfigJsonNode(MaskingComponent component)
component - The component object to be modified.public static com.fasterxml.jackson.module.jsonSchema.JsonSchema generateSchema(MaskingComponent component)
component - The component for which the schema should be generatedpublic static java.lang.String generateSchemaText(MaskingComponent component)
component - The component for which the schema should be generatedpublic static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()