Package org.dom4j

Examples of org.dom4j.Document


   * @throws DaoTaskException
   */
  @Override
  public void readStructuresFile(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    readStructures(doc.getRootElement());
  }
View Full Code Here


    super(factory);
  }
 
  @Override
  public String createMessagesXML() {
    Document doc = DocumentHelper.createDocument();
    Element messagesElement = doc.addElement("messages");
    createMessagesXML(messagesElement);
    return doc.asXML();
  }
View Full Code Here

   * @throws DocumentException
   * @throws DaoTaskException
   */
  public void readMessagesFile(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    readMessages(doc.getRootElement());
  }
View Full Code Here

    // this map contains the whole data
    Map<String, PortletInstitution> portletMap = new HashMap<String, PortletInstitution>();

    SAXReader reader = new SAXReader();
    try {
      Document doc = reader.read(configurationFile);
      Element rootElement = doc.getRootElement();
      List<Element> lstInst = rootElement.elements(ELEM_INSTITUTION);
      for( Element instElem : lstInst ) {
        String inst = instElem.attributeValue(ATTR_INSTITUTION_NAME);
        List<Element> lstTmpLinks = instElem.elements(ELEM_LINK);
        List<PortletLink> lstLinks = new ArrayList<PortletLink>(lstTmpLinks.size());
View Full Code Here

    super(factory);
  }
 
  @Override
  public String createFormsXML() {
    Document doc = DocumentHelper.createDocument();
    Element formsElement = doc.addElement("forms");
    createFormsXML(formsElement);
    return doc.asXML();
  }
View Full Code Here

   * @throws DocumentException
   * @throws DaoTaskException
   */
  public void readFormsFile(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    readForms(doc.getRootElement());
  }
View Full Code Here

    super(factory);
  }
 
  @Override
  public String createPluginsXML() {
    Document doc = DocumentHelper.createDocument();
    Element pluginsElement = doc.addElement("plugins");
    createPluginsXML(pluginsElement);
    return doc.asXML();
  }
View Full Code Here

   * @throws DocumentException
   * @throws DaoTaskException
   */
  public void readPluginsFile(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    readPlugins(doc.getRootElement());
  }
View Full Code Here

    super(factory);
  }
 
  @Override
  public String createUsersXML() {
    Document doc = DocumentHelper.createDocument();
    Element usersElement = doc.addElement("users");
    createUsersXML(usersElement);
    return doc.asXML();
  }
View Full Code Here

   * @throws DocumentException
   * @throws DaoTaskException
   */
  public void readUsersFile(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    readUsers(doc.getRootElement());
  }
View Full Code Here

TOP

Related Classes of org.dom4j.Document

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.