Class DefaultYamlDeserializer<CLASS extends IBoundObject>
java.lang.Object
gov.nist.secauto.metaschema.databind.io.AbstractDeserializer<CLASS>
gov.nist.secauto.metaschema.databind.io.json.DefaultJsonDeserializer<CLASS>
gov.nist.secauto.metaschema.databind.io.yaml.DefaultYamlDeserializer<CLASS>
- All Implemented Interfaces:
IConfiguration<DeserializationFeature<?>>
,IMutableConfiguration<DeserializationFeature<?>>
,IDeserializer<CLASS>
public class DefaultYamlDeserializer<CLASS extends IBoundObject>
extends DefaultJsonDeserializer<CLASS>
-
Constructor Summary
ConstructorDescriptionDefaultYamlDeserializer
(IBoundDefinitionModelAssembly definition) Construct a new YAML deserializer that will parse the bound class identified by theclassBinding
. -
Method Summary
Modifier and TypeMethodDescription<V> V
get
(DeserializationFeature<?> feature) protected IBindingContext
Retrieve the binding context associated with the serializer.protected IMutableConfiguration<DeserializationFeature<?>>
Get the current configuration of the serializer/deserializer.protected IBoundDefinitionModelAssembly
Retrieve the bound class information associated with the assembly that the serializer/deserializer will write/read data from.boolean
isFeatureEnabled
(DeserializationFeature<?> feature) protected com.fasterxml.jackson.dataformat.yaml.YAMLFactory
Get a JSON factory instance.Methods inherited from class gov.nist.secauto.metaschema.databind.io.json.DefaultJsonDeserializer
configurationChanged, deserializeToNodeItemInternal, deserializeToValueInternal, getJsonFactory, newJsonParser, resetFactory
Methods inherited from class gov.nist.secauto.metaschema.databind.io.AbstractDeserializer
applyConfiguration, deserializeToNodeItem, deserializeToValue, disableFeature, enableFeature, getConstraintValidationHandler, set, setConstraintValidationHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.nist.secauto.metaschema.core.configuration.IConfiguration
get, getFeatureValues, isFeatureEnabled
Methods inherited from interface gov.nist.secauto.metaschema.databind.io.IDeserializer
deserialize, deserialize, deserialize, deserialize, deserialize, deserializeToNodeItem, isValidating
-
Constructor Details
-
DefaultYamlDeserializer
Construct a new YAML deserializer that will parse the bound class identified by theclassBinding
.- Parameters:
definition
- the bound class information for the Java type this deserializer is operating on
-
-
Method Details
-
newFactoryInstance
Get a JSON factory instance.This method can be used by sub-classes to create a customized factory instance.
This method provides a YAML version of the JSON factory.
- Overrides:
newFactoryInstance
in classDefaultJsonDeserializer<CLASS extends IBoundObject>
- Returns:
- the factory
-
getBindingContext
Retrieve the binding context associated with the serializer.- Returns:
- the binding context
-
getDefinition
Retrieve the bound class information associated with the assembly that the serializer/deserializer will write/read data from.- Returns:
- the class binding for the Module assembly
-
getConfiguration
Get the current configuration of the serializer/deserializer.- Returns:
- the configuration
-
isFeatureEnabled
- Specified by:
isFeatureEnabled
in interfaceIConfiguration<T extends IConfigurationFeature<?>>
-
getFeatureValues
- Specified by:
getFeatureValues
in interfaceIConfiguration<T extends IConfigurationFeature<?>>
-
get
- Specified by:
get
in interfaceIConfiguration<T extends IConfigurationFeature<?>>
-