Package net.sf.okapi.steps.diffleverage
Class FileAlignment<T>
- java.lang.Object
-
- net.sf.okapi.steps.diffleverage.FileAlignment<T>
-
- Type Parameters:
T-
public class FileAlignment<T> extends Object
Stores alignments ofFileLikeThings- Author:
- HargraveJE
-
-
Constructor Summary
Constructors Constructor Description FileAlignment(FileLikeThing<T> newFile)Create a 1-0 alignment (source only)FileAlignment(FileLikeThing<T> newFile, FileLikeThing<T> trgFile)Bi-lingual alignmentFileAlignment(FileLikeThing<T> newFile, FileLikeThing<T> oldSrcFile, FileLikeThing<T> oldTrgFile)Tri-lingual alignment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileLikeThing<T>getNew()Get the new sourceFileLikeThingFileLikeThing<T>getOldSrc()Get the old sourceFileLikeThing(matches the new source)FileLikeThing<T>getOldTrg()Get old targetFileLikeThingFileLikeThing<T>getTrgFile()Get targetFileLikeThing(matches "new" source file)
-
-
-
Constructor Detail
-
FileAlignment
public FileAlignment(FileLikeThing<T> newFile, FileLikeThing<T> trgFile)
Bi-lingual alignment- Parameters:
newFile- source filetrgFile- target file
-
FileAlignment
public FileAlignment(FileLikeThing<T> newFile, FileLikeThing<T> oldSrcFile, FileLikeThing<T> oldTrgFile)
Tri-lingual alignment- Parameters:
newFile- new source fileoldSrcFile- old source fileoldTrgFile- old target file
-
FileAlignment
public FileAlignment(FileLikeThing<T> newFile)
Create a 1-0 alignment (source only)- Parameters:
newFile- new source file
-
-
Method Detail
-
getNew
public FileLikeThing<T> getNew()
Get the new sourceFileLikeThing- Returns:
- new source
FileLikeThing
-
getOldSrc
public FileLikeThing<T> getOldSrc()
Get the old sourceFileLikeThing(matches the new source)- Returns:
- old source
FileLikeThing
-
getOldTrg
public FileLikeThing<T> getOldTrg()
Get old targetFileLikeThing- Returns:
- old target
FileLikeThing(matches old source)
-
getTrgFile
public FileLikeThing<T> getTrgFile()
Get targetFileLikeThing(matches "new" source file)- Returns:
- the trgFile
-
-