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  MutableYamlNodeinstance of the
 providedNodeif thenodeis an instance ofElementAdapterand the YAML node wrapped by thenodeis aMutableYamlNode. | 
| static YamlMapping | getWrappedYamlMapping(Node node)Returns the the wrapped  YamlMappinginstance of the
 providedNodeif thenodeis an instance ofElementAdapterand the YAML node wrapped by thenodeis aYamlMapping. | 
| static YamlScalar | getWrappedYamlScalar(Node node)Returns the the wrapped  YamlScalarinstance of the
 providedNodeif thenodeis an instance ofElementAdapterand the YAML node wrapped by thenodeis aYamlScalar. | 
| static YamlSequence | getWrappedYamlSequence(Node node)Returns the the wrapped  YamlSequenceinstance of the
 providedNodeif thenodeis an instance ofElementAdapterand the YAML node wrapped by thenodeis aYamlSequence. | 
public static Node asW3cNode(YamlNode yamlNode)
yamlNode - The YAML node to adaptnull if the provided YAML node is nullpublic 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 ElementAdapterpublic 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 ElementAdapterpublic 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 ElementAdapterpublic 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 ElementAdapterCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.