java.lang.Object
org.yaml.snakeyaml.events.Event
- Direct Known Subclasses:
CollectionEndEvent,DocumentEndEvent,DocumentStartEvent,NodeEvent,StreamEndEvent,StreamStartEvent
public abstract class Event
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvent.ID -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)protected java.lang.StringgetArguments()Generate human readable representation of the EventMarkgetEndMark()abstract Event.IDgetEventId()Get the type (kind) if this EventMarkgetStartMark()inthashCode()booleanis(Event.ID id)Check if the Event is of the provided kindjava.lang.StringtoString()
-
Constructor Details
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getStartMark
-
getEndMark
-
getArguments
protected java.lang.String getArguments()Generate human readable representation of the Event- Returns:
- representation fore humans
- See Also:
- "__repr__ for Event in PyYAML"
-
is
Check if the Event is of the provided kind- Parameters:
id- - the Event.ID enum- Returns:
- true then this Event of the provided type
-
getEventId
Get the type (kind) if this Event- Returns:
- the ID of this Event
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-