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.0
      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.
    • 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 format
        source - source entry text
        translation - exist translation text
        isFuzzy - true if translation is fuzzy
        props - an array of key=value metadata properties for the entry
        path - path of segment
        filter - filter which produces entry
        protectedParts - (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,
                      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.