public class NotesMapper extends Object
Since the operation to and from should be equivalent, we put both operations in here to make it easier to compare them.
| Modifier and Type | Method and Description |
|---|---|
static void |
setAnnotations(IWithNotes sourceXliffNotesHolder,
IWithAnnotations targetAnnotationsHolder)
Takes notes from XLIFF 2.0 and stores them as Okapi Core Annotations
|
static void |
setNotes(IWithAnnotations sourceAnnotationsHolder,
IWithNotes targetXliffNotesHolder)
Takes annotations from Okapi Core and stores them as XLIFF 2.0 notes
|
static void |
setNotes(IWithAnnotations sourceAnnotationsHolder,
StartFileData targetStartFileData)
A placeholder to give a warning if annotations are detected in the
StartSubDocument. |
public static void setNotes(IWithAnnotations sourceAnnotationsHolder, IWithNotes targetXliffNotesHolder)
sourceAnnotationsHolder - The source of the annotations.targetXliffNotesHolder - The destination where the notes will be
stored.public static void setAnnotations(IWithNotes sourceXliffNotesHolder, IWithAnnotations targetAnnotationsHolder)
sourceXliffNotesHolder - The source of the notes.targetAnnotationsHolder - The destination to store the annotationspublic static void setNotes(IWithAnnotations sourceAnnotationsHolder, StartFileData targetStartFileData)
StartSubDocument. If the StartSubDocument has some
annotations, they will be lost and a warning will be logged.
The StartFileData class from the XLIFF Toolkit does not implement
IWithNotes, instead the notes in a <file> element are stored in
MidFileData. In a future update we could
potentially transfer the annotations from the StartSubDocument to the
MidFileData.sourceAnnotationsHolder - The source of the notes.targetStartFileData - The destination where Notes are attempting to
be storedCopyright © 2022. All rights reserved.