Class StoredCommentLinkInfo


  • public abstract class StoredCommentLinkInfo
    extends Object
    Info about a single commentlink section in a config.
    • Constructor Detail

      • StoredCommentLinkInfo

        public StoredCommentLinkInfo()
    • Method Detail

      • getName

        public abstract String getName()
      • getMatch

        public abstract String getMatch()
        A regular expression to match for the commentlink to apply.
      • getLink

        public abstract String getLink()
        The link to replace the match with. This can only be set if html is null.

        The constructed link is using getLink() getPrefix() getSuffix() and getText(), and has the shape of

        PREFIX<a href="LINK">TEXT</a>SUFFIX

      • getPrefix

        public abstract String getPrefix()
        The text before the link tag that the match is replaced with. This can only be set if link is not null.
      • getSuffix

        public abstract String getSuffix()
        The text after the link tag that the match is replaced with. This can only be set if link is not null.
      • getText

        public abstract String getText()
        The content of the link tag that the match is replaced with. This can only be set if link is not null.
      • getHtml

        public abstract String getHtml()
        The html to replace the match with. This can only be set if link is null.
      • getEnabled

        public abstract Boolean getEnabled()
        Weather this comment link is active. null means true.
      • getOverrideOnly

        public abstract boolean getOverrideOnly()
        If set, StoredCommentLinkInfo has to be overridden to take any effect.