Package org.yaml.snakeyaml.events
Class NodeEvent
- java.lang.Object
-
- org.yaml.snakeyaml.events.Event
-
- org.yaml.snakeyaml.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnchor()Node anchor by which this node might later be referenced by aAliasEvent.protected StringgetArguments()Generate human readable representation of the Event-
Methods inherited from class org.yaml.snakeyaml.events.Event
equals, getEndMark, getEventId, getStartMark, hashCode, is, toString
-
-
-
-
Method Detail
-
getAnchor
public String getAnchor()
Node anchor by which this node might later be referenced by aAliasEvent.Note that
AliasEvents are by it selfNodeEvents and use this property to indicate the referenced anchor.- Returns:
- Anchor of this node or
nullif no anchor is defined.
-
getArguments
protected String getArguments()
Description copied from class:EventGenerate human readable representation of the Event- Overrides:
getArgumentsin classEvent- Returns:
- representation fore humans
- See Also:
- "__repr__ for Event in PyYAML"
-
-