public class SafeConstructor extends BaseConstructor
| Modifier and Type | Class and Description |
|---|---|
static class |
SafeConstructor.ConstructUndefined |
class |
SafeConstructor.ConstructYamlBinary |
class |
SafeConstructor.ConstructYamlBool |
class |
SafeConstructor.ConstructYamlFloat |
class |
SafeConstructor.ConstructYamlInt |
class |
SafeConstructor.ConstructYamlMap |
class |
SafeConstructor.ConstructYamlNull |
class |
SafeConstructor.ConstructYamlNumber |
class |
SafeConstructor.ConstructYamlOmap |
class |
SafeConstructor.ConstructYamlPairs |
class |
SafeConstructor.ConstructYamlSeq |
class |
SafeConstructor.ConstructYamlSet |
class |
SafeConstructor.ConstructYamlStr |
static class |
SafeConstructor.ConstructYamlTimestamp |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.String,java.lang.Boolean> |
BOOL_VALUES |
private static java.util.regex.Pattern |
TIMESTAMP_REGEXP |
static SafeConstructor.ConstructUndefined |
undefinedConstructor |
private static java.util.regex.Pattern |
YMD_REGEXP |
composer, rootTag, yamlClassConstructors, yamlConstructors, yamlMultiConstructors| Constructor and Description |
|---|
SafeConstructor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
constructMapping2ndStep(MappingNode node,
java.util.Map<java.lang.Object,java.lang.Object> mapping) |
protected void |
constructSet2ndStep(MappingNode node,
java.util.Set<java.lang.Object> set) |
private java.lang.Number |
createNumber(int sign,
java.lang.String number,
int radix) |
protected void |
flattenMapping(MappingNode node) |
private java.util.List<NodeTuple> |
mergeNode(MappingNode node,
boolean isPreffered,
java.util.Map<java.lang.Object,java.lang.Integer> key2index,
java.util.List<NodeTuple> values)
Does merge for supplied mapping node.
|
checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, createDefaultSet, getConstructor, getData, getPropertyUtils, getSingleData, isExplicitPropertyUtils, setComposer, setPropertyUtilspublic static final SafeConstructor.ConstructUndefined undefinedConstructor
private static final java.util.Map<java.lang.String,java.lang.Boolean> BOOL_VALUES
private static final java.util.regex.Pattern TIMESTAMP_REGEXP
private static final java.util.regex.Pattern YMD_REGEXP
protected void flattenMapping(MappingNode node)
private java.util.List<NodeTuple> mergeNode(MappingNode node, boolean isPreffered, java.util.Map<java.lang.Object,java.lang.Integer> key2index, java.util.List<NodeTuple> values)
node - where to mergeisPreffered - true if keys of node should take precedence over others...key2index - maps already merged keys to index from valuesvalues - collects merged NodeTupleprotected void constructMapping2ndStep(MappingNode node, java.util.Map<java.lang.Object,java.lang.Object> mapping)
constructMapping2ndStep in class BaseConstructorprotected void constructSet2ndStep(MappingNode node, java.util.Set<java.lang.Object> set)
constructSet2ndStep in class BaseConstructorprivate java.lang.Number createNumber(int sign,
java.lang.String number,
int radix)