Class ScalarEvent


  • public final class ScalarEvent
    extends NodeEvent
    Marks a scalar value.
    • Method Detail

      • getTag

        public String getTag()
        Tag of this scalar.
        Returns:
        The tag of this scalar, or null if no explicit tag is available.
      • getScalarStyle

        public DumperOptions.ScalarStyle getScalarStyle()
        Style of the scalar.
        null
        Flow Style - Plain
        '\''
        Flow Style - Single-Quoted
        '"'
        Flow Style - Double-Quoted
        '|'
        Block Style - Literal
        '>'
        Block Style - Folded
        Returns:
        Style of the scalar.
        See Also:
        Kind/Style Combinations
      • getStyle

        @Deprecated
        public Character getStyle()
        Deprecated.
        use getScalarStyle() instead
        Returns:
        char which is a value behind ScalarStyle
      • getValue

        public String getValue()
        String representation of the value.

        Without quotes and escaping.

        Returns:
        Value as Unicode string.
      • getArguments

        protected String getArguments()
        Description copied from class: Event
        Generate human readable representation of the Event
        Overrides:
        getArguments in class NodeEvent
        Returns:
        representation fore humans
        See Also:
        "__repr__ for Event in PyYAML"
      • is

        public boolean is​(Event.ID id)
        Specified by:
        is in class Event
      • isPlain

        public boolean isPlain()