public final class W3cDomUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Node |
asW3cNode(YamlNode yamlNode)
|
static MutableYamlNode |
getWrappedMutableYamlNode(Node node)
Returns the the wrapped
MutableYamlNode instance of the
provided Node if the node is an instance of
ElementAdapter and the YAML node wrapped by the node
is a MutableYamlNode . |
static YamlMapping |
getWrappedYamlMapping(Node node)
Returns the the wrapped
YamlMapping instance of the
provided Node if the node is an instance of
ElementAdapter and the YAML node wrapped by the node
is a YamlMapping . |
static YamlScalar |
getWrappedYamlScalar(Node node)
Returns the the wrapped
YamlScalar instance of the
provided Node if the node is an instance of
ElementAdapter and the YAML node wrapped by the node
is a YamlScalar . |
static YamlSequence |
getWrappedYamlSequence(Node node)
Returns the the wrapped
YamlSequence instance of the
provided Node if the node is an instance of
ElementAdapter and the YAML node wrapped by the node
is a YamlSequence . |
public static Node asW3cNode(YamlNode yamlNode)
yamlNode
- The YAML node to adaptnull
if the provided YAML node is null
public static YamlMapping getWrappedYamlMapping(Node node)
YamlMapping
instance of the
provided Node
if the node
is an instance of
ElementAdapter
and the YAML node wrapped by the node
is a YamlMapping
.node
- The W3C node wrapping a YAML nodeIllegalArgumentException
- if the provided node is not an
instance of ElementAdapter
public static YamlSequence getWrappedYamlSequence(Node node)
YamlSequence
instance of the
provided Node
if the node
is an instance of
ElementAdapter
and the YAML node wrapped by the node
is a YamlSequence
.node
- The W3C node wrapping a YAML nodeIllegalArgumentException
- if the provided node is not an
instance of ElementAdapter
public static YamlScalar getWrappedYamlScalar(Node node)
YamlScalar
instance of the
provided Node
if the node
is an instance of
ElementAdapter
and the YAML node wrapped by the node
is a YamlScalar
.node
- The W3C node wrapping a YAML nodeIllegalArgumentException
- if the provided node is not an
instance of ElementAdapter
public static MutableYamlNode getWrappedMutableYamlNode(Node node)
MutableYamlNode
instance of the
provided Node
if the node
is an instance of
ElementAdapter
and the YAML node wrapped by the node
is a MutableYamlNode
.node
- The W3C node wrapping a YAML nodeIllegalArgumentException
- if the provided node is not an
instance of ElementAdapter
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.