public class CompactConstructor extends Constructor
| Modifier and Type | Class and Description |
|---|---|
class |
CompactConstructor.ConstructCompactObject |
Constructor.ConstructMapping, Constructor.ConstructScalar, Constructor.ConstructSequence, Constructor.ConstructYamlObjectSafeConstructor.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| Modifier and Type | Field and Description |
|---|---|
private Construct |
compactConstruct |
private static java.util.regex.Pattern |
FIRST_PATTERN |
private static java.util.regex.Pattern |
GUESS_COMPACT |
private static java.util.regex.Pattern |
PROPERTY_NAME_PATTERN |
undefinedConstructorcomposer, loadingConfig, NOT_INSTANTIATED_OBJECT, rootTag, typeDefinitions, typeTags, 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) |
private Construct |
getCompactConstruct() |
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) |
getClassForName, getClassForNodeconstructMapping2ndStep, constructSet2ndStep, createLongOrBigInteger, flattenMapping, flattenMapping, processDuplicateKeys, processDuplicateKeysaddTypeDescription, checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, finalizeConstruction, getData, getPropertyUtils, getSingleData, isAllowDuplicateKeys, isEnumCaseSensitive, isExplicitPropertyUtils, isWrappedToRootException, newInstance, newInstance, newInstance, newList, newMap, newSet, postponeMapFilling, postponeSetFilling, setAllowDuplicateKeys, setComposer, setEnumCaseSensitive, setPropertyUtils, setWrappedToRootExceptionprivate static final java.util.regex.Pattern GUESS_COMPACT
private static final java.util.regex.Pattern FIRST_PATTERN
private static final java.util.regex.Pattern PROPERTY_NAME_PATTERN
private Construct compactConstruct
protected java.lang.Object constructCompactFormat(ScalarNode node, CompactData data)
protected java.lang.Object createInstance(ScalarNode node, CompactData data) throws java.lang.Exception
java.lang.Exceptionprotected void setProperties(java.lang.Object bean,
java.util.Map<java.lang.String,java.lang.Object> data)
throws java.lang.Exception
java.lang.Exceptionpublic CompactData getCompactData(java.lang.String scalar)
private Construct getCompactConstruct()
protected Construct createCompactConstruct()
protected Construct getConstructor(Node node)
BaseConstructorgetConstructor in class BaseConstructornode - Node to construct an instance fromConstruct implementation for the specified nodeprotected void applySequence(java.lang.Object bean,
java.util.List<?> value)
protected java.lang.String getSequencePropertyName(java.lang.Class<?> bean)
bean - the class to provide exactly one List property