dyaml.constructor

Class that processes YAML mappings, sequences and scalars into nodes. This can be used to add custom data types. A tutorial can be found here.

Members

Classes

Constructor
class Constructor

Constructs YAML values.

ConstructorException
class ConstructorException
Undocumented in source.

Functions

constructBinary
ubyte[] constructBinary(Node node)

Construct a binary (base64) _node.

constructBool
bool constructBool(Node node)

Construct a boolean _node.

constructLong
long constructLong(Node node)

Construct an integer (long) _node.

constructMap
Node.Pair[] constructMap(Node node)

Construct an unordered map (unordered set of key:value _pairs without duplicates) _node.

constructMerge
YAMLMerge constructMerge(Node node)

Construct a merge _node - a _node that merges another _node into a mapping.

constructNull
YAMLNull constructNull(Node node)

Construct a _null _node.

constructOrderedMap
Node.Pair[] constructOrderedMap(Node node)

Construct an ordered map (ordered sequence of key:value pairs without duplicates) _node.

constructPairs
Node.Pair[] constructPairs(Node node)

Construct a pairs (ordered sequence of key: value pairs allowing duplicates) _node.

constructReal
real constructReal(Node node)

Construct a floating point (real) _node.

constructSequence
Node[] constructSequence(Node node)

Construct a sequence (array) _node.

constructSet
Node[] constructSet(Node node)

Construct a set _node.

constructString
string constructString(Node node)

Construct a string _node.

constructTimestamp
SysTime constructTimestamp(Node node)

Construct a timestamp (SysTime) _node.

getPairs
Node.Pair[] getPairs(string type, Node[] nodes)

Convert a sequence of single-element mappings into a sequence of pairs.

Meta