org.yaml.snakeyaml.events

## Class ScalarEvent

- java.lang.Object
- - org.yaml.snakeyaml.events.Event
  - - org.yaml.snakeyaml.events.NodeEvent
    - - org.yaml.snakeyaml.events.ScalarEvent

    public final class ScalarEvent
    extends NodeEvent

Marks a scalar value.

### Nested Class Summary

### Nested classes/interfaces inherited from class org.yaml.snakeyaml.events.Event

`Event.ID`

### Constructor Summary

Constructors
Constructor and Description
`ScalarEvent(java.lang.String anchor, java.lang.String tag, ImplicitTuple implicit, java.lang.String value, Mark startMark, Mark endMark, java.lang.Character style)`

### Method Summary

Methods
`protected java.lang.String` `getArguments()`
`ImplicitTuple` `getImplicit()`
`java.lang.Character` `getStyle()` Style of the scalar.
`java.lang.String` `getTag()` Tag of this scalar.
`java.lang.String` `getValue()` String representation of the value.
`boolean` `is(Event.ID id)`

### Methods inherited from class org.yaml.snakeyaml.events.NodeEvent

`getAnchor`

### Methods inherited from class org.yaml.snakeyaml.events.Event

`equals, getEndMark, getStartMark, hashCode, toString`

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

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

### Constructor Detail

#### ScalarEvent

    public ScalarEvent(java.lang.String anchor,
               java.lang.String tag,
               ImplicitTuple implicit,
               java.lang.String value,
               Mark startMark,
               Mark endMark,
               java.lang.Character style)

### Method Detail

#### getTag

    public java.lang.String getTag()

Tag of this scalar.

Returns:
  The tag of this scalar, or `null` if no explicit tag is available.

#### getStyle

    public java.lang.Character getStyle()

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

#### getValue

    public java.lang.String getValue()

String representation of the value.

Without quotes and escaping.

Returns:
  Value as Unicode string.

#### getImplicit

    public ImplicitTuple getImplicit()

#### getArguments

    protected java.lang.String getArguments()

Overrides:
  `getArguments` in class `NodeEvent`
See Also:
  "__repr__ for Event in PyYAML"

#### is

    public boolean is(Event.ID id)

Specified by:
  `is` in class `Event`