T - public class FileAligner<T> extends Object implements Iterable<FileAlignment<T>>
| Constructor and Description |
|---|
FileAligner(boolean lowerCase,
List<FileLikeThing<T>> newFiles,
List<FileLikeThing<T>> oldSrcFiles,
List<FileLikeThing<T>> oldTrgFiles,
URI newRootUri,
URI oldSrcRootUri,
URI oldTrgRootUri)
Tri-lingual alignment (new source matched with old source, matched with old target).
|
FileAligner(boolean lowerCase,
List<FileLikeThing<T>> srcFiles,
List<FileLikeThing<T>> trgFiles,
URI srcRootUri,
URI trgRootUri)
Bi-lingual alignment (match source with target files)
|
FileAligner(List<FileLikeThing<T>> newFiles,
List<FileLikeThing<T>> oldSrcFiles,
List<FileLikeThing<T>> oldTrgFiles,
URI newRootUri,
URI oldSrcRootUri,
URI oldTrgRootUri)
Tri-lingual alignment (new source matched with old source, matched with old target).
|
FileAligner(List<FileLikeThing<T>> srcFiles,
List<FileLikeThing<T>> trgFiles,
URI srcRootUri,
URI trgRootUri)
Bi-lingual alignment (match source with target files).
|
| Modifier and Type | Method and Description |
|---|---|
void |
align()
match up (align) new files (i.e., source our new source) with
|
List<FileAlignment<T>> |
getAlignments()
Get
List of FileLikeThings |
Iterator<FileAlignment<T>> |
iterator()
Iterator over aligned
FileLikeThings |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FileAligner(List<FileLikeThing<T>> newFiles, List<FileLikeThing<T>> oldSrcFiles, List<FileLikeThing<T>> oldTrgFiles, URI newRootUri, URI oldSrcRootUri, URI oldTrgRootUri)
newFiles - - new source filesoldSrcFiles - - old source files (i.e, from previous translation)oldTrgFiles - - old target files that match the old source files.newRootUri - - root directory of the new source files.oldSrcRootUri - - root directory of the old source files.oldTrgRootUri - - root directory of the new target files.public FileAligner(boolean lowerCase,
List<FileLikeThing<T>> newFiles,
List<FileLikeThing<T>> oldSrcFiles,
List<FileLikeThing<T>> oldTrgFiles,
URI newRootUri,
URI oldSrcRootUri,
URI oldTrgRootUri)
lowerCase - - true to lower case file paths before matching, false to leave as-isnewFiles - - new source filesoldSrcFiles - - old source files (i.e, from previous translation)oldTrgFiles - - old target files that match the old source files.newRootUri - - root directory of the new source files.oldSrcRootUri - - root directory of the old source files.oldTrgRootUri - - root directory of the new target files.public FileAligner(List<FileLikeThing<T>> srcFiles, List<FileLikeThing<T>> trgFiles, URI srcRootUri, URI trgRootUri)
srcFiles - - source filestrgFiles - - target filessrcRootUri - - source root directorytrgRootUri - - target root directorypublic FileAligner(boolean lowerCase,
List<FileLikeThing<T>> srcFiles,
List<FileLikeThing<T>> trgFiles,
URI srcRootUri,
URI trgRootUri)
lowerCase - - true to lower case file paths before matching, false to leave as-is.srcFiles - - source filestrgFiles - - target filessrcRootUri - - source root directorytrgRootUri - - target root directorypublic void align()
public Iterator<FileAlignment<T>> iterator()
FileLikeThingsiterator in interface Iterable<FileAlignment<T>>public List<FileAlignment<T>> getAlignments()
List of FileLikeThingsFileAlignment as a listCopyright © 2021. All rights reserved.