Package com.acumenvelocity.ath.model
Class InlineCode
- java.lang.Object
-
- com.acumenvelocity.ath.model.InlineCode
-
@Generated(value="org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments="Generator version: 7.15.0") public class InlineCode extends ObjectInline code, markup in a file segment.
-
-
Constructor Summary
Constructors Constructor Description InlineCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InlineCodedata(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.InlineCodedisplayText(String displayText)The tooltip text presenting the inline code to the user.booleanequals(Object o)InlineCodeflag(Integer flag)A combination of the following bit masks.StringgetData()StringgetDisplayText()IntegergetFlag()IntegergetId()StringgetOriginalId()StringgetOuterData()IntegergetPosition()net.sf.okapi.common.resource.TextFragment.TagTypegetTagType()StringgetType()inthashCode()InlineCodeid(Integer id)Id of this code.InlineCodeoriginalId(String originalId)id for this code.InlineCodeouterData(String outerData)Escaped representation of the markup of this code as it appears in the original document.InlineCodeposition(Integer position)Position (0-based char index) of this inline code in the text string.voidsetData(String data)voidsetDisplayText(String displayText)voidsetFlag(Integer flag)voidsetId(Integer id)voidsetOriginalId(String originalId)voidsetOuterData(String outerData)voidsetPosition(Integer position)voidsetTagType(net.sf.okapi.common.resource.TextFragment.TagType tagType)voidsetType(String type)InlineCodetagType(net.sf.okapi.common.resource.TextFragment.TagType tagType)StringtoString()InlineCodetype(String type)Arbitrary string to represent the format-agnostic type of this inline code, e.g.
-
-
-
Method Detail
-
id
public InlineCode id(Integer id)
Id of this code. Assigned by Okapi.
-
getId
public Integer getId()
-
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)
-
-