1 28 package org.jvyamlb.events; 29 30 import org.jruby.util.ByteList; 31 32 35 public class ScalarEvent extends NodeEvent { 36 private String tag; 37 private char style; 38 private ByteList value; 39 private boolean[] implicit; 40 41 public ScalarEvent(final String anchor, final String tag, final boolean[] implicit, final ByteList value, final char style) { 42 super(anchor); 43 this.tag = tag; 44 this.implicit = implicit; 45 this.value = value; 46 this.style = style; 47 } 48 49 public String getTag() { 50 return this.tag; 51 } 52 53 public char getStyle() { 54 return this.style; 55 } 56 57 public ByteList getValue() { 58 return this.value; 59 } 60 61 public boolean[] getImplicit() { 62 return this.implicit; 63 } 64 65 public String toString() { 66 return "#<" + this.getClass().getName() + " value=\"" + new String (value.bytes()) + "\">"; 67 } 68 } | Popular Tags |