public class DefaultPage2NotesTranslatorService extends Object implements Page2NotesTranslatorService
| Constructor and Description |
|---|
DefaultPage2NotesTranslatorService() |
| Modifier and Type | Method and Description |
|---|---|
protected CommentInfo |
createCommentInfo(CommentModel comment) |
protected Note |
createNote(CommentInfo commentInfo,
int noteCounter) |
List<CommentInfo> |
filterComments(List<CommentInfo> commentInfos)
Filters all
CommentInfo(s) which should not be passed over to DTP Client (InDesign). |
void |
setConverter(Comment2NotePopulatingConverter converter) |
void |
setPage2NotesFilterStrategies(List<Page2NotesFilterStrategy> page2NotesFilterStrategies) |
Notes |
translate(PageModel page)
|
public Notes translate(PageModel page)
Page2NotesTranslatorServicecomments
from the
given page into JAXB XML Objects. The result is ready for sending to InDesign.translate in interface Page2NotesTranslatorServicepage - PageModel where all Commentmodels
should be getNotes node which represent the list
of
translated Notespublic List<CommentInfo> filterComments(List<CommentInfo> commentInfos)
Page2NotesTranslatorServiceCommentInfo(s) which should not be passed over to DTP Client (InDesign).filterComments in interface Page2NotesTranslatorServicecommentInfos - A list of CommentInfo(s) to filterCommentInfo(s)protected Note createNote(CommentInfo commentInfo, int noteCounter)
protected CommentInfo createCommentInfo(CommentModel comment)
public void setConverter(Comment2NotePopulatingConverter converter)
public void setPage2NotesFilterStrategies(List<Page2NotesFilterStrategy> page2NotesFilterStrategies)
Copyright © 2017 SAP SE. All Rights Reserved.