Package | Description |
---|---|
com.hazelcast.config |
Provides classes for configuring HazelcastInstance.
|
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 |
---|---|
protected void |
AbstractYamlConfigBuilder.importDocuments(YamlNode imdgRoot)
Imports external YAML documents into the provided main YAML document.
|
Modifier and Type | Method and Description |
---|---|
YamlNode |
ElementAdapter.getYamlNode() |
Modifier and Type | Method and Description |
---|---|
static Node |
W3cDomUtil.asW3cNode(YamlNode yamlNode)
|
static void |
YamlDomChecker.check(YamlNode node)
Performs checks on the provided YAML node recursively.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableYamlMapping
Mutable interface of
YamlMapping |
interface |
MutableYamlNode
Mutable interface for
YamlNode instances. |
interface |
MutableYamlScalar
Mutable interface of
YamlScalar |
interface |
MutableYamlSequence
Mutable interface of
YamlSequence |
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 | Class and Description |
---|---|
class |
AbstractYamlNode |
class |
YamlMappingImpl |
class |
YamlScalarImpl |
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 |
YamlMappingImpl.child(String name) |
YamlNode |
YamlMapping.child(String name)
Gets a child node by its name
|
YamlNode |
YamlNameNodePair.childNode()
The
YamlNode instance |
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
|
YamlNode |
AbstractYamlNode.parent() |
Modifier and Type | Method and Description |
---|---|
Iterable<YamlNode> |
YamlMappingImpl.children() |
Iterable<YamlNode> |
YamlCollection.children()
Returns the children nodes
|
Modifier and Type | Method and Description |
---|---|
void |
YamlMappingImpl.addChild(String name,
YamlNode node) |
void |
MutableYamlMapping.addChild(String name,
YamlNode node)
Adds a new child node to the mapping with the provided name
|
void |
MutableYamlSequence.addChild(YamlNode node)
Adds a new child node to the sequence
|
static YamlMapping |
YamlUtil.asMapping(YamlNode node)
Takes a generic
YamlNode instance and returns it casted to
YamlMapping if the type of the node is a descendant of
YamlMapping . |
static YamlScalar |
YamlUtil.asScalar(YamlNode node)
Takes a generic
YamlNode instance and returns it casted to
YamlScalar if the type of the node is a descendant of
YamlScalar . |
static YamlSequence |
YamlUtil.asSequence(YamlNode node)
Takes a generic
YamlNode instance and returns it casted to
YamlSequence if the type of the node is a descendant of
YamlSequence . |
static <T> T |
YamlUtil.asType(YamlNode node,
Class<T> type)
Takes a generic
YamlNode instance and returns it casted to
the provided type if the node is an instance of that type. |
static String |
YamlUtil.constructPath(YamlNode parent,
String childName)
Constructs the path of the node with the provided
parent
node and nodeName . |
static boolean |
YamlUtil.isMapping(YamlNode node)
Checks if the provided
node is a mapping |
static boolean |
YamlUtil.isOfSameType(YamlNode left,
YamlNode right)
Checks if the two provided
nodes are of the same type |
static boolean |
YamlUtil.isScalar(YamlNode node)
Checks if the provided
node is a scalar |
static boolean |
YamlUtil.isSequence(YamlNode node)
Checks if the provided
node is a sequence |
Constructor and Description |
---|
YamlScalarImpl(YamlNode parent,
String nodeName,
Object value) |
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.