Package org.dom4j

Examples of org.dom4j.Element.attributeValue()


    SAXReader reader = new SAXReader();
    Document document = null;
    try {
      document = reader.read(new StringReader(processDefine.getProcessDefContent()));
      Element rootElement = document.getRootElement();
      String _name = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_NAME);
      String _chname = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_CHNAME);
      String _version = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_VERSION);
      String _xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_DESC);
      String _description = rootElement.selectSingleNode(_xpath).getText();
     
View Full Code Here


    Document document = null;
    try {
      document = reader.read(new StringReader(processDefine.getProcessDefContent()));
      Element rootElement = document.getRootElement();
      String _name = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_NAME);
      String _chname = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_CHNAME);
      String _version = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_VERSION);
      String _xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_DESC);
      String _description = rootElement.selectSingleNode(_xpath).getText();
     
      _xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_LIMITTIME);
View Full Code Here

    try {
      document = reader.read(new StringReader(processDefine.getProcessDefContent()));
      Element rootElement = document.getRootElement();
      String _name = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_NAME);
      String _chname = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_CHNAME);
      String _version = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_VERSION);
      String _xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_DESC);
      String _description = rootElement.selectSingleNode(_xpath).getText();
     
      _xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_LIMITTIME);
      String _limitTime = rootElement.selectSingleNode(_xpath).getText();
View Full Code Here

    return processXml;
  }
 
  private static void queryProcessXmlInfo(ProcessElement processXml, Document document) {
    Element rootElement = document.getRootElement();
    String name = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_NAME);
    String chname = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_CHNAME);
    String version = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_VERSION);
    String xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_DESC);
    String description = rootElement.selectSingleNode(xpath).getText();
   
View Full Code Here

  }
 
  private static void queryProcessXmlInfo(ProcessElement processXml, Document document) {
    Element rootElement = document.getRootElement();
    String name = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_NAME);
    String chname = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_CHNAME);
    String version = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_VERSION);
    String xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_DESC);
    String description = rootElement.selectSingleNode(xpath).getText();
   
    xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_LIMITTIME);
View Full Code Here

 
  private static void queryProcessXmlInfo(ProcessElement processXml, Document document) {
    Element rootElement = document.getRootElement();
    String name = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_NAME);
    String chname = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_CHNAME);
    String version = rootElement.attributeValue(StarFlowNames.FLOW_ATTR_VERSION);
    String xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_DESC);
    String description = rootElement.selectSingleNode(xpath).getText();
   
    xpath = "/ProcessDefine/ProcessProperty/".concat(StarFlowNames.FLOW_CHILD_LIMITTIME);
    String limitTime = rootElement.selectSingleNode(xpath).getText();
View Full Code Here

    answer.setRowExpression(definition.attributeValue("select"));

    for (Iterator iter = definition.elementIterator("column"); iter
        .hasNext();) {
      Element element = (Element) iter.next();
      String expression = element.attributeValue("select");
      String name = element.getText();
      String typeName = element.attributeValue("type", "string");
      String columnXPath = element.attributeValue("columnNameXPath");
      int type = XMLTableColumnDefinition.parseType(typeName);
View Full Code Here

    for (Iterator iter = definition.elementIterator("column"); iter
        .hasNext();) {
      Element element = (Element) iter.next();
      String expression = element.attributeValue("select");
      String name = element.getText();
      String typeName = element.attributeValue("type", "string");
      String columnXPath = element.attributeValue("columnNameXPath");
      int type = XMLTableColumnDefinition.parseType(typeName);

      if (columnXPath != null) {
        answer.addColumnWithXPathName(columnXPath, expression, type);
View Full Code Here

        .hasNext();) {
      Element element = (Element) iter.next();
      String expression = element.attributeValue("select");
      String name = element.getText();
      String typeName = element.attributeValue("type", "string");
      String columnXPath = element.attributeValue("columnNameXPath");
      int type = XMLTableColumnDefinition.parseType(typeName);

      if (columnXPath != null) {
        answer.addColumnWithXPathName(columnXPath, expression, type);
      } else {
View Full Code Here

        for (Map.Entry<String, Element> descriptor : descriptors.entrySet()) {
            log.debug("installing deployment descriptor: " + descriptor.getKey());
            Element root = descriptor.getValue();

            String pluginKey = root.attributeValue("key");

            log.debug("binding plugin: " + descriptor.getKey());
            Plugin plugin = new Plugin(descriptor.getKey(), pluginKey);
            log.debug("plugin descriptor package path: " + plugin.getDescriptorPackagePath());
            registry.addPlugin(pluginKey, plugin);
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.