Package org.yaml.snakeyaml.events
Class Event
- java.lang.Object
-
- org.yaml.snakeyaml.events.Event
-
- Direct Known Subclasses:
CollectionEndEvent
,CommentEvent
,DocumentEndEvent
,DocumentStartEvent
,NodeEvent
,StreamEndEvent
,StreamStartEvent
public abstract class Event extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Event.ID
Event types
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
protected java.lang.String
getArguments()
Generate human readable representation of the EventMark
getEndMark()
getterabstract Event.ID
getEventId()
Get the type (kind) if this EventMark
getStartMark()
getterint
hashCode()
boolean
is(Event.ID id)
Check if the Event is of the provided kindjava.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getStartMark
public Mark getStartMark()
getter- Returns:
- start
-
getEndMark
public Mark getEndMark()
getter- Returns:
- end
-
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
public boolean is(Event.ID id)
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
public abstract Event.ID getEventId()
Get the type (kind) if this Event- Returns:
- the ID of this Event
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-