Examples of attributeValue()


Examples of org.dom4j.Element.attributeValue()

  }
 
  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

Examples of org.dom4j.Element.attributeValue()

 
  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

Examples of org.dom4j.Element.attributeValue()

    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

Examples of org.dom4j.Element.attributeValue()

    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

Examples of org.dom4j.Element.attributeValue()

        .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

Examples of org.dom4j.Element.attributeValue()

        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

Examples of org.dom4j.Element.attributeValue()

            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);

            String pluginLabel = root.attributeValue("label");
            if (pluginLabel == null) pluginLabel = getMessage(plugin.getKey()+".label");
            plugin.setLabel(pluginLabel);

            bindPluginInfo(root, plugin);
            bindMacroPluginModules(registry, root, plugin);
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

    }

    private void bindMacroApplicableTo(Element descriptor, MacroPluginModule module) {
        Element applicableTo = descriptor.element("applicable-to");
        if (applicableTo != null) {
            boolean header = Boolean.parseBoolean(applicableTo.attributeValue("header"));
            boolean content = Boolean.parseBoolean(applicableTo.attributeValue("content"));
            boolean footer = Boolean.parseBoolean(applicableTo.attributeValue("footer"));
            List<MacroPluginModule.DocumentArea> applicableList = new ArrayList<MacroPluginModule.DocumentArea>();
            if (header) applicableList.add(MacroPluginModule.DocumentArea.HEADER);
            if (content) applicableList.add(MacroPluginModule.DocumentArea.CONTENT);
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

    private void bindMacroApplicableTo(Element descriptor, MacroPluginModule module) {
        Element applicableTo = descriptor.element("applicable-to");
        if (applicableTo != null) {
            boolean header = Boolean.parseBoolean(applicableTo.attributeValue("header"));
            boolean content = Boolean.parseBoolean(applicableTo.attributeValue("content"));
            boolean footer = Boolean.parseBoolean(applicableTo.attributeValue("footer"));
            List<MacroPluginModule.DocumentArea> applicableList = new ArrayList<MacroPluginModule.DocumentArea>();
            if (header) applicableList.add(MacroPluginModule.DocumentArea.HEADER);
            if (content) applicableList.add(MacroPluginModule.DocumentArea.CONTENT);
            if (footer) applicableList.add(MacroPluginModule.DocumentArea.FOOTER);
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

    private void bindMacroApplicableTo(Element descriptor, MacroPluginModule module) {
        Element applicableTo = descriptor.element("applicable-to");
        if (applicableTo != null) {
            boolean header = Boolean.parseBoolean(applicableTo.attributeValue("header"));
            boolean content = Boolean.parseBoolean(applicableTo.attributeValue("content"));
            boolean footer = Boolean.parseBoolean(applicableTo.attributeValue("footer"));
            List<MacroPluginModule.DocumentArea> applicableList = new ArrayList<MacroPluginModule.DocumentArea>();
            if (header) applicableList.add(MacroPluginModule.DocumentArea.HEADER);
            if (content) applicableList.add(MacroPluginModule.DocumentArea.CONTENT);
            if (footer) applicableList.add(MacroPluginModule.DocumentArea.FOOTER);
            MacroPluginModule.DocumentArea[] applicableArray = new MacroPluginModule.DocumentArea[applicableList.size()];
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.