Examples of MapBuilder


Examples of aimax.osm.data.MapBuilder

    public void actionPerformed(ActionEvent ae) {
      if (ae.getSource() == loadMenuItem) {
        JFileChooser fc = getLoadFileChooser();
        int status = fc.showOpenDialog(pane);
        if (status == JFileChooser.APPROVE_OPTION) {
          MapBuilder mapBuilder = pane.getMap().getBuilder();
          mapReader.readMap(fc.getSelectedFile(), mapBuilder);
          mapBuilder.buildMap();
        }
      } else {
        super.actionPerformed(ae);
      }
    }
View Full Code Here

Examples of aimax.osm.data.MapBuilder

    this.mapWriter = mapWriter;
  }

  public void readMap(InputStream stream) {
    if (stream != null) {
      MapBuilder builder = getMap().getBuilder();
      builder.setEntityClassifier(classifier);
      mapReader.readMap(stream, builder);
      builder.buildMap();
    } else {
      LOG
          .warning("Map reading failed because input stream does not exist.");
    }
  }
View Full Code Here

Examples of com.alibaba.citrus.util.ToStringBuilder.MapBuilder

        assertEquals("\n", buf.toString());
    }

    @Test
    public void map() {
        MapBuilder mb = new MapBuilder().setSortKeys(true).setPrintCount(true);

        mb.append("dddd", "111\n222\n333");
        mb.append("ccc", "444\n555\n");
        mb.append("a", "666");

        buf.append("map ");
        buf.append(mb);

        result += "{\n";
        result += "  [1/3] a    = 666\n";
        result += "  [2/3] ccc  = 444\n";
        result += "               555\n";
        result += "  [3/3] dddd = 111\n";
        result += "               222\n";
        result += "               333\n";
        result += "}";

        assertEquals("map " + result, buf.toString());
        assertEquals(result, mb.toString());
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

        return null;
    }

    @Override
    public String toString() {
        MapBuilder mb = new MapBuilder();

        mb.append("pattern", getPatternName());

        if (isInternal()) {
            mb.append("internal", isInternal());
        }

        mb.append("loaders", getLoaders());

        return new ToStringBuilder().append(getClass().getSimpleName()).append(mb).toString();
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

        return patterns.toArray(new String[patterns.size()]);
    }

    @Override
    public String toString() {
        MapBuilder mb = new MapBuilder();

        mb.append("configLocation", configLocation);
        mb.append("resourceMappings", resourceMappings);
        mb.append("filterMappings", filterMappings);

        if (parent != null) {
            mb.append("parent", parent);
        }

        return new ToStringBuilder().append(getBeanDescription()).append(mb).toString();
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

    protected void init() {
    }

    @Override
    public String toString() {
        MapBuilder mb = new MapBuilder();

        mb.append("pattern", getPatternName());
        mb.append("name", getName());

        if (isInternal()) {
            mb.append("internal", isInternal());
        }

        return new ToStringBuilder().append(getClass().getSimpleName()).append(mb).toString();
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

        };
    }

    @Override
    public String toString() {
        MapBuilder mb = new MapBuilder();

        mb.append("pattern", getPatternName());
        mb.append("filters", getFilters());

        return new ToStringBuilder().append(getClass().getSimpleName()).append(mb).toString();
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

        if (!contextRoot.endsWith("/")) {
            contextRoot += "/";
        }

        if (getLogger().isDebugEnabled()) {
            MapBuilder mb = new MapBuilder();

            mb.append("path", path);
            mb.append("contextRoot", contextRoot);

            getLogger().debug(new ToStringBuilder().append("Initialized JSP Template Engine").append(mb).toString());
        }
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

        return null;
    }

    @Override
    public String toString() {
        MapBuilder mb = new MapBuilder();

        mb.append("type", type);
        mb.append("annotations", annotations);
        mb.append("extraInfo", extraInfo);

        return new ToStringBuilder().append(getClass().getSimpleName()).append(mb).toString();
    }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.MapBuilder

     *
     * @return �ַ�����ʾ
     */
    @Override
    public String toString() {
        MapBuilder mb = new MapBuilder();
        Object conf = dumpConfiguration();

        mb.append("factoryName", getBeanName());

        if (conf != null) {
            mb.append("configuration", conf);
        }

        return new ToStringBuilder().append(getBeanDescription()).append(mb).toString();
    }
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.