/** * The specification that was given might not be be the one that * ultimately gets the name. * * @return the specification that was used to find the name. */ public String getFoundSpecification() { getName(); return found; }
@Override public String toString() { return getName(); }
/** * Determine whether this language is valid. * <ul> * <li>LL - An iso639-2 or iso639-3 language code</li> * <li>SSSS - A 4-letter iso15924 script code</li> * <li>CC - A 2-letter iso3166 country code</li> * </ul> * * @return true if the language is valid. */ public boolean isValidLanguage() { getName(); return valid; }
@Override public int hashCode() { if (found == null) { getName(); } return found.hashCode(); }
public String getProperty(String key) { if (KEY_LANGUAGE.equals(key)) { return getLanguage().getName(); } return props.get(key); }
public String getProperty(String key) { if (KEY_LANGUAGE.equals(key)) { return getLanguage().getName(); } return configAll.get(key, DEFAULTS.get(key)); }
@Override public Document toOSIS() { OSISUtil.OSISFactory factory = OSISUtil.factory(); Element ele = factory.createTable(); addRow(factory, ele, "Initials", getInitials()); addRow(factory, ele, "Description", getName()); addRow(factory, ele, "Key", getBookCategory().toString()); addRow(factory, ele, "Language", getLanguage().getName()); return new Document(ele); }