Class 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 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

      • getCreator

        public java.lang.String getCreator()
        Description copied from interface: ITMXEntry
        Gets the initial creator of the entry
        Specified by:
        getCreator in interface ITMXEntry
      • getCreationDate

        public long getCreationDate()
        Description copied from interface: ITMXEntry
        Gets the initial creation date as an EPOCH timestamp
        Specified by:
        getCreationDate in interface ITMXEntry
      • getChanger

        public java.lang.String getChanger()
        Description copied from interface: ITMXEntry
        Gets the author of last change in the entry
        Specified by:
        getChanger in interface ITMXEntry
      • getChangeDate

        public long getChangeDate()
        Description copied from interface: ITMXEntry
        Gets the EPOCH timestamp for last change in this entry
        Specified by:
        getChangeDate in interface ITMXEntry
      • getNote

        public java.lang.String getNote()
        Description copied from interface: ITMXEntry
        Gets text note (markup <note> in TMX format)
        Specified by:
        getNote in interface ITMXEntry
      • getPropValue

        public java.lang.String getPropValue​(java.lang.String propType)
        Specified by:
        getPropValue in interface ITMXEntry
      • hasPropValue

        public boolean hasPropValue​(java.lang.String propType,
                                    java.lang.String propValue)
        Specified by:
        hasPropValue in interface ITMXEntry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object