bpriver_yaml library

Classes

BpriverYaml
CollectionStyle
An enum of collection styles.
ScalarStyle
An enum of source scalar styles.
TagDirective
A directive describing a custom tag handle.
VersionDirective
A directive indicating which version of YAML a document was written to.
YamlDocument
A YAML document, complete with metadata.
YamlList
A read-only List parsed from YAML.
YamlMap
A read-only Map parsed from YAML.
YamlNode
An interface for parsed nodes from a YAML source tree.
YamlScalar
A wrapped scalar value parsed from YAML.

Properties

yamlWarningCallback YamlWarningCallback
A callback for emitting a warning.
getter/setter pair

Functions

loadYaml(String yaml, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener}) → dynamic
Loads a single document from a YAML string.
loadYamlDocument(String yaml, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener}) YamlDocument
Loads a single document from a YAML string as a YamlDocument.
loadYamlDocuments(String yaml, {Uri? sourceUrl}) List<YamlDocument>
Loads a stream of documents from a YAML string.
loadYamlNode(String yaml, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener}) YamlNode
Loads a single document from a YAML string as a YamlNode.
loadYamlStream(String yaml, {Uri? sourceUrl}) YamlList
Loads a stream of documents from a YAML string.

Typedefs

YamlWarningCallback = void Function(String message, [SourceSpan? span])
A callback for emitting a warning.

Exceptions / Errors

BpriverYamlError
BpriverYamlException
BpriverYamlExceptionA
1つの task file に複数の yaml document が含まれています.
BpriverYamlExceptionB
yaml document contents is not yaml list.
BpriverYamlExceptionC
yaml document contents is not yaml map.
BpriverYamlExceptionD
指定された yaml map の中には 指定した key は存在しませんでした.
BpriverYamlExceptionDE
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionDEF
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionDEFH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionDEH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionDFH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionDH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionE
    指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
    BpriverYamlExceptionEF
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionF
    指定された element は 指定された type ではありませんでした.
    BpriverYamlExceptionG
    指定された yaml map の長さが 指定された長さと異なる.
    BpriverYamlExceptionH
    指定の yaml map から 指定した key で想定外の type の value を取得した.
    BpriverYamlExceptionI
    failed to convert to yaml.
    BpriverYamlExceptionJ
    yaml document contents type is not T.
    YamlException
    An error thrown by the YAML processor.