com.regnosys.rosetta.translate.MatchResult Maven / Gradle / Ivy
package com.regnosys.rosetta.translate;
import com.regnosys.rosetta.common.translation.Path;
class MatchResult {
private final MatchType matchType;
private final Path fullMatch;
// this algorithm is only going to work if this is singular
// if there are multiple or fullMatches and partial matches then the data structure used to create the handler is wrong
MatchResult(MatchType matchType, Path fullMatch) {
this.matchType = matchType;
this.fullMatch = fullMatch;
}
MatchType matchType() {
return matchType;
}
public Path fullMatch() {
return fullMatch;
}
@Override
public String toString() {
return "MatchResult [matchType=" + matchType + ", fullMatch=" + fullMatch + "]";
}
}