Class CommentForValidation
- java.lang.Object
-
- com.google.gerrit.extensions.validators.CommentForValidation
-
public abstract class CommentForValidation extends Object
Holds a comment's text andCommentForValidation.CommentTypein order to pass it to a validation plugin.- See Also:
CommentValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommentForValidation.CommentTypeThe type of comment.
-
Constructor Summary
Constructors Constructor Description CommentForValidation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CommentForValidationcreate(CommentForValidation.CommentType type, String text)CommentValidationFailurefailValidation(String message)abstract StringgetText()abstract CommentForValidation.CommentTypegetType()
-
-
-
Method Detail
-
create
public static CommentForValidation create(CommentForValidation.CommentType type, String text)
-
getType
public abstract CommentForValidation.CommentType getType()
-
getText
public abstract String getText()
-
failValidation
public CommentValidationFailure failValidation(String message)
-
-