com.hazelcast.org.snakeyaml.engine.v1.nodes

## Class ScalarNode

- java.lang.Object
- - com.hazelcast.org.snakeyaml.engine.v1.nodes.Node
  - - com.hazelcast.org.snakeyaml.engine.v1.nodes.ScalarNode

-     public class ScalarNode
      extends Node

  Represents a scalar node.

  Scalar nodes form the leaves in the node graph.

- - ### Field Summary

    - ### Fields inherited from class com.hazelcast.org.snakeyaml.engine.v1.nodes.Node

      `endMark, resolved`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScalarNode(Tag tag, boolean resolved, String value, ScalarStyle style, Optional<Mark> startMark, Optional<Mark> endMark)`
    `ScalarNode(Tag tag, String value, ScalarStyle style)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `NodeType` | `getNodeType()`
    `ScalarStyle` | `getScalarStyle()` Get scalar style of this node.
    `String` | `getValue()` Value of this scalar.
    `boolean` | `isPlain()`
    `String` | `toString()`

    - ### Methods inherited from class com.hazelcast.org.snakeyaml.engine.v1.nodes.Node

      `equals, getConstruct, getEndMark, getStartMark, getTag, hashCode, isRecursive, setConstruct, setRecursive, setTag`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ScalarNode

          public ScalarNode(Tag tag,
                            boolean resolved,
                            String value,
                            ScalarStyle style,
                            Optional<Mark> startMark,
                            Optional<Mark> endMark)

    - #### ScalarNode

          public ScalarNode(Tag tag,
                            String value,
                            ScalarStyle style)

  - ### Method Detail

    - #### getScalarStyle

          public ScalarStyle getScalarStyle()

      Get scalar style of this node.
      Returns:
        style of this scalar node
      See Also:
        `ScalarEvent`, Chapter 9. Scalar Styles

    - #### getNodeType

          public NodeType getNodeType()

      Specified by:
        `getNodeType` in class `Node`
      Returns:
        scalar, sequence, mapping

    - #### getValue

          public String getValue()

      Value of this scalar.
      Returns:
        Scalar's value.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### isPlain

          public boolean isPlain()

Copyright © 2019. All rights reserved.