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 longchangeDatejava.lang.StringchangerlongcreationDatejava.lang.Stringcreatorjava.lang.Stringnotejava.util.List<TMXProp>otherPropertiesjava.lang.Stringsourcejava.lang.Stringtranslation
-
Constructor Summary
Constructors Constructor Description PrepareTMXEntry()PrepareTMXEntry(TMXEntry e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChangeDate()Gets the EPOCH timestamp for last change in this entryjava.lang.StringgetChanger()Gets the author of last change in the entrylonggetCreationDate()Gets the initial creation date as an EPOCH timestampjava.lang.StringgetCreator()Gets the initial creator of the entryjava.lang.StringgetNote()Gets text note (markup <note> in TMX format)java.util.List<TMXProp>getProperties()java.lang.StringgetPropValue(java.lang.String propType)java.lang.StringgetSourceText()Gets the source textjava.lang.StringgetTranslationText()Gets translation textbooleanhasProperties()booleanhasPropValue(java.lang.String propType, java.lang.String propValue)java.lang.StringtoString()-
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:ITranslationEntryGets the source text- Specified by:
getSourceTextin interfaceITranslationEntry
-
getTranslationText
public java.lang.String getTranslationText()
Description copied from interface:ITranslationEntryGets translation text- Specified by:
getTranslationTextin interfaceITranslationEntry
-
getCreator
public java.lang.String getCreator()
Description copied from interface:ITMXEntryGets the initial creator of the entry- Specified by:
getCreatorin interfaceITMXEntry
-
getCreationDate
public long getCreationDate()
Description copied from interface:ITMXEntryGets the initial creation date as an EPOCH timestamp- Specified by:
getCreationDatein interfaceITMXEntry
-
getChanger
public java.lang.String getChanger()
Description copied from interface:ITMXEntryGets the author of last change in the entry- Specified by:
getChangerin interfaceITMXEntry
-
getChangeDate
public long getChangeDate()
Description copied from interface:ITMXEntryGets the EPOCH timestamp for last change in this entry- Specified by:
getChangeDatein interfaceITMXEntry
-
getNote
public java.lang.String getNote()
Description copied from interface:ITMXEntryGets text note (markup <note> in TMX format)
-
hasProperties
public boolean hasProperties()
- Specified by:
hasPropertiesin interfaceITMXEntry
-
getProperties
public java.util.List<TMXProp> getProperties()
- Specified by:
getPropertiesin interfaceITMXEntry
-
getPropValue
public java.lang.String getPropValue(java.lang.String propType)
- Specified by:
getPropValuein interfaceITMXEntry
-
hasPropValue
public boolean hasPropValue(java.lang.String propType, java.lang.String propValue)- Specified by:
hasPropValuein interfaceITMXEntry
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-