public ISBN(org.w3c.dom.Element element) { textformat = TextFormats.byValue(JPU.getAttribute(element, "textformat")); textcase = TextCaseFlags.byValue(JPU.getAttribute(element, "textcase")); language = LanguageCodes.byValue(JPU.getAttribute(element, "language")); transliteration = TransliterationSchemes.byValue(JPU.getAttribute(element, "transliteration")); datestamp = JPU.getAttribute(element, "datestamp"); sourcetype = RecordSourceTypes.byValue(JPU.getAttribute(element, "sourcetype")); sourcename = JPU.getAttribute(element, "sourcename"); value = JPU.getContentAsString(element); }
public RightsCountry(org.w3c.dom.Element element) { textformat = TextFormats.byValue(JPU.getAttribute(element, "textformat")); textcase = TextCaseFlags.byValue(JPU.getAttribute(element, "textcase")); language = LanguageCodes.byValue(JPU.getAttribute(element, "language")); transliteration = TransliterationSchemes.byValue(JPU.getAttribute(element, "transliteration")); datestamp = JPU.getAttribute(element, "datestamp"); sourcetype = RecordSourceTypes.byValue(JPU.getAttribute(element, "sourcetype")); sourcename = JPU.getAttribute(element, "sourcename"); value = new java.util.HashSet<>(); for (String split : JPU.getContentAsString(element).trim().split(" +")) value.add(CountryCodes.byValue(split)); }
public Extent(org.w3c.dom.Element element) { textformat = TextFormats.byValue(JPU.getAttribute(element, "textformat")); textcase = TextCaseFlags.byValue(JPU.getAttribute(element, "textcase")); language = LanguageCodes.byValue(JPU.getAttribute(element, "language")); transliteration = TransliterationSchemes.byValue(JPU.getAttribute(element, "transliteration")); datestamp = JPU.getAttribute(element, "datestamp"); sourcetype = RecordSourceTypes.byValue(JPU.getAttribute(element, "sourcetype")); sourcename = JPU.getAttribute(element, "sourcename"); JPU.forElementsOf( element, new JPU.ElementListener() { @Override public void onElement(org.w3c.dom.Element element) { final String name = element.getNodeName(); if (name.equals(ExtentType.refname) || name.equals(ExtentType.shortname)) extentType = new ExtentType(element); else if (name.equals(ExtentValue.refname) || name.equals(ExtentValue.shortname)) extentValue = new ExtentValue(element); else if (name.equals(ExtentUnit.refname) || name.equals(ExtentUnit.shortname)) extentUnit = new ExtentUnit(element); } }); }