/** * Adds a synonymous term in a language * * @param lang * @param value */ public void addSynonymousTermIn(final Language lang, final String value) { String theValue = Strings.valueOrDefault(value, R01MStructureLabelTerm.DEFAULT_TERM.getValue()); R01MStructureLabelTerm term = R01MStructureLabelTerm.createSynonimousTerm(lang, theValue); if (_terms == null) _terms = new HashSet<R01MStructureLabelTerm>(); _terms.add(term); }
/** * Sets the standard term in a language * * @param lang * @param term */ public void setStandardTermIn(final Language lang, final String value) { String theValue = Strings.valueOrDefault(value, R01MStructureLabelTerm.DEFAULT_TERM.getValue()); R01MStructureLabelTerm term = R01MStructureLabelTerm.createStandardTerm(lang, theValue); this.setStandardTerm(term); }