public class PropertiesMapper extends Object
Since the mapping operation to and from should be equivalent, we put both operations in here to make it easier to compare them. All the methods in here have at least 2 parameters. The first parameter is where the data is being read from, and the second parameter is where the data is being written to.
| Constructor and Description |
|---|
PropertiesMapper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setCodeProperties(Code okapiCode,
CTag xliff2Ctag)
Transfers properties from the Okapi Core Code Tag to the XLIFF Toolkit Code
Tag
|
static void |
setCodeProperties(Code okapiCode,
MTag xliff2Mtag)
Transfers properties from the Okapi Core Code Tag to the XLIFF Toolkit Code
Tag
|
static void |
setCodeProperties(CTag xliff2Ctag,
Code okapiCode)
Transfers properties from the XLIFF Toolkit Code Tag to the Okapi Core Code
Tag.
|
static void |
setCodeProperties(MTag xliff2Mtag,
Code okapiCode) |
static void |
setGroupProperties(StartGroupData xliffStartGroupData,
StartGroup okapiStartGroup)
Transfers properties from the XLIFF 2.0 Start Group Data to the Okapi Core
Start Group
|
static void |
setGroupProperties(StartGroup okapiStartGroup,
StartGroupData xliffStartGroupData)
Transfers properties from the Okapi Core Start Group to the XLIFF 2.0 Start
Group Data
|
static void |
setPartProperties(Part xliffPart,
TextPart okapiPart)
Transfers properties from the XLIFF Toolkit Part to the Okapi Core TextPart
|
static void |
setPartProperties(TextPart okapiSourcePart,
Part xliffPart)
Transfers properties from the Okapi Core TextPart to the XLIFF Toolkit Part
|
static void |
setStartFileProperties(StartFileData xliffStartFileData,
StartSubDocument okapiStartSubDoc)
Transfers properties from the XLIFF Toolkit StartFileData to the Okapi Core
StartSubDocument
|
static void |
setStartFileProperties(StartSubDocument okapiStartSubDoc,
StartFileData xliffStartFileData)
Transfers properties from the Okapi Core StartSubDocument to the XLIFF
Toolkit StartFileData
|
static void |
setStartXliffProperties(StartDocument okapiStartDocument,
StartXliffData xliffStartXliff)
Transfers properties from the Okapi Core StartDocument to the XLIFF Toolkit
StartXliffData
|
static void |
setStartXliffProperties(StartXliffData xliffStartXliff,
StartDocument okapiStartDocument)
Transfers properties from the XLIFF Toolkit StartXliffData to the Okapi Core
StartDocument
|
static void |
setTextUnitProperties(ITextUnit okapiTextUnit,
Unit xliffTextUnit)
Transfers properties from the Okapi Core TextUnit to the XLIFF Toolkit
TextUnit
|
static void |
setTextUnitProperties(Unit unit,
ITextUnit tu)
Transfers properties from the XLIFF Toolkit TextUnit to the Okapi Core
TextUnit
|
public static void setStartXliffProperties(StartXliffData xliffStartXliff, StartDocument okapiStartDocument)
Relates to <xliff> elements in XLIFF 2.0 file
xliffStartXliff - The properties to read fromokapiStartDocument - The properties to write topublic static void setStartXliffProperties(StartDocument okapiStartDocument, StartXliffData xliffStartXliff)
Relates to <xliff> elements in XLIFF 2.0 file
okapiStartDocument - The properties to read fromxliffStartXliff - The properties to write topublic static void setStartFileProperties(StartFileData xliffStartFileData, StartSubDocument okapiStartSubDoc)
Relates to <file> elements in XLIFF 2.0 file
xliffStartFileData - The properties to read fromokapiStartSubDoc - The properties to write topublic static void setStartFileProperties(StartSubDocument okapiStartSubDoc, StartFileData xliffStartFileData)
Relates to <file> elements in XLIFF 2.0 file
xliffStartFileData - The properties to read fromokapiStartSubDoc - The properties to write topublic static void setGroupProperties(StartGroupData xliffStartGroupData, StartGroup okapiStartGroup)
xliffStartGroupData - The properties to read fromokapiStartGroup - The properties to write topublic static void setGroupProperties(StartGroup okapiStartGroup, StartGroupData xliffStartGroupData)
xliffStartGroupData - The properties to write tookapiStartGroup - The properties to read frompublic static void setTextUnitProperties(Unit unit, ITextUnit tu)
Relates to <unit> elements in XLIFF 2.0 file
unit - The properties to read fromtu - The properties to write topublic static void setTextUnitProperties(ITextUnit okapiTextUnit, Unit xliffTextUnit)
Relates to <unit> elements in XLIFF 2.0 file
okapiTextUnit - The properties to read fromxliffTextUnit - The properties to write topublic static void setPartProperties(Part xliffPart, TextPart okapiPart)
Relates to <segment> and <ignorable> elements in XLIFF 2.0 file
xliffPart - The properties to write tookapiPart - The properties to read frompublic static void setPartProperties(TextPart okapiSourcePart, Part xliffPart)
Relates to <segment> and <ignorable> elements in XLIFF 2.0 file
okapiSourcePart - The properties to read fromxliffPart - The properties to write topublic static void setCodeProperties(Code okapiCode, CTag xliff2Ctag)
Relates to <ph>, <pc>, and <sc> elements in XLIFF 2.0 file
okapiCode - The properties to read fromxliff2Ctag - The properties to write topublic static void setCodeProperties(Code okapiCode, MTag xliff2Mtag)
Relates to <ph>, <pc>, and <sc> elements in XLIFF 2.0 file
okapiCode - The properties to read fromxliff2Mtag - The properties to write topublic static void setCodeProperties(CTag xliff2Ctag, Code okapiCode)
Relates to <ph>, <pc>, and <sc> elements in XLIFF 2.0 file
okapiCode - The properties to read fromxliff2Ctag - The properties to write toCopyright © 2022. All rights reserved.