Interface Element

All Known Implementing Classes:
AggregatedTag, Comment, DTD, OutOfTurnTag, ProcessingInstruction, Tag, Text, XMLContentBasedTag, XMLEntityText, XMLIntactTag, XMLOutOfTurnTag, XMLPseudoTag, XMLTag, XMLText, Xtag

public interface Element
Element of the translatable entry. Can be a tag or a piece of text.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the element in its original form as it was in original document.
    Returns shorcuts like '\b_i0_\b' for statistics calculation
    @Nullable String
    Returns shortcut string representation of the element.
    Returns long XML-encoded representation of the element for storing in TMX.
  • Method Details

    • toShortcut

      @Nullable String toShortcut()
      Returns shortcut string representation of the element. E.g. for <strong> tag should return <s3>.
    • toSafeCalcShortcut

      String toSafeCalcShortcut()
      Returns shorcuts like '\b_i0_\b' for statistics calculation
    • toTMX

      String toTMX()
      Returns long XML-encoded representation of the element for storing in TMX. E.g. for <strong> tag should return <bpt i="3">&lt;strong&gt;</bpt>.
    • toOriginal

      String toOriginal()
      Returns the element in its original form as it was in original document. E.g. for <strong> tag should return <bpt i="3">&lt;strong&gt;</bpt>.