public abstract class YamlDeserializerBase<T> extends YamlDeserializerSupport implements org.snakeyaml.engine.v2.api.ConstructNode
| Constructor and Description |
|---|
YamlDeserializerBase(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
Object |
construct(org.snakeyaml.engine.v2.nodes.Node node) |
Class<T> |
getType() |
protected void |
handleUnknownProperty(T target,
String propertyKey,
String propertyName,
org.snakeyaml.engine.v2.nodes.Node value) |
protected abstract T |
newInstance()
Creates a Java instance of the expected type.
|
protected T |
newInstance(String value)
Creates a Java instance of the expected type from a string.
|
protected void |
setProperties(T target,
org.snakeyaml.engine.v2.nodes.MappingNode node)
Set properties from a YAML node to the given target.
|
protected boolean |
setProperty(T target,
String propertyKey,
String propertyName,
org.snakeyaml.engine.v2.nodes.Node value)
Set a property to the given target.
|
asBoolean, asByteArray, asByteArray, asClass, asClass, asClassArray, asClassArray, asDouble, asEndpoint, asEndpoint, asFlatCollection, asFlatList, asFlatSet, asInt, asLong, asMap, asMappingNode, asNestedCollection, asNestedList, asNestedSet, asScalarMap, asSequenceNode, asStringList, asStringList, asStringSet, asStringSet, asText, asType, getDeserializationContext, getNamedNode, nodeAt, setDeserializationContext, setStepspublic Object construct(org.snakeyaml.engine.v2.nodes.Node node)
construct in interface org.snakeyaml.engine.v2.api.ConstructNodeprotected abstract T newInstance()
protected T newInstance(String value)
protected boolean setProperty(T target, String propertyKey, String propertyName, org.snakeyaml.engine.v2.nodes.Node value)
target - the target objectpropertyKey - the normalized property keypropertyName - the name of the property as defined in the YAMLvalue - the value of the property as Nodeprotected void setProperties(T target, org.snakeyaml.engine.v2.nodes.MappingNode node)
node - the nodetarget - the target objectApache Camel