/** * Create a new <code>StringLabel</code> with the given content. * * @param str The new label's content * @param beginPosition Start offset in original text * @param endPosition End offset in original text */ public StringLabel(String str, int beginPosition, int endPosition) { this.str = str; setBeginPosition(beginPosition); setEndPosition(endPosition); }
/** * Create a new <code>StringLabel</code> with the * <code>value()</code> of another label as its label. * * @param label The other label */ public StringLabel(Label label) { this.str = label.value(); if (label instanceof HasOffset) { HasOffset ofs = (HasOffset) label; setBeginPosition(ofs.beginPosition()); setEndPosition(ofs.endPosition()); } }
/** * Create a new <code>StringLabel</code> with the given content. * * @param str The new label's content * @param beginPosition Start offset in original text * @param endPosition End offset in original text */ public StringLabel(String str, int beginPosition, int endPosition) { this.str = str; setBeginPosition(beginPosition); setEndPosition(endPosition); }
/** * Create a new <code>StringLabel</code> with the given content. * * @param str The new label's content * @param beginPosition Start offset in original text * @param endPosition End offset in original text */ public StringLabel(String str, int beginPosition, int endPosition) { this.str = str; setBeginPosition(beginPosition); setEndPosition(endPosition); }
/** * Create a new <code>StringLabel</code> with the given content. * * @param str The new label's content * @param beginPosition Start offset in original text * @param endPosition End offset in original text */ public StringLabel(String str, int beginPosition, int endPosition) { this.str = str; setBeginPosition(beginPosition); setEndPosition(endPosition); }
/** * Create a new <code>StringLabel</code> with the given content. * * @param str The new label's content * @param beginPosition Start offset in original text * @param endPosition End offset in original text */ public StringLabel(String str, int beginPosition, int endPosition) { this.str = str; setBeginPosition(beginPosition); setEndPosition(endPosition); }
/** * Create a new <code>StringLabel</code> with the * <code>value()</code> of another label as its label. * * @param label The other label */ public StringLabel(Label label) { this.str = label.value(); if (label instanceof HasOffset) { HasOffset ofs = (HasOffset) label; setBeginPosition(ofs.beginPosition()); setEndPosition(ofs.endPosition()); } }
/** * Create a new <code>StringLabel</code> with the * <code>value()</code> of another label as its label. * * @param label The other label */ public StringLabel(Label label) { this.str = label.value(); if (label instanceof HasOffset) { HasOffset ofs = (HasOffset) label; setBeginPosition(ofs.beginPosition()); setEndPosition(ofs.endPosition()); } }
/** * Create a new <code>StringLabel</code> with the * <code>value()</code> of another label as its label. * * @param label The other label */ public StringLabel(Label label) { this.str = label.value(); if (label instanceof HasOffset) { HasOffset ofs = (HasOffset) label; setBeginPosition(ofs.beginPosition()); setEndPosition(ofs.endPosition()); } }
/** * Create a new <code>StringLabel</code> with the * <code>value()</code> of another label as its label. * * @param label The other label */ public StringLabel(Label label) { this.str = label.value(); if (label instanceof HasOffset) { HasOffset ofs = (HasOffset) label; setBeginPosition(ofs.beginPosition()); setEndPosition(ofs.endPosition()); } }