public class CompactConstructor extends Constructor
Modifier and Type | Class and Description |
---|---|
class |
CompactConstructor.ConstructCompactObject |
Constructor.ConstructMapping, Constructor.ConstructScalar, Constructor.ConstructSequence, Constructor.ConstructYamlObject
SafeConstructor.ConstructUndefined, SafeConstructor.ConstructYamlBinary, SafeConstructor.ConstructYamlBool, SafeConstructor.ConstructYamlFloat, SafeConstructor.ConstructYamlInt, SafeConstructor.ConstructYamlMap, SafeConstructor.ConstructYamlNull, SafeConstructor.ConstructYamlOmap, SafeConstructor.ConstructYamlPairs, SafeConstructor.ConstructYamlSeq, SafeConstructor.ConstructYamlSet, SafeConstructor.ConstructYamlStr, SafeConstructor.ConstructYamlTimestamp
typeDefinitions
undefinedConstructor
rootTag, yamlClassConstructors, yamlConstructors, yamlMultiConstructors
Constructor and Description |
---|
CompactConstructor() |
Modifier and Type | Method and Description |
---|---|
protected void |
applySequence(java.lang.Object bean,
java.util.List<?> value) |
protected java.lang.Object |
constructCompactFormat(ScalarNode node,
CompactData data) |
protected Construct |
createCompactConstruct() |
protected java.lang.Object |
createInstance(ScalarNode node,
CompactData data) |
CompactData |
getCompactData(java.lang.String scalar) |
protected Construct |
getConstructor(Node node)
Get the constructor to construct the Node.
|
protected java.lang.String |
getSequencePropertyName(java.lang.Class<?> bean)
Provide the name of the property which is used when the entries form a
sequence.
|
protected void |
setProperties(java.lang.Object bean,
java.util.Map<java.lang.String,java.lang.Object> data) |
addTypeDescription, getClassForName, getClassForNode
constructMapping2ndStep, constructSet2ndStep, flattenMapping
checkData, constructArray, constructArrayStep2, constructMapping, constructObject, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, createDefaultSet, getData, getPropertyUtils, getSingleData, isExplicitPropertyUtils, setComposer, setPropertyUtils
protected java.lang.Object constructCompactFormat(ScalarNode node, CompactData data)
protected java.lang.Object createInstance(ScalarNode node, CompactData data) throws java.lang.Exception
java.lang.Exception
protected void setProperties(java.lang.Object bean, java.util.Map<java.lang.String,java.lang.Object> data) throws java.lang.Exception
java.lang.Exception
public CompactData getCompactData(java.lang.String scalar)
protected Construct createCompactConstruct()
protected Construct getConstructor(Node node)
BaseConstructor
getConstructor
in class BaseConstructor
node
- Node to be constructedprotected void applySequence(java.lang.Object bean, java.util.List<?> value)
protected java.lang.String getSequencePropertyName(java.lang.Class<?> bean) throws java.beans.IntrospectionException
java.beans.IntrospectionException
Copyright © 2008-2013. All Rights Reserved.