Class SyncTMX

  • All Implemented Interfaces:
    java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>, org.madlonkay.supertmxmerge.data.ITmx

    public final class SyncTMX
    extends java.lang.Object
    implements org.madlonkay.supertmxmerge.data.ITmx
    A wrapper class for use with SuperTMXMerge.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncTMX​(ProjectTMX tmx, java.lang.String name, java.lang.String sourceLanguage, java.lang.String targetLanguage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.madlonkay.supertmxmerge.data.ITmx applyChanges​(org.madlonkay.supertmxmerge.data.ResolutionSet resolution)  
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>> entrySet()  
      org.madlonkay.supertmxmerge.data.ITuv get​(java.lang.Object key)  
      java.util.Map<java.lang.String,​java.lang.String> getMetadata()  
      java.lang.String getName()  
      int getSize()  
      java.lang.String getSourceLanguage()  
      org.madlonkay.supertmxmerge.data.ITu getTu​(org.madlonkay.supertmxmerge.data.Key key)  
      java.lang.Object getUnderlyingRepresentation()  
      boolean isEmpty()  
      java.util.Set<org.madlonkay.supertmxmerge.data.Key> keySet()  
      org.madlonkay.supertmxmerge.data.ITuv put​(org.madlonkay.supertmxmerge.data.Key key, org.madlonkay.supertmxmerge.data.ITuv value)  
      void putAll​(java.util.Map<? extends org.madlonkay.supertmxmerge.data.Key,​? extends org.madlonkay.supertmxmerge.data.ITuv> m)  
      org.madlonkay.supertmxmerge.data.ITuv remove​(java.lang.Object key)  
      int size()  
      java.util.Collection<org.madlonkay.supertmxmerge.data.ITuv> values()  
      void writeTo​(java.io.File outputFile)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • SyncTMX

        public SyncTMX​(ProjectTMX tmx,
                       java.lang.String name,
                       java.lang.String sourceLanguage,
                       java.lang.String targetLanguage)
    • Method Detail

      • getSourceLanguage

        public java.lang.String getSourceLanguage()
        Specified by:
        getSourceLanguage in interface org.madlonkay.supertmxmerge.data.ITmx
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.madlonkay.supertmxmerge.data.ITmx
      • getSize

        public int getSize()
        Specified by:
        getSize in interface org.madlonkay.supertmxmerge.data.ITmx
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Specified by:
        getMetadata in interface org.madlonkay.supertmxmerge.data.ITmx
      • applyChanges

        public org.madlonkay.supertmxmerge.data.ITmx applyChanges​(org.madlonkay.supertmxmerge.data.ResolutionSet resolution)
        Specified by:
        applyChanges in interface org.madlonkay.supertmxmerge.data.ITmx
      • writeTo

        public void writeTo​(java.io.File outputFile)
                     throws org.madlonkay.supertmxmerge.data.WriteFailedException
        Specified by:
        writeTo in interface org.madlonkay.supertmxmerge.data.ITmx
        Throws:
        org.madlonkay.supertmxmerge.data.WriteFailedException
      • getUnderlyingRepresentation

        public java.lang.Object getUnderlyingRepresentation()
        Specified by:
        getUnderlyingRepresentation in interface org.madlonkay.supertmxmerge.data.ITmx
      • getTu

        public org.madlonkay.supertmxmerge.data.ITu getTu​(org.madlonkay.supertmxmerge.data.Key key)
        Specified by:
        getTu in interface org.madlonkay.supertmxmerge.data.ITmx
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • get

        public org.madlonkay.supertmxmerge.data.ITuv get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • put

        public org.madlonkay.supertmxmerge.data.ITuv put​(org.madlonkay.supertmxmerge.data.Key key,
                                                         org.madlonkay.supertmxmerge.data.ITuv value)
        Specified by:
        put in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • remove

        public org.madlonkay.supertmxmerge.data.ITuv remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • putAll

        public void putAll​(java.util.Map<? extends org.madlonkay.supertmxmerge.data.Key,​? extends org.madlonkay.supertmxmerge.data.ITuv> m)
        Specified by:
        putAll in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • keySet

        public java.util.Set<org.madlonkay.supertmxmerge.data.Key> keySet()
        Specified by:
        keySet in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • values

        public java.util.Collection<org.madlonkay.supertmxmerge.data.ITuv> values()
        Specified by:
        values in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>
      • entrySet

        public java.util.Set<java.util.Map.Entry<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<org.madlonkay.supertmxmerge.data.Key,​org.madlonkay.supertmxmerge.data.ITuv>