Package com.alibaba.citrus.util

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


        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


        return file;
    }

    @Override
    public String toString() {
        return new ToStringBuilder().append(getClass().getSimpleName()).append(paths).toString();
    }
View Full Code Here

        }

        mb.append("attributes", attributes);
        mb.append("content", content);

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

    }

    /** 将resource转换成字符串表示。 */
    @Override
    public String toString() {
        ToStringBuilder buf = new ToStringBuilder();

        buf.append(getClass().getSimpleName());
        buf.appendArray(bytes, offset, 128); // 最多打印128个字节

        return buf.toString();
    }
View Full Code Here

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

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

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

        map.remove(key);
    }

    @Override
    public String toString() {
        return new ToStringBuilder().append(getClass().getSimpleName()).appendMap(map, true).toString();
    }
View Full Code Here

            } else {
                mb.append(key, value);
            }
        }

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

                nameToConfigurationPoints.put(name, cp);
            }
        });

        if (log.isDebugEnabled()) {
            ToStringBuilder buf = new ToStringBuilder();

            buf.format("Loaded configuration points at %s, %d configuration points found.",
                       configurationPointsLocation, nameToConfigurationPoints.size());

            MapBuilder mb = new MapBuilder().setSortKeys(true).setPrintCount(true);

            for (String name : nameToConfigurationPoints.keySet()) {
                mb.append(name, nameToConfigurationPoints.get(name).getNamespaceUri());
            }

            mb.appendTo(buf);

            log.debug(buf.toString());
        }
    }
View Full Code Here

    @Override
    public String toString() {
        if (!initialized) {
            return "ConfigurationPoints[uninitialized]";
        } else {
            ToStringBuilder buf = new ToStringBuilder();

            buf.format("ConfigurationPoints[%d cps, loaded from %s]", configurationPoints.size(),
                       configurationPointsLocation);

            if (!configurationPoints.isEmpty()) {
                buf.appendCollection(configurationPoints);
            }

            return buf.toString();
        }
    }
View Full Code Here

        }
    }

    @Override
    public String toString() {
        return new ToStringBuilder().append("SchemaSet").append(names).toString();
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.util.ToStringBuilder$MapBuilder

Copyright © 2018 www.massapicom. 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.