| Package | Description |
|---|---|
| com.hazelcast.config.yaml |
Contains adapter and utility classes needed to adapt YAML DOM classes
as W3C DOM ones, making config builders that accept W3C DOM able to
build the config structure from YAML.
|
| com.hazelcast.internal.yaml |
Contains classes for loading, parsing YAML documents and building a
YAML specific DOM of
YamlNode instances
The YAML documents are loaded and parsed with the external SnakeYaml
parser, which supports YAML 1.2 documents, and the JSON schema. |
| Modifier and Type | Method and Description |
|---|---|
static Node |
W3cDomUtil.asW3cNode(YamlNode yamlNode)
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
YamlCollection
Common ancestor interface for
YamlMapping and YamlSequence nodes |
interface |
YamlMapping
Interface for YAML mapping nodes
|
interface |
YamlScalar
Interface for YAML scalar nodes
The following types are supported:
String
Integer
Float
Boolean
|
interface |
YamlSequence
Interface for YAML sequence nodes
|
| Modifier and Type | Method and Description |
|---|---|
static YamlNode |
YamlDomBuilder.build(Object document) |
YamlNode |
YamlSequence.child(int index)
Gets a child node by its index
|
YamlNode |
YamlMapping.child(String name)
Gets a child node by its name
|
static YamlNode |
YamlLoader.load(InputStream inputStream)
Loads a YAML document from an
InputStream and builds a
YamlNode tree. |
static YamlNode |
YamlLoader.load(InputStream inputStream,
String rootName)
Loads a YAML document from an
InputStream and builds a
YamlNode tree that is under the provided top-level
rootName key. |
static YamlNode |
YamlLoader.load(Reader reader)
|
static YamlNode |
YamlLoader.load(Reader reader,
String rootName)
|
static YamlNode |
YamlLoader.load(String yaml)
|
static YamlNode |
YamlLoader.load(String yaml,
String rootName)
|
YamlNode |
YamlNode.parent()
Returns the parent of the given node
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<YamlNode> |
YamlCollection.children()
Returns the children nodes
|
Copyright © 2019. All Rights Reserved.