Package com.google.gerrit.entities
Class StoredCommentLinkInfo
java.lang.Object
com.google.gerrit.entities.StoredCommentLinkInfo
Info about a single commentlink section in a config.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a newStoredCommentLinkInfo.Builder
instance.static StoredCommentLinkInfo
Creates a disabledStoredCommentLinkInfo
that can be overridden but doesn't do anything on it's own.static StoredCommentLinkInfo
Creates an enabledStoredCommentLinkInfo
that can be overridden but doesn't do anything on its own.static StoredCommentLinkInfo
fromInfo
(CommentLinkInfo src, Boolean enabled) Creates and returns a newStoredCommentLinkInfo
instance with the same values.abstract Boolean
Weather this comment link is active.abstract String
getLink()
The link to replace the match with.abstract String
getMatch()
A regular expression to match for the commentlink to apply.abstract String
getName()
abstract boolean
If set,StoredCommentLinkInfo
has to be overridden to take any effect.abstract String
The optional text before the link tag that the match is replaced with.abstract String
The optional text after the link tag that the match is replaced with.abstract String
getText()
The content of the link tag that the match is replaced with.toInfo()
Returns anCommentLinkInfo
instance with the same values.
-
Constructor Details
-
StoredCommentLinkInfo
public StoredCommentLinkInfo()
-
-
Method Details
-
getName
-
getMatch
A regular expression to match for the commentlink to apply. -
getLink
The link to replace the match with.The constructed link is using
getLink()
getPrefix()
getSuffix()
andgetText()
, and has the shape ofPREFIX<a href="LINK">TEXT</a>SUFFIX
-
getPrefix
The optional text before the link tag that the match is replaced with. -
getSuffix
The optional text after the link tag that the match is replaced with. -
getText
The content of the link tag that the match is replaced with. If not set full match is used. -
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. -
enabled
Creates an enabledStoredCommentLinkInfo
that can be overridden but doesn't do anything on its own. -
disabled
Creates a disabledStoredCommentLinkInfo
that can be overridden but doesn't do anything on it's own. -
builder
Creates and returns a newStoredCommentLinkInfo.Builder
instance. -
fromInfo
Creates and returns a newStoredCommentLinkInfo
instance with the same values. -
toInfo
Returns anCommentLinkInfo
instance with the same values.
-