Exemplo n.º 1
0
  public SupplierIDType(org.w3c.dom.Element element) {
    datestamp = JPU.getAttribute(element, "datestamp");
    sourcetype = RecordSourceTypes.byValue(JPU.getAttribute(element, "sourcetype"));
    sourcename = JPU.getAttribute(element, "sourcename");

    value = SupplierIdentifierTypes.byValue(JPU.getContentAsString(element));
  }
Exemplo n.º 2
0
  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);
  }
Exemplo n.º 3
0
  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));
  }
Exemplo n.º 4
0
  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);
          }
        });
  }