Class LinkReferenceDefinition

java.lang.Object
org.commonmark.node.Node
org.commonmark.node.LinkReferenceDefinition

public class LinkReferenceDefinition extends Node
A link reference definition, e.g.:

 [foo]: /url "title"
 

They can be referenced anywhere else in the document to produce a link using [foo]. The definitions themselves are usually not rendered in the final output.

See Also:
  • Field Details

    • label

      private String label
    • destination

      private String destination
    • title

      private String title
  • Constructor Details

    • LinkReferenceDefinition

      public LinkReferenceDefinition()
    • LinkReferenceDefinition

      public LinkReferenceDefinition(String label, String destination, String title)
  • Method Details

    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getDestination

      public String getDestination()
    • setDestination

      public void setDestination(String destination)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • accept

      public void accept(Visitor visitor)
      Specified by:
      accept in class Node