Class CommentForValidation
- java.lang.Object
-
- com.google.gerrit.extensions.validators.CommentForValidation
-
public abstract class CommentForValidation extends Object
Holds a comment's text andCommentForValidation.CommentType
in order to pass it to a validation plugin.- See Also:
CommentValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommentForValidation.CommentType
The 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 CommentForValidation
create(CommentForValidation.CommentType type, String text)
CommentValidationFailure
failValidation(String message)
abstract String
getText()
abstract CommentForValidation.CommentType
getType()
-
-
-
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)
-
-