Einhugur YAML Plugin for Xojo

EinhugurYAML.Document Class

Class that represents YAML document.

Note that even if this class can read and write Yaml documents then this class is not suitable for editing existing Yaml document. To accomplish editing you would need to read the document and rebuild new document.

Object
   Document

class EinhugurYAML.Document

Constructors

DocumentConstructor which takes no parameter.
DocumentConstructor which takes compatibility version for the YAML document.
DocumentConstructor which takes compatibility version for the YAML document and array of tags.
DocumentConstructor which takes array of tags.

Properties

TagCountReturns number of global tags in the YAML document.
YAMLVersionMajorReturns major version compatibiliy marker from the document.
YAMLVersionMinorReturns minor version compatibiliy marker from the document.

Methods

AddMappingAdds mapping to the YAML document which you are creating.
AddMappingItemAdds scalar node with scalar key to a mapping.
AddMappingItemAdds node id with scalar key id to the mapping.
AddMappingItemAdds node id with scalar key id to the mapping.
AddScalarAdds scalar value to the document, returning node ID for the node.
AddSequenceAdds sequence to the YAML document which you are creating.
AddSequenceItemAdds node to sequence.
AddSequenceItemAdds scalar value to a sequence.
NodeAtReturns node at given index from the node map.
shared ParseParses as string which contains YAML document, and returns a YAMLDocument class instance.
RootNodeReturns the root node for the document or nil if the document has no root node.
TagAtReturns global tag by index.
ToStringCreates string from the YAML document instance.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS