NLFormat extends Format { public Object getDomainMt() { if (domainMt == DEFAULT) { if (defaultDomainMt == null) { try { defaultDomainMt = (cyc.converseCycObject("(eval " + PPH_DOMAIN_MT.stringApiValue() + ")")); } catch (Exception e) { throw new RuntimeException("Unable to find PPH domain Mt", e); } } return defaultDomainMt; } return domainMt; } 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 testGetDomainMt() { System.out.println("getDomainMt"); NLFormat instance = NLFormat.getInstance(cyc); Object result = instance.getDomainMt(); assertNotNull(result); }