Examples of element()


Examples of org.dom4j.Element.element()

    result.setName(root.elementText("name"))
    result.setTitle(root.elementText("title"));
    result.setVersion(root.elementText("version"));
    result.setDescription(root.elementText("description"));
    result.setWebsite(root.elementText("website"));
    if (root.element("entry-point-class") != null) {
      result.setEntryPointClass(StringUtils.strip(
          root.elementText("entry-point-class")));
    }
    if (root.element("plugin-config-url") != null) {
      result.setConfigURL(StringUtils.strip(
View Full Code Here

Examples of org.dom4j.Element.element()

    result.setWebsite(root.elementText("website"));
    if (root.element("entry-point-class") != null) {
      result.setEntryPointClass(StringUtils.strip(
          root.elementText("entry-point-class")));
    }
    if (root.element("plugin-config-url") != null) {
      result.setConfigURL(StringUtils.strip(
          root.elementText("plugin-config-url")));
    }
    StringBuffer header = new StringBuffer();
    if (root.element("header-javascript") != null) {
View Full Code Here

Examples of org.dom4j.Element.element()

    if (root.element("plugin-config-url") != null) {
      result.setConfigURL(StringUtils.strip(
          root.elementText("plugin-config-url")));
    }
    StringBuffer header = new StringBuffer();
    if (root.element("header-javascript") != null) {
      for (Element e : (List<Element>)root.elements("header-javascript")) {
        header.append("<script type=\"text/javascript\" src=\"/file/plugins/")
          .append(result.getName()).append("/").append(e.getText())
          .append("\"></script>\n");
      }
View Full Code Here

Examples of org.dom4j.Element.element()

        header.append("<script type=\"text/javascript\" src=\"/file/plugins/")
          .append(result.getName()).append("/").append(e.getText())
          .append("\"></script>\n");
      }
    }
    if (root.element("header-css") != null) {
      for (Element e : (List<Element>)root.elements("header-css")) {
        header.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"/file/plugins/")
          .append(result.getName()).append("/").append(e.getText())
          .append("\"/>\n");
      }
View Full Code Here

Examples of org.dom4j.Element.element()

          .append(result.getName()).append("/").append(e.getText())
          .append("\"/>\n");
      }
    }
    result.setPageHeader(header.toString());
    if (root.element("config") != null) {
      result.setConfigStructure(root.element("config").asXML());
    }
    return result;
  }
View Full Code Here

Examples of org.dom4j.Element.element()

          .append("\"/>\n");
      }
    }
    result.setPageHeader(header.toString());
    if (root.element("config") != null) {
      result.setConfigStructure(root.element("config").asXML());
    }
    return result;
  }

  public void uninstall(PluginEntity plugin) {
View Full Code Here

Examples of org.dom4j.Element.element()

    String title = root.elementText("title");
    if (!StringUtils.isEmpty(title)) {
      folder.setTitle(title);
      getDaoTaskAdapter().folderSave(folder);
    }
    readFolderPermissions(root.element("permissions"), folder);
  }

  private void readFolderPermissions(Element element, FolderEntity folder) {
    for (Element permElement : (List<Element>)element.elements("permission")) {
      GroupEntity group = getDao().getGroupDao().getByName(
View Full Code Here

Examples of org.dom4j.Element.element()

              }
              else {
                group.setName(name);
              }
              getDaoTaskAdapter().groupSave(group);
              for (Iterator<Element> j = element.element("users").elementIterator();
                j.hasNext(); ) {
                    Element userElement = j.next();
                    UserEntity user = getDao().getUserDao().getByEmail(
                        userElement.getText());
                    if (user != null) {
View Full Code Here

Examples of org.dom4j.Element.element()

              if (structure == null) {
                structure = new StructureEntity(title, content);
              }
              structure.setContent(content);
              getDaoTaskAdapter().structureSave(structure);
              readTemplates(element.element("templates"), structure);
            }
    }   
  }

  private void readTemplates(Element templatesElement,
View Full Code Here

Examples of org.dom4j.Element.element()

         * This is a bugfix (see OLAT-4194). According to the qti specification,
         * the presentation element can either have the elements material and
         * response_lid as children or they may be children of the flow element
         * which itself is a child of presentation.
         */
        material = flow.element("material");
      }
      Material matQuestion = (Material) parserManager.parse(material);
      if (matQuestion != null) instance.setQuestion(matQuestion);

      Element response_lid = presentationXML.element("response_lid");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.