Package org.yaml.snakeyaml.events
Class CollectionStartEvent
- java.lang.Object
-
- org.yaml.snakeyaml.events.Event
-
- org.yaml.snakeyaml.events.NodeEvent
-
- org.yaml.snakeyaml.events.CollectionStartEvent
-
- Direct Known Subclasses:
MappingStartEvent,SequenceStartEvent
public abstract class CollectionStartEvent extends NodeEvent
Base class for the start events of the collection nodes.
-
-
Constructor Summary
Constructors Constructor Description CollectionStartEvent(java.lang.String anchor, java.lang.String tag, boolean implicit, Mark startMark, Mark endMark, java.lang.Boolean flowStyle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetArguments()java.lang.BooleangetFlowStyle()trueif this collection is in flow style,falsefor block style.booleangetImplicit()trueif the tag can be omitted while this collection is emitted.java.lang.StringgetTag()Tag of this collection.-
Methods inherited from class org.yaml.snakeyaml.events.Event
equals, getEndMark, getStartMark, hashCode, is, toString
-
-
-
-
Method Detail
-
getTag
public java.lang.String getTag()
Tag of this collection.- Returns:
- The tag of this collection, or
nullif no explicit tag is available.
-
getImplicit
public boolean getImplicit()
trueif the tag can be omitted while this collection is emitted.- Returns:
- True if the tag can be omitted while this collection is emitted.
-
getFlowStyle
public java.lang.Boolean getFlowStyle()
trueif this collection is in flow style,falsefor block style.- Returns:
- If this collection is in flow style.
-
getArguments
protected java.lang.String getArguments()
- Overrides:
getArgumentsin classNodeEvent- See Also:
- "__repr__ for Event in PyYAML"
-
-