Lines Matching full:builder
31 * A message is constructed by creating a builder, manipulating the
32 * configuration of the builder, and then building it into a class instance,
35 * ComposableBody body = ComposableBody.builder()
81 * Class instance builder, after the builder pattern. This allows each
87 public static final class Builder {
95 private Builder() {
100 * Creates a builder which is initialized to the values of the
106 * @return builder instance
108 private static Builder fromBody(final ComposableBody source) {
109 Builder result = new Builder();
121 * @return builder instance
123 public Builder setPayloadXML(final String xml) {
137 * @return builder instance
139 public Builder setAttribute(
162 * @return builder instance
164 public Builder setNamespaceDefinition(
242 * Create a builder instance to build new instances of this class.
246 public static Builder builder() {
247 return new Builder();
252 * {@code ComposableBody} instance as a starting point, create a builder
255 * used as a template. Note that the use of the returned builder in no
258 * @return builder instance which can be used to build similar
261 public Builder rebuild() {
262 return Builder.fromBody(this);
317 StringBuilder builder = new StringBuilder();
318 builder.append("<");
319 builder.append(bodyName.getLocalPart());
321 builder.append(" ");
325 builder.append(prefix);
326 builder.append(":");
328 builder.append(name.getLocalPart());
329 builder.append("='");
330 builder.append(escape(entry.getValue()));
331 builder.append("'");
333 builder.append(" ");
334 builder.append(XMLConstants.XMLNS_ATTRIBUTE);
335 builder.append("='");
336 builder.append(bodyName.getNamespaceURI());
337 builder.append("'>");
339 builder.append(payload);
341 builder.append("</body>");
342 return builder.toString();