public Reference(BasedSequence label, BasedSequence url, BasedSequence title) { super(BasedSequence.NULL); this.openingMarker = label.subSequence(0, 1); this.reference = label.subSequence(1, label.length() - 2).trim(); this.closingMarker = label.subSequence(label.length() - 2, label.length()); setUrlChars(url); if (title != null) { this.titleOpeningMarker = title.subSequence(0, 1); this.title = title.subSequence(1, title.length() - 1); this.titleClosingMarker = title.subSequence(title.length() - 1, title.length()); } setCharsFromContent(); }
public Reference(BasedSequence label, BasedSequence url, BasedSequence title) { super(BasedSequence.NULL); this.openingMarker = label.subSequence(0, 1); this.reference = label.subSequence(1, label.length() - 2).trim(); this.closingMarker = label.subSequence(label.length() - 2, label.length()); setUrlChars(url); if (title != null) { this.titleOpeningMarker = title.subSequence(0, 1); this.title = title.subSequence(1, title.length() - 1); this.titleClosingMarker = title.subSequence(title.length() - 1, title.length()); } setCharsFromContent(); }