Examples of XMLNode

  • org.sf.bee.commons.xml.XmlNode
  • org.vietspider.parser.xml.XMLNode
    Created by VietSpider Studio Author : Nhu Dinh Thuan nhudinhthuan@yahoo.com Mar 13, 2006
  • org.webharvest.definition.XmlNode
  • org.zachtaylor.jnodalxml.XmlNode

  • Examples of org.polyglotted.xpathstax.model.XmlNode

        private static class NodeData {
            private final XmlNode node;
            private final List<NodeHandler> handlers;

            public NodeData(String curElement, XmlAttribute attribute, List<NodeHandler> handlers) {
                this.node = new XmlNode(curElement, getName(curElement), attribute);
                this.handlers = handlers;
            }
    View Full Code Here

    Examples of org.sbml.jsbml.xml.XMLNode

       
        logger.debug("processAttribute: attribute name = " + attributeName + ", value = " + value);
       
        if (contextObject instanceof XMLNode) {
         
          XMLNode xmlNode = (XMLNode) contextObject;
          xmlNode.addAttr(attributeName, value, null, prefix);
         
         
        } else {
          logger.debug("processAttribute: context Object is not an XMLNode !!! " + contextObject);
        }
    View Full Code Here

    Examples of org.sf.bee.commons.xml.XmlNode

            this.initializeFromDocument(document, false);
        }

        private void initializeFromDocument(XmlDocument document,
                boolean isFromWatchDog) throws LogConfigurationException {
            XmlNode root = document.getDocumentElement();
            if (null == root) {
                throw new LogConfigurationException("Invalid configuration file! Root node should not be NULL.");
            }
            // common properties
            this.setCommonProperties(root);

            // check if is enabled or not
            if (!_enabled) {
                _logger.info(String.format("%s is not enabled. Logging is managed from container.", this.getClass().getSimpleName()));
                return;
            } else {
                _logger.info(String.format("%s is enabled and will manage application logging.", this.getClass().getSimpleName()));
            }

            // global formatters
            this.clearFormatterElementCache();
            XmlNode formattersNode = root.getChild(ConfigurationTags.formatters.toString());
            if (null != formattersNode) {
                this.initFormattersCache(formattersNode.getChilds(ConfigurationTags.formatter.toString()));
            }
            // global handlers
            this.clearHandlerElementCache();
            XmlNode handlersNode = root.getChild(ConfigurationTags.handlers.toString());
            if (null != handlersNode) {
                this.initHandlersCache(handlersNode.getChilds(ConfigurationTags.handler.toString()));
            }
            // initialized loggers
            this.clearLoggerElementCache();
            XmlNode loggersNode = root.getChild(ConfigurationTags.loggers.toString());
            if (null != loggersNode) {
                this.initLoggersCache(loggersNode.getChilds(ConfigurationTags.logger.toString()));
            }
            // if watchdog is enabled, configure loggers using watchdog
            if (_enableWatchDog) {
                // init WATCH DOG
                this.initWatchDog(_enableWatchDog);
    View Full Code Here

    Examples of org.vietspider.parser.xml.XMLNode

      public <T> T toBean(Class<T> clazz, XMLDocument document) throws Exception {
        NodeMap map = clazz.getAnnotation(NodeMap.class);
        if (map == null) return null;
        String name = map.value();
        T object = clazz.newInstance();
        XMLNode node = searchNode(document.getRoot(), name);
        if(node == null) return null;
        toBean(clazz, object, node);
        return object;
      }
    View Full Code Here

    Examples of org.webharvest.definition.XmlNode

            this.topNode = new DefaultMutableTreeNode();
            this.treeModel = new DefaultTreeModel(this.topNode);
            try {
                String helpContent = CommonUtil.readStringFromUrl( ResourceManager.getHelpContentUrl() );
                XmlNode xmlNode = XmlParser.parse( new InputSource(new StringReader(helpContent)) );
                createNodes(topNode, xmlNode);
            } catch (Exception e) {
                e.printStackTrace();
                GuiUtils.showErrorMessage("Error reading help content!");
            }
    View Full Code Here

    Examples of org.webharvest.definition.XmlNode

            if (xmlNode != null) {
                Object topicsObject = xmlNode.getElement("topic");
                if (topicsObject instanceof java.util.List) {
                    java.util.List subtopics = (java.util.List) topicsObject;
                    for (int i = 0; i < subtopics.size(); i++) {
                        XmlNode xmlSubNode = (XmlNode) subtopics.get(i);

                        String id = xmlSubNode.getAttribute("id");
                        String title = xmlSubNode.getAttribute("title");
                        Object subs = xmlSubNode.getElement("topic");
                        int subtopicCount = subs instanceof java.util.List ? ((java.util.List)subs).size() : 0;

                        TopicInfo topicInfo = new TopicInfo(id, title, subtopicCount);
                        DefaultMutableTreeNode node = new DefaultMutableTreeNode(topicInfo);
                        this.treeModel.insertNodeInto(node, root, root.getChildCount());
    View Full Code Here

    Examples of org.webharvest.definition.XmlNode

        }

        private synchronized void downloadAddition() {
            try {
                String content = CommonUtil.readStringFromUrl( new URL(Constants.WELCOME_ADDITION_URL) );
                XmlNode node = XmlParser.parse(new InputSource(new StringReader(content)));
                String versionValue = (String) node.get("version[0].number");
                String versionMessage = (String) node.get("version[0]._value");
                String startValue = (String) node.get("start[0]._value");
                String endValue = (String) node.get("end[0]._value");

                boolean hasStart = startValue != null && !"".equals(startValue.trim());
                boolean hasEnd = endValue != null && !"".equals(endValue.trim());
                boolean hasVersion = versionValue != null && !"".equals(versionValue.trim());
                boolean hasVersionMessage = versionMessage != null && !"".equals(versionMessage.trim());
    View Full Code Here

    Examples of org.zachtaylor.jnodalxml.XmlNode

          direction = "down";
        }
      }

      public XmlNode toXml() {
        XmlNode node = new XmlNode(XML_NODE_NAME);
        node.setAttribute("map", map);
        node.setAttribute("direction", direction);
        node.setAttribute("left", getLeft());
        node.setAttribute("top", getTop());
        node.setAttribute("width", getWidth());
        node.setAttribute("height", getHeight());
        node.setSelfClosing(true);

        return node;
      }
    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.