blob: 051661f4a7f17006fcad898cc7310399d9795c4f [file] [log] [blame]
/*
* See LICENSE file in distribution for copyright and licensing information.
*/
package org.yaml.snakeyaml.events;
import java.util.Map;
import org.yaml.snakeyaml.error.Mark;
/**
* @see <a href="http://pyyaml.org/wiki/PyYAML">PyYAML</a> for more information
*/
public final class DocumentStartEvent extends Event {
private final boolean explicit;
private final Integer[] version;
private final Map<String, String> tags;
public DocumentStartEvent(Mark startMark, Mark endMark, boolean explicit, Integer[] version,
Map<String, String> tags) {
super(startMark, endMark);
this.explicit = explicit;
this.version = version;
this.tags = tags;
}
public boolean getExplicit() {
return explicit;
}
public Integer[] getVersion() {
return version;
}
public Map<String, String> getTags() {
return tags;
}
}