YamlPrimitiveAdapter
Adapter exposing a YamlPrimitive (including YamlNull) as a KpaPrimitive.
Primitive typing follows the YAML 1.2 core schema:
isBoolean is
trueonly for literals whose content is one oftrue,True,TRUE,false,False,FALSE.isNumber is
truefor literals whose content parses via String.toLongOrNull or String.toDoubleOrNull and is not already classified as a boolean.isString is
truefor any non-boolean, non-numeric YamlLiteral.
Parameters
backing
The underlying YamlPrimitive.
Properties
Functions
Link copied to clipboard
Returns the literal content for YamlLiteral; "null" for YamlNull.
Link copied to clipboard
Returns the YamlPrimitive backing this adapter as a YamlElement.
Link copied to clipboard
Returns the YamlElement backing this adapter, or throws if this is not a YamlElementAdapter.