Support new fields for Recon objects.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@561 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-04-27 23:21:21 +00:00
parent 15c188ad7a
commit 4f1aaff486

View File

@ -144,12 +144,18 @@ public class Recon implements HasFields, Jsonizable {
return candidates != null && candidates.size() > 0 ? candidates.get(0) : null; return candidates != null && candidates.size() > 0 ? candidates.get(0) : null;
} else if ("judgment".equals(name) || "judgement".equals(name)) { } else if ("judgment".equals(name) || "judgement".equals(name)) {
return judgmentToString(); return judgmentToString();
} else if ("judgmentAction".equals(name) || "judgementAction".equals(name)) {
return judgmentAction;
} else if ("judgmentBatchSize".equals(name) || "judgementBatchSize".equals(name)) {
return judgmentBatchSize;
} else if ("matched".equals(name)) { } else if ("matched".equals(name)) {
return judgment == Judgment.Matched; return judgment == Judgment.Matched;
} else if ("new".equals(name)) { } else if ("new".equals(name)) {
return judgment == Judgment.New; return judgment == Judgment.New;
} else if ("match".equals(name)) { } else if ("match".equals(name)) {
return match; return match;
} else if ("matchRank".equals(name)) {
return matchRank;
} else if ("features".equals(name)) { } else if ("features".equals(name)) {
return new Features(); return new Features();
} }