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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CommentValidationContextabstract intReturns the change id the comment is being added to.abstract StringReturns the project the comment is being added to.abstract StringReturns the ref name the comment is being added to.
- 
Constructor Details- 
CommentValidationContextpublic CommentValidationContext()
 
- 
- 
Method Details- 
getChangeIdpublic abstract int getChangeId()Returns the change id the comment is being added to.
- 
getProjectReturns the project the comment is being added to.
- 
getRefNameReturns the ref name the comment is being added to.
- 
create
 
-