public class CommentDescriptionValidationStrategy extends AbstractNoteValidationStrategy
| Constructor and Description |
|---|
CommentDescriptionValidationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected PrintTranslatorService |
getPrintTranslatorService() |
void |
setPrintTranslatorService(PrintTranslatorService printTranslatorService) |
void |
validate(NoteInfo ctx,
CommentModel comment)
Validates
Note against the given CommentModel. |
translateDescriptionpublic CommentDescriptionValidationStrategy()
public void validate(NoteInfo ctx, CommentModel comment) throws CometException, CometValidationException
NoteValidationStrategyNote against the given CommentModel. NoteInfo may contain various information about the
conversion context including the Note. If validation fails, a CometException will be thrown.ctx - The NoteInfo containing all required information for validation and conversion.comment - The CommentModel where the note should be converted to.CometException - whenever a validation violation occurres.CometValidationException - if validation failed.protected PrintTranslatorService getPrintTranslatorService()
getPrintTranslatorService in class AbstractNoteValidationStrategypublic void setPrintTranslatorService(PrintTranslatorService printTranslatorService)
setPrintTranslatorService in class AbstractNoteValidationStrategyCopyright © 2017 SAP SE. All Rights Reserved.