Package net.sf.okapi.common.resource
Class CodeMatches
- java.lang.Object
-
- net.sf.okapi.common.resource.CodeMatches
-
public final class CodeMatches extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intADDED_MATCHstatic intANNOTATION_ONLYstatic CodeMatchesNO_CODESstatic intNO_MATCHstatic CodeMatchesSAME_CODES
-
Constructor Summary
Constructors Constructor Description CodeMatches(TextFragment from, TextFragment to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getFromMatches()Iterable<Integer>getFromMismatchIterator()int[]getToMatches()intgetToMatchIndex(int toIndex)Iterable<Integer>getToMismatchIterator()booleanhasFromMismatch()booleanhasFromMismatch(boolean includeAnnotation)booleanhasToMismatch()booleanhasToMismatch(boolean includeAnnotation)booleanisFromIsolated(int index)booleanisToIsolated(int index)voidsetFromMatch(int index, int id)voidsetToMatch(int index, int id)
-
-
-
Field Detail
-
NO_MATCH
public static int NO_MATCH
-
ADDED_MATCH
public static int ADDED_MATCH
-
ANNOTATION_ONLY
public static int ANNOTATION_ONLY
-
NO_CODES
public static CodeMatches NO_CODES
-
SAME_CODES
public static CodeMatches SAME_CODES
-
-
Constructor Detail
-
CodeMatches
public CodeMatches(TextFragment from, TextFragment to)
-
-
Method Detail
-
getFromMatches
public int[] getFromMatches()
-
getToMatches
public int[] getToMatches()
-
setFromMatch
public void setFromMatch(int index, int id)
-
setToMatch
public void setToMatch(int index, int id)
-
getToMatchIndex
public int getToMatchIndex(int toIndex)
-
isToIsolated
public boolean isToIsolated(int index)
-
isFromIsolated
public boolean isFromIsolated(int index)
-
hasFromMismatch
public boolean hasFromMismatch()
-
hasFromMismatch
public boolean hasFromMismatch(boolean includeAnnotation)
-
hasToMismatch
public boolean hasToMismatch()
-
hasToMismatch
public boolean hasToMismatch(boolean includeAnnotation)
-
-