Package org.dom4j

Examples of org.dom4j.Node.valueOf()


                Node propNode = xpathSelector.selectSingleNode(doc);

                Property prop = (Property) addedProperty.get(propertyName);
                if (propNode != null && prop == null) {
                    prop = ProcessFactory.addProperty(tp,
                            propertyName, propNode.valueOf("@type"));
                    addedProperty.put(propertyName, prop);
                }
                if (prop != null) {
                    ProcessFactory.addPropertyAlias(prop, e.valueOf("@messageType"),
                            e.valueOf("@part"), e.valueOf("@query"));
View Full Code Here


    }

    // Use either chart-background or plot-background (chart takes precendence)
    temp = chartNode.selectSingleNode( PLOT_BACKGROUND_NODE_LOC );
    if ( getValue( temp ) != null ) {
      String type = temp.valueOf( PLOT_BACKGROUND_COLOR_XPATH );
      if ( type != null && COLOR_TYPE.equals( type ) ) {
        chart.setBackgroundColour( getValue( temp ) );
        chart.setInnerBackgroundColour( getValue( temp ) );
      }
    }
View Full Code Here

        chart.setInnerBackgroundColour( getValue( temp ) );
      }
    }
    temp = chartNode.selectSingleNode( CHART_BACKGROUND_NODE_LOC );
    if ( getValue( temp ) != null ) {
      String type = temp.valueOf( CHART_BACKGROUND_COLOR_XPATH );
      if ( type != null && COLOR_TYPE.equals( type ) ) {
        chart.setBackgroundColour( getValue( temp ) );
      }
    }
  }
View Full Code Here

    String user = (String)((UserProfile) profile).getUserId();
    String schema = (String)session.getAttribute("selectedSchema");
    String documentId=(String)session.getAttribute("document");
   
    Node selectedConnectionNode = (Node) session.getAttribute("selectedConnectionNode");
    String connectionType = (String)selectedConnectionNode.valueOf("@type");
    String catalogUri = (String) session.getAttribute("catalogUri");
    //String spagoBIBaseUrl = (String) session.getAttribute("spagobiurl");
    //String path = (String) session.getAttribute("biobject_path");
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
View Full Code Here

      org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
        Document document = reader.read(is);
        nameConnection = request.getParameter("connectionName");
      query = document.selectSingleNode("//olap/MDXquery").getStringValue();
      Node cube = document.selectSingleNode("//olap/cube");
      reference = cube.valueOf("@reference");
      name = cube.valueOf("@name");
      parameters = document.selectNodes("//olap/MDXquery/parameter");
      analysis = new AnalysisBean();
      analysis.setConnectionName(nameConnection);
      analysis.setCatalogUri(reference);
View Full Code Here

        Document document = reader.read(is);
        nameConnection = request.getParameter("connectionName");
      query = document.selectSingleNode("//olap/MDXquery").getStringValue();
      Node cube = document.selectSingleNode("//olap/cube");
      reference = cube.valueOf("@reference");
      name = cube.valueOf("@name");
      parameters = document.selectNodes("//olap/MDXquery/parameter");
      analysis = new AnalysisBean();
      analysis.setConnectionName(nameConnection);
      analysis.setCatalogUri(reference);
      session.setAttribute("analysisBean",analysis);
View Full Code Here

      final String solutionPath = parentPathArray.length > 3 ? parentPath.substring(parentPath.indexOf(solutionName) + solutionName.length() + 1, parentPath.length()) + "/" : "";

      for (final Object node1 : nodes)
      {
        final Node node = (Node) node1;
        String name = node.valueOf("@name");
        if (parentPathArray.length > 0)
        {
          final String localizedName = node.valueOf("@localized-name");
          final boolean visible = node.valueOf("@visible").equals("true");
          final boolean isDirectory = node.valueOf("@isDirectory").equals("true");
View Full Code Here

      {
        final Node node = (Node) node1;
        String name = node.valueOf("@name");
        if (parentPathArray.length > 0)
        {
          final String localizedName = node.valueOf("@localized-name");
          final boolean visible = node.valueOf("@visible").equals("true");
          final boolean isDirectory = node.valueOf("@isDirectory").equals("true");
          final String path = solutionName.length() == 0 ? "" : solutionPath + name;
          final String solution = solutionName.length() == 0 ? name : solutionName;
View Full Code Here

        final Node node = (Node) node1;
        String name = node.valueOf("@name");
        if (parentPathArray.length > 0)
        {
          final String localizedName = node.valueOf("@localized-name");
          final boolean visible = node.valueOf("@visible").equals("true");
          final boolean isDirectory = node.valueOf("@isDirectory").equals("true");
          final String path = solutionName.length() == 0 ? "" : solutionPath + name;
          final String solution = solutionName.length() == 0 ? name : solutionName;

          final String relativePath = solution.length() > 0
View Full Code Here

        String name = node.valueOf("@name");
        if (parentPathArray.length > 0)
        {
          final String localizedName = node.valueOf("@localized-name");
          final boolean visible = node.valueOf("@visible").equals("true");
          final boolean isDirectory = node.valueOf("@isDirectory").equals("true");
          final String path = solutionName.length() == 0 ? "" : solutionPath + name;
          final String solution = solutionName.length() == 0 ? name : solutionName;

          final String relativePath = solution.length() > 0
                          && path != null
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.