Package org.omegat.core.data
Class PrepareTMXEntry
java.lang.Object
org.omegat.core.data.PrepareTMXEntry
- All Implemented Interfaces:
ITMXEntry,ITranslationEntry
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
FieldsModifier and TypeFieldDescriptionlonglong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the EPOCH timestamp for last change in this entryGets the author of last change in the entrylongGets the initial creation date as an EPOCH timestampGets the initial creator of the entrygetNote()Gets text note (markup <note> in TMX format)getPropValue(String propType) Gets the source textGets translation textbooleanbooleanhasPropValue(String propType, String propValue) toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.omegat.core.data.ITranslationEntry
isTranslated
-
Field Details
-
source
-
translation
-
changer
-
changeDate
public long changeDate -
creator
-
creationDate
public long creationDate -
note
-
otherProperties
-
-
Constructor Details
-
PrepareTMXEntry
public PrepareTMXEntry() -
PrepareTMXEntry
-
PrepareTMXEntry
-
-
Method Details
-
getSourceText
Description copied from interface:ITranslationEntryGets the source text- Specified by:
getSourceTextin interfaceITranslationEntry
-
getTranslationText
Description copied from interface:ITranslationEntryGets translation text- Specified by:
getTranslationTextin interfaceITranslationEntry
-
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
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
Description copied from interface:ITMXEntryGets text note (markup <note> in TMX format) -
hasProperties
public boolean hasProperties()- Specified by:
hasPropertiesin interfaceITMXEntry
-
getProperties
- Specified by:
getPropertiesin interfaceITMXEntry
-
getPropValue
- Specified by:
getPropValuein interfaceITMXEntry
-
hasPropValue
- Specified by:
hasPropValuein interfaceITMXEntry
-
toString
-