Package org.omegat.core.data
Class PrepareTMXEntry
- java.lang.Object
-
- org.omegat.core.data.PrepareTMXEntry
-
- All Implemented Interfaces:
ITMXEntry
,ITranslationEntry
public class PrepareTMXEntry extends java.lang.Object implements ITMXEntry
Class for prepare TMXEntry content before save unchangeable copy in the ProjectTMX. We can't use just parameters in the setTranslation() method since count of parameters is too much. Structure of this class is almost the save like TMXEntry. Instead, we will set all parameters into this class, then ProjectTMX will convert in into TMXEntry than save internally.
-
-
Field Summary
Fields Modifier and Type Field Description long
changeDate
java.lang.String
changer
long
creationDate
java.lang.String
creator
java.lang.String
note
java.util.List<TMXProp>
otherProperties
java.lang.String
source
java.lang.String
translation
-
Constructor Summary
Constructors Constructor Description PrepareTMXEntry()
PrepareTMXEntry(TMXEntry e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getChangeDate()
Gets the EPOCH timestamp for last change in this entryjava.lang.String
getChanger()
Gets the author of last change in the entrylong
getCreationDate()
Gets the initial creation date as an EPOCH timestampjava.lang.String
getCreator()
Gets the initial creator of the entryjava.lang.String
getNote()
Gets text note (markup <note> in TMX format)java.util.List<TMXProp>
getProperties()
java.lang.String
getPropValue(java.lang.String propType)
java.lang.String
getSourceText()
Gets the source textjava.lang.String
getTranslationText()
Gets translation textboolean
hasProperties()
boolean
hasPropValue(java.lang.String propType, java.lang.String propValue)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.omegat.core.data.ITranslationEntry
isTranslated
-
-
-
-
Field Detail
-
source
public java.lang.String source
-
translation
public java.lang.String translation
-
changer
public java.lang.String changer
-
changeDate
public long changeDate
-
creator
public java.lang.String creator
-
creationDate
public long creationDate
-
note
public java.lang.String note
-
otherProperties
public java.util.List<TMXProp> otherProperties
-
-
Constructor Detail
-
PrepareTMXEntry
public PrepareTMXEntry()
-
PrepareTMXEntry
public PrepareTMXEntry(TMXEntry e)
-
-
Method Detail
-
getSourceText
public java.lang.String getSourceText()
Description copied from interface:ITranslationEntry
Gets the source text- Specified by:
getSourceText
in interfaceITranslationEntry
-
getTranslationText
public java.lang.String getTranslationText()
Description copied from interface:ITranslationEntry
Gets translation text- Specified by:
getTranslationText
in interfaceITranslationEntry
-
getCreator
public java.lang.String getCreator()
Description copied from interface:ITMXEntry
Gets the initial creator of the entry- Specified by:
getCreator
in interfaceITMXEntry
-
getCreationDate
public long getCreationDate()
Description copied from interface:ITMXEntry
Gets the initial creation date as an EPOCH timestamp- Specified by:
getCreationDate
in interfaceITMXEntry
-
getChanger
public java.lang.String getChanger()
Description copied from interface:ITMXEntry
Gets the author of last change in the entry- Specified by:
getChanger
in interfaceITMXEntry
-
getChangeDate
public long getChangeDate()
Description copied from interface:ITMXEntry
Gets the EPOCH timestamp for last change in this entry- Specified by:
getChangeDate
in interfaceITMXEntry
-
getNote
public java.lang.String getNote()
Description copied from interface:ITMXEntry
Gets text note (markup <note> in TMX format)
-
hasProperties
public boolean hasProperties()
- Specified by:
hasProperties
in interfaceITMXEntry
-
getProperties
public java.util.List<TMXProp> getProperties()
- Specified by:
getProperties
in interfaceITMXEntry
-
getPropValue
public java.lang.String getPropValue(java.lang.String propType)
- Specified by:
getPropValue
in interfaceITMXEntry
-
hasPropValue
public boolean hasPropValue(java.lang.String propType, java.lang.String propValue)
- Specified by:
hasPropValue
in interfaceITMXEntry
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-