Class XLIFFOptions


  • public class XLIFFOptions
    extends AbstractOptions
    Options for the XLIFF filter. Serializable to allow saving to / reading from configuration file.

    OpenDoc filter have the following options ([+] means default on). Translatable elements:

    • [] Compatibility with 2.6
    • [x]Previous and next paragraphs
    • []<trans-unit>> ID
    • []Force shortcut to "f" for <it pos="end> tags
    • []Ignore type and ctype attributes when building <ph> tag shortcuts
    • []Ignore type and ctype attributes when building <bpt>/<ept> tag shortcuts
    • Constructor Detail

      • XLIFFOptions

        public XLIFFOptions​(java.util.Map<java.lang.String,​java.lang.String> config)
    • Method Detail

      • get26Compatibility

        public boolean get26Compatibility()
        Returns whether 2.6 compatibility should be applied
      • set26Compatibility

        public void set26Compatibility​(boolean compatibility26)
        Sets whether 2.6 compatibility should be applied.
      • getForceShortcutToF

        public boolean getForceShortcutToF()
        Return whether the shortcut should be set to "f" for <it pos="end> tags
      • setForceShortcutToF

        public void setForceShortcutToF​(boolean forceshortcut2f)
        Set whether the shortcut should be set to "f" for <it pos="end> tags
      • getIgnoreTypeForPhTags

        public boolean getIgnoreTypeForPhTags()
        Return whether the type and ctype attributes of <ph> tag should be ignored when building shortcuts
      • setIgnoreTypeForPhTags

        public void setIgnoreTypeForPhTags​(boolean ignoreTypeForPhTags)
        Set whether the type and ctype attributes of <ph> tag should be ignored when building shortcuts
      • getIgnoreTypeForBptTags

        public boolean getIgnoreTypeForBptTags()
        Return whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcuts
      • setIgnoreTypeForBptTags

        public void setIgnoreTypeForBptTags​(boolean ignoreTypeForBptTags)
        Set whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcuts
      • getChangeStateToNeedsReviewTranslation

        public boolean getChangeStateToNeedsReviewTranslation()
        Return whether transit to state="needs-review-translation" instead of "translated"
      • setStateToReview

        public void setStateToReview​(boolean stateToReview)
        Set behavior flag whether change to state="needs-review-translation" instead of "translated"