Package org.dom4j

Examples of org.dom4j.Node.selectNodes()


          itemHides[i] = Boolean.valueOf( ( (Node) itemHideNodes.get( i ) ).getText() ).booleanValue();
        }
      }
      // Get the column formats
      List formatNodes =
          componentNode.selectNodes( JFreeReportGeneratorComponent.COLUMN_FORMATS_PROP
              + "/" + JFreeReportGeneratorComponent.FORMAT_PROP ); //$NON-NLS-1$
      if ( formatNodes != null ) {
        formats = new String[formatNodes.size()];
        for ( int i = 0; i < formats.length; i++ ) {
          formats[i] = ( (Node) formatNodes.get( i ) ).getText();
View Full Code Here


   */
  protected void setupColors() {

    Node temp = chartNode.selectSingleNode( COLOR_PALETTE_NODE_LOC );
    if ( temp != null ) {
      Object[] colorNodes = temp.selectNodes( COLOR_NODE_LOC ).toArray();
      for ( int j = 0; j < colorNodes.length; j++ ) {
        colors.add( getValue( (Node) colorNodes[j] ) );
      }
    } else {
      for ( int i = 0; i < COLORS_DEFAULT.length; i++ ) {
View Full Code Here

      isstacked = "true".equals( getValue( temp ) ); //$NON-NLS-1$
    }

    temp = chartNode.selectSingleNode( OUTLINE_COLOR_PALETTE_NODE_LOC );
    if ( temp != null ) {
      Object[] colorNodes = temp.selectNodes( COLOR_NODE_LOC ).toArray();
      for ( int j = 0; j < colorNodes.length; j++ ) {
        outlineColors.add( getValue( (Node) colorNodes[j] ) );
      }
    } else {
      for ( int i = 0; i < COLORS_DEFAULT.length; i++ ) {
View Full Code Here

    List intervals = dialNode.selectNodes( "interval" ); //$NON-NLS-1$

    if ( ( intervals == null ) || ( intervals.isEmpty() ) ) {
      Node intervalsNode = dialNode.selectSingleNode( "intervals" ); //$NON-NLS-1$
      if ( intervalsNode != null ) {
        intervals = intervalsNode.selectNodes( "interval" ); //$NON-NLS-1$
      }
    } else {
      // log a deprecation warning for this property...
      DialWidgetDefinition.getLogger().warn(
          Messages.getInstance().getString( "CHART.WARN_DEPRECATED_CHILD", "interval", "intervals" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$   
View Full Code Here

    List subtitles = dialNode.selectNodes( ChartDefinition.SUBTITLE_NODE_NAME );

    if ( ( subtitles == null ) || ( subtitles.isEmpty() ) ) {
      Node subTitlesNode = dialNode.selectSingleNode( ChartDefinition.SUBTITLES_NODE_NAME );
      if ( subTitlesNode != null ) {
        subtitles = subTitlesNode.selectNodes( ChartDefinition.SUBTITLE_NODE_NAME );
      }
    } else {
      // log a deprecation warning for this property...
      DialWidgetDefinition.getLogger().warn(
          Messages.getInstance().getString(
View Full Code Here

            List<IRepositoryObject> children = new ArrayList<IRepositoryObject>();
           
           
            List<Node> fileNodes;
            if (StringUtils.isBlank(fileType)) {
              fileNodes = node.selectNodes("./file[@isDirectory='false']");
            }
            else {
              fileNodes = node.selectNodes("./file[@isDirectory='false'][ends-with(string(@name),'." + fileType + "') or ends-with(string(@name),'." + fileType + "')]");
            }
            for (final Node fileNode : fileNodes)
View Full Code Here

            List<Node> fileNodes;
            if (StringUtils.isBlank(fileType)) {
              fileNodes = node.selectNodes("./file[@isDirectory='false']");
            }
            else {
              fileNodes = node.selectNodes("./file[@isDirectory='false'][ends-with(string(@name),'." + fileType + "') or ends-with(string(@name),'." + fileType + "')]");
            }
            for (final Node fileNode : fileNodes)
            {
              boolean vis =  fileNode.valueOf("@visible").equals("true");
              String t =  fileNode.valueOf("@localized-name");
View Full Code Here

    List subtitles = chartAttributes.selectNodes( ChartDefinition.SUBTITLE_NODE_NAME );

    if ( ( subtitles == null ) || ( subtitles.isEmpty() ) ) {
      Node subTitlesNode = chartAttributes.selectSingleNode( ChartDefinition.SUBTITLES_NODE_NAME );
      if ( subTitlesNode != null ) {
        subtitles = subTitlesNode.selectNodes( ChartDefinition.SUBTITLE_NODE_NAME );
      }
    } else {
      // log a deprecation warning for this property...
      TimeTableXYDatasetChartDefinition.getLogger().warn(
          Messages.getInstance().getString(
View Full Code Here

    List subtitles = chartAttributes.selectNodes( ChartDefinition.SUBTITLE_NODE_NAME );

    if ( ( subtitles == null ) || ( subtitles.isEmpty() ) ) {
      Node subTitlesNode = chartAttributes.selectSingleNode( ChartDefinition.SUBTITLES_NODE_NAME );
      if ( subTitlesNode != null ) {
        subtitles = subTitlesNode.selectNodes( ChartDefinition.SUBTITLE_NODE_NAME );
      }
    } else {
      // log a deprecation warning for this property...
      XYSeriesCollectionChartDefinition.getLogger().warn(
          Messages.getInstance().getString(
View Full Code Here

  }

  @Override
  public boolean validateAction() {
    Node compDef = getComponentDefinition();
    List selNodes = compDef.selectNodes( "selections/*" ); //$NON-NLS-1$

    String inputName = null;
    boolean isOk = true;

    for ( Iterator it = selNodes.iterator(); it.hasNext(); ) {
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.