/** * Assigns a transform source that produces the content and returns * the handle as a fluent convenience. * @param content the transform source * @return this handle */ public SourceHandle with(Source content) { set(content); return this; }
for (int i = 0; i < 3; i++) { SourceHandle handle = new SourceHandle(); handle.set(s[i]);
sh.set(ds); sh.setFormat(Format.XML);
handle.set(source);
sh.set(ds); sh.setFormat(Format.XML);
/** * Initializes the handle with a transform source for the content. * @param content a transform source */ public SourceHandle(Source content) { this(); set(content); }
sh.set(ds); sh.setFormat(Format.XML); writeset.add("/generic/foo.xml", new JacksonHandle().with(constructJSONCollectionMetadata("http://Json-Uri-generic-collections/")), sh); // This
/** * Assigns a transform source that produces the content and returns * the handle as a fluent convenience. * @param content the transform source * @return this handle */ public SourceHandle with(Source content) { set(content); return this; }
sh.set(ds); sh.setFormat(Format.XML); DocumentMetadataHandle mh2 = new DocumentMetadataHandle();
/** * Initializes the handle with a transform source for the content. * @param content a transform source */ public SourceHandle(Source content) { this(); set(content); }
handle.set(source);