Class InlineCode


  • @Generated(value="org.openapitools.codegen.languages.JavaInflectorServerCodegen",
               comments="Generator version: 7.15.0")
    public class InlineCode
    extends Object
    Inline code, markup in a file segment.
    • Constructor Detail

      • InlineCode

        public InlineCode()
    • Method Detail

      • setId

        public void setId​(Integer id)
      • position

        public InlineCode position​(Integer position)
        Position (0-based char index) of this inline code in the text string.
      • getPosition

        public Integer getPosition()
      • setPosition

        public void setPosition​(Integer position)
      • type

        public InlineCode type​(String type)
        Arbitrary string to represent the format-agnostic type of this inline code, e.g. \"bold\", \"italic\", \"underline\", \"link\", \"image\", etc.
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • tagType

        public InlineCode tagType​(net.sf.okapi.common.resource.TextFragment.TagType tagType)
      • getTagType

        public net.sf.okapi.common.resource.TextFragment.TagType getTagType()
      • setTagType

        public void setTagType​(net.sf.okapi.common.resource.TextFragment.TagType tagType)
      • data

        public InlineCode data​(String data)
        Unescaped representation of the markup of this code (, not the original <b>) or a reference to another resource as set by pipeline actions.
      • getData

        public String getData()
      • setData

        public void setData​(String data)
      • outerData

        public InlineCode outerData​(String outerData)
        Escaped representation of the markup of this code as it appears in the original document. Reserved to store inline codes for the extraction formats such as XLIFF, TS, etc. If this field in null or an empty string, then the data field value is used at the final file generation.
      • getOuterData

        public String getOuterData()
      • setOuterData

        public void setOuterData​(String outerData)
      • flag

        public InlineCode flag​(Integer flag)
        A combination of the following bit masks. Set by the pipeline actions. HASREF = 0x01 Indicates that this inline code has one or more references in its data part. CLONEABLE = 0x02 Indicates that this inline code can be duplicated in the text. DELETEABLE = 0x04 Indicates that this inline code can be removed from the text. ADDED = 0x08 Indicates that this inline code was added to the parent segment after its extraction. MERGED = 0x10 Indicates that this inline code was merged with another inline code.
      • getFlag

        public Integer getFlag()
      • setFlag

        public void setFlag​(Integer flag)
      • displayText

        public InlineCode displayText​(String displayText)
        The tooltip text presenting the inline code to the user.
      • getDisplayText

        public String getDisplayText()
      • setDisplayText

        public void setDisplayText​(String displayText)
      • originalId

        public InlineCode originalId​(String originalId)
        id for this code. Populated from the original format if available. Some formats use non-numeric Ids which we need to preserve for the final file generation.
      • getOriginalId

        public String getOriginalId()
      • setOriginalId

        public void setOriginalId​(String originalId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object