Package org.jamwiki.model

Examples of org.jamwiki.model.WikiConfigurationObject


  /**
   *
   */
  private WikiConfigurationObject parseConfigurationObject(Node node) {
    WikiConfigurationObject configurationObject = new WikiConfigurationObject();
    NodeList children = node.getChildNodes();
    for (int j = 0; j < children.getLength(); j++) {
      Node child = children.item(j);
      if (child.getNodeName().equals(XML_PARAM_CLASS)) {
        configurationObject.setClazz(XMLUtil.getTextContent(child));
      } else if (child.getNodeName().equals(XML_PARAM_KEY)) {
        configurationObject.setKey(XMLUtil.getTextContent(child));
      } else if (child.getNodeName().equals(XML_PARAM_NAME)) {
        configurationObject.setName(XMLUtil.getTextContent(child));
      } else if (child.getNodeName().equals(XML_PARAM_STATE)) {
        configurationObject.setState(XMLUtil.getTextContent(child));
      } else {
        logUnknownChild(node, child);
      }
    }
    return configurationObject;
View Full Code Here

TOP

Related Classes of org.jamwiki.model.WikiConfigurationObject

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.