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 String
getAnchor()
Node anchor by which this node might later be referenced by aAliasEvent
.protected String
getArguments()
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
AliasEvent
s are by it selfNodeEvent
s and use this property to indicate the referenced anchor.- Returns:
- Anchor of this node or
null
if no anchor is defined.
-
getArguments
protected String getArguments()
Description copied from class:Event
Generate human readable representation of the Event- Overrides:
getArguments
in classEvent
- Returns:
- representation fore humans
- See Also:
- "__repr__ for Event in PyYAML"
-
-