Examples of elementText()


Examples of com.dotcms.repackage.org.dom4j.Element.elementText()

    Iterator itr1 = root.elements("user-attribute").iterator();

    while (itr1.hasNext()) {
      Element userAttribute = (Element)itr1.next();

      String name = userAttribute.elementText("name");

      userAttributes.add(name);
    }

    itr1 = root.elements("portlet").iterator();
View Full Code Here

Examples of com.liferay.portal.kernel.xml.Element.elementText()

        Document document = SAXReaderUtil.read(pluginPackageXml);

        Element rootElement = document.getRootElement();

        deploymentContext = GetterUtil.getString(
          rootElement.elementText("recommended-deployment-context"));
      }
      else {
        String pluginPackageProperties = HttpUtil.URLtoString(
          bundle.getResource(
            "/WEB-INF/liferay-plugin-package.properties"));
View Full Code Here

Examples of org.dom4j.Element.elementText()

      for (Iterator<Element> i = doc.getRootElement().elementIterator();
          i.hasNext(); ) {
          Element element = i.next();
          if (element.getName().equals("field")) {
            result.add(new StructureFieldVO(
                element.elementText("title"),
                element.elementText("name"),
                element.elementText("type")));
          }
      }
      return result;
View Full Code Here

Examples of org.dom4j.Element.elementText()

          i.hasNext(); ) {
          Element element = i.next();
          if (element.getName().equals("field")) {
            result.add(new StructureFieldVO(
                element.elementText("title"),
                element.elementText("name"),
                element.elementText("type")));
          }
      }
      return result;
    } catch (DocumentException e) {
View Full Code Here

Examples of org.dom4j.Element.elementText()

          Element element = i.next();
          if (element.getName().equals("field")) {
            result.add(new StructureFieldVO(
                element.elementText("title"),
                element.elementText("name"),
                element.elementText("type")));
          }
      }
      return result;
    } catch (DocumentException e) {
      logger.error(e.getMessage());
View Full Code Here

Examples of org.dom4j.Element.elementText()

  private PluginEntity readPluginConfig(WarItem zipItem)
      throws UnsupportedEncodingException, DocumentException {
    PluginEntity result = new PluginEntity();
    Element root = DocumentHelper.parseText(zipItem.data.toString("UTF-8"))
        .getRootElement();
    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) {
View Full Code Here

Examples of org.dom4j.Element.elementText()

      throws UnsupportedEncodingException, DocumentException {
    PluginEntity result = new PluginEntity();
    Element root = DocumentHelper.parseText(zipItem.data.toString("UTF-8"))
        .getRootElement();
    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(
View Full Code Here

Examples of org.dom4j.Element.elementText()

    PluginEntity result = new PluginEntity();
    Element root = DocumentHelper.parseText(zipItem.data.toString("UTF-8"))
        .getRootElement();
    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")));
View Full Code Here

Examples of org.dom4j.Element.elementText()

    Element root = DocumentHelper.parseText(zipItem.data.toString("UTF-8"))
        .getRootElement();
    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")));
    }
View Full Code Here

Examples of org.dom4j.Element.elementText()

        .getRootElement();
    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) {
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.