Package fi.luomus.commons.containers

Examples of fi.luomus.commons.containers.LocalizedText


      .addParameter("object", "dc:BibliographicResource");

      Document doc = client.contentAsDocument(new HttpGet(uri.getURI()));
      for (Node node : doc.getRootNode().getChildNodes()) {
        Qname id = getObjectResourceQname(node);
        LocalizedText name = getNames(node);
        Qname rootTaxon = getRooTaxonOrNull(node);
        Qname owner = getOwnerOrNull(node);
        boolean isPublic = getPublicityDefaultToTrue(node);
        Checklist checklist = new Checklist(id, name, rootTaxon);
        checklist.setPublic(isPublic);
View Full Code Here


        return null;
      }
      return getObjectResourceQname(node.getNode("MR.owner"));
    }
    private LocalizedText getNames(Node node) {
      LocalizedText name = new LocalizedText();
      for (Node nameNode : node.getChildNodes("dc:bibliographicCitation")) {
        if (nameNode.hasAttribute("xml:lang")) {
          String lang = nameNode.getAttribute("xml:lang");
          name.set(lang, nameNode.getContents());
        } else {
          name.set("", nameNode.getContents());
        }
      }
      return name;
    }
View Full Code Here

TOP

Related Classes of fi.luomus.commons.containers.LocalizedText

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.