public interface IParseCallback
Modifier and Type | Method and Description |
---|---|
void |
addEntry(java.lang.String id,
java.lang.String source,
java.lang.String translation,
boolean isFuzzy,
java.lang.String comment,
IFilter filter)
Old call without path, for compatibility with OmegaT < 2.5.0
|
void |
addEntry(java.lang.String id,
java.lang.String source,
java.lang.String translation,
boolean isFuzzy,
java.lang.String comment,
java.lang.String path,
IFilter filter,
java.util.List<ProtectedPart> protectedParts)
Read entry from source file, with single "comment" property.
|
void |
addEntryWithProperties(java.lang.String id,
java.lang.String source,
java.lang.String translation,
boolean isFuzzy,
java.lang.String[] props,
java.lang.String path,
IFilter filter,
java.util.List<ProtectedPart> protectedParts)
Read entry from source file, with arbitrary (optional) properties
|
void |
linkPrevNextSegments()
This method can be called from any filter on the end of file processing.
|
void addEntryWithProperties(java.lang.String id, java.lang.String source, java.lang.String translation, boolean isFuzzy, java.lang.String[] props, java.lang.String path, IFilter filter, java.util.List<ProtectedPart> protectedParts)
id
- ID in source file, or null if ID not supported by formatsource
- source entry texttranslation
- exist translation textisFuzzy
- true if translation is fuzzyprops
- an array of key=value metadata properties for the entrypath
- path of segmentfilter
- filter which produces entryprotectedParts
- (since 3.0.6)
protected partsvoid addEntry(java.lang.String id, java.lang.String source, java.lang.String translation, boolean isFuzzy, java.lang.String comment, java.lang.String path, IFilter filter, java.util.List<ProtectedPart> protectedParts)
addEntryWithProperties(String, String, String, boolean, String[], String, IFilter, List)
.void addEntry(java.lang.String id, java.lang.String source, java.lang.String translation, boolean isFuzzy, java.lang.String comment, IFilter filter)
void linkPrevNextSegments()