Class CommentValidationContext
java.lang.Object
com.google.gerrit.extensions.validators.CommentValidationContext
Holds a comment validators context in order to pass it to a validation plugin.
This is used to provided additional context around that comment that can be used by the validator to determine what validations should be run. For example, a comment validator may only want to validate a comment if it's on a change in the project foo.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommentValidationContext
abstract int
Returns the change id the comment is being added to.abstract String
Returns the project the comment is being added to.abstract String
Returns the ref name the comment is being added to.
-
Constructor Details
-
CommentValidationContext
public CommentValidationContext()
-
-
Method Details
-
getChangeId
public abstract int getChangeId()Returns the change id the comment is being added to. -
getProject
Returns the project the comment is being added to. -
getRefName
Returns the ref name the comment is being added to. -
create
-