Package net.sf.okapi.common.annotation
Class NoteAnnotation
- java.lang.Object
-
- net.sf.okapi.common.annotation.NoteAnnotation
-
- All Implemented Interfaces:
Cloneable,Iterable<Note>,IAnnotation
public class NoteAnnotation extends Object implements IAnnotation, Iterable<Note>
Annotation used to expose xliff 1.2 like notes
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOC_NOTEstatic StringTRANS_NOTE
-
Constructor Summary
Constructors Constructor Description NoteAnnotation()NoteAnnotation(Collection<Note> initialNotes)Create an annotation object containing one or more notes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Note note)Add a Note to the annotation.NotegetNote(int index)Iterator<Note>iterator()voidmerge(NoteAnnotation otherNote)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.annotation.IAnnotation
toString
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
LOC_NOTE
public static final String LOC_NOTE
- See Also:
- Constant Field Values
-
TRANS_NOTE
public static final String TRANS_NOTE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NoteAnnotation
public NoteAnnotation()
-
NoteAnnotation
public NoteAnnotation(Collection<Note> initialNotes)
Create an annotation object containing one or more notes.
-
-
Method Detail
-
add
public void add(Note note)
Add a Note to the annotation.- Parameters:
note- - Note from the xliff document.
-
merge
public void merge(NoteAnnotation otherNote)
-
getNote
public Note getNote(int index)
-
-