NLFormat extends Format { public void setFormatLanguageMt(CycObject languageMt) { this.formatLanguageMt = languageMt; } protected  NLFormat(CycAccess cyc); static NLFormat getInstance(CycAccess cyc); static NLFormat getInstance(Locale locale, CycAccess cyc); @Override StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos); List<String> formatMultiple(List<? extends Object> objList); @Override Object parseObject(String source, ParsePosition pos); CycObject getFormatLanguageMt(); Object getParseLanguageMt(); Object getDomainMt(); GenerationMode getMode(); Locale getLocale(); Collection<CycObject> getRequiredIsas(); Collection<CycObject> getRequiredGenls(); void setLocale(Locale locale); void setPrecise(boolean b); boolean isPrecise(); boolean shouldDisambiguate(); void setFormatLanguageMt(CycObject languageMt); void setParseLanguageMt(CycObject languageMt); void setDomainMt(CycObject domainMt); void setMode(GenerationMode mode); void setDisambiguate(boolean shouldDisambiguate); void addRequiredIsa(CycObject isa); void addRequiredGenl(CycObject genl); List<? extends Object> parseObjects(String denotationString); Collection<? extends Object> parseObjects(String denotationString, ParsePosition pos); static final CycSymbol DEFAULT; }
@Test public void testSetFormatLanguageMt() { System.out.println("setFormatLanguageMt"); CycObject languageMt = new CycConstant("EnglishParaphraseMt", new Guid("bda16220-9c29-11b1-9dad-c379636f7270")); NLFormat instance = NLFormat.getInstance(cyc); instance.setFormatLanguageMt(languageMt); assertEquals(languageMt, instance.getFormatLanguageMt()); }