com.hazelcast.org.snakeyaml.engine.v1.events

## Class NodeEvent

- java.lang.Object
- - com.hazelcast.org.snakeyaml.engine.v1.events.Event
  - - com.hazelcast.org.snakeyaml.engine.v1.events.NodeEvent

- Direct Known Subclasses:
    AliasEvent, CollectionStartEvent, ScalarEvent

      public abstract class NodeEvent
      extends Event

  Base class for all events that mark the beginning of a node.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.hazelcast.org.snakeyaml.engine.v1.events.Event

      `Event.ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NodeEvent(Optional<Anchor> anchor, Optional<Mark> startMark, Optional<Mark> endMark)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Optional<Anchor>` | `getAnchor()` Node anchor by which this node might later be referenced by a `AliasEvent`.

    - ### Methods inherited from class com.hazelcast.org.snakeyaml.engine.v1.events.Event

      `equals, getEndMark, getEventId, getStartMark, hashCode, isEvent`

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

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

- - ### Constructor Detail

    - #### NodeEvent

          public NodeEvent(Optional<Anchor> anchor,
                           Optional<Mark> startMark,
                           Optional<Mark> endMark)

  - ### Method Detail

    - #### getAnchor

          public Optional<Anchor> getAnchor()

      Node anchor by which this node might later be referenced by a `AliasEvent`.

      Note that `AliasEvent`s are by it self `NodeEvent`s and use this property to indicate the referenced anchor.

      Returns:
        Anchor of this node or `null` if no anchor is defined.

Copyright © 2019. All rights reserved.