panda.doc.markdown.LinkRef Maven / Gradle / Ivy
package panda.doc.markdown;
/**
* A markdown link reference.
*/
class LinkRef {
/** The link. */
public final String link;
/** The optional comment/title. */
public String title;
/** Flag indicating that this is an abbreviation. */
public final boolean isAbbrev;
/**
* Constructor.
*
* @param link The link.
* @param title The title (may be null
).
* @param isAbbrev Is abbreviate
*/
public LinkRef(final String link, final String title, final boolean isAbbrev) {
this.link = link;
this.title = title;
this.isAbbrev = isAbbrev;
}
/** @see java.lang.Object#toString() */
@Override
public String toString() {
return this.link + " \"" + this.title + "\"";
}
}