Package org.omegat.filters2
Interface IParseCallback
-
- All Known Implementing Classes:
ParseEntry
public interface IParseCallback
Callback for parse files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
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.0void
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) propertiesvoid
linkPrevNextSegments()
This method can be called from any filter on the end of file processing.
-
-
-
Method Detail
-
addEntryWithProperties
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- Parameters:
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 parts
-
addEntry
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. Convenience method foraddEntryWithProperties(String, String, String, boolean, String[], String, IFilter, List)
.
-
addEntry
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
-
linkPrevNextSegments
void linkPrevNextSegments()
This method can be called from any filter on the end of file processing. It links prev/next segments for multiple translations.
-
-