Class CommentValidationContext
- java.lang.Object
- 
- com.google.gerrit.extensions.validators.CommentValidationContext
 
- 
 public abstract class CommentValidationContext extends Object 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:
- CommentValidator
 
- 
- 
Constructor SummaryConstructors Constructor Description CommentValidationContext()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CommentValidationContextcreate(int changeId, String project)abstract intgetChangeId()Returns the change id the comment is being added to.abstract StringgetProject()Returns the project the comment is being added to.
 
- 
- 
- 
Method Detail- 
getChangeIdpublic abstract int getChangeId() Returns the change id the comment is being added to.
 - 
getProjectpublic abstract String getProject() Returns the project the comment is being added to.
 - 
createpublic static CommentValidationContext create(int changeId, String project) 
 
- 
 
-