Package org.omegat.core.data
Class SyncTMX
- java.lang.Object
-
- org.omegat.core.data.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.
-
-
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)
-
-
-
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 interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Specified by:
getMetadata
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
applyChanges
public org.madlonkay.supertmxmerge.data.ITmx applyChanges(org.madlonkay.supertmxmerge.data.ResolutionSet resolution)
- Specified by:
applyChanges
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
writeTo
public void writeTo(java.io.File outputFile) throws org.madlonkay.supertmxmerge.data.WriteFailedException
- Specified by:
writeTo
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
- Throws:
org.madlonkay.supertmxmerge.data.WriteFailedException
-
getUnderlyingRepresentation
public java.lang.Object getUnderlyingRepresentation()
- Specified by:
getUnderlyingRepresentation
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
getTu
public org.madlonkay.supertmxmerge.data.ITu getTu(org.madlonkay.supertmxmerge.data.Key key)
- Specified by:
getTu
in interfaceorg.madlonkay.supertmxmerge.data.ITmx
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<org.madlonkay.supertmxmerge.data.Key,org.madlonkay.supertmxmerge.data.ITuv>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<org.madlonkay.supertmxmerge.data.Key,org.madlonkay.supertmxmerge.data.ITuv>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<org.madlonkay.supertmxmerge.data.Key,org.madlonkay.supertmxmerge.data.ITuv>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.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 interfacejava.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 interfacejava.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 interfacejava.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 interfacejava.util.Map<org.madlonkay.supertmxmerge.data.Key,org.madlonkay.supertmxmerge.data.ITuv>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.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 interfacejava.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 interfacejava.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 interfacejava.util.Map<org.madlonkay.supertmxmerge.data.Key,org.madlonkay.supertmxmerge.data.ITuv>
-
-