public void setAsText(String text) { log.debug("set value: " + text); String[] sp = text.split(":"); if (sp.length < 2) return; Term t = new Term(); t.setYear(sp[0]); t.setTerm(sp[1]); setValue(t); }
public String getAsText() { Term value = (Term) getValue(); if (value == null) { log.debug("get value: " + "NULL"); return ""; } String text = value.getYear() + ":" + value.getTerm(); log.debug("get value: " + text); return text; }