@Test public void testXmlReplaceItemAttribute() throws Exception { CompoundTransformer transformer = CompoundTransformer.builder() .xmlReplaceItem("Tag1/@attr[.='foo']", "<xsl:attribute name=\"attr\">bar</xsl:attribute>") .build(); assertSingleXmlTransformation(transformer, "<Tag1 attr=\"foo\">foo</Tag1>", "<Tag1 attr=\"bar\">foo</Tag1>"); assertSingleXmlTransformation(transformer, "<Tag1 attr=\"baz\">foo</Tag1>", "<Tag1 attr=\"baz\">foo</Tag1>"); }
public static Builder builder() { return new Builder(); }
CompoundTransformer { public static Builder builder() { return new Builder(); } }
CompoundTransformer { public static Builder builder() { return new Builder(); } protected  CompoundTransformer(Builder builder); }
CompoundTransformer { public static Builder builder() { return new Builder(); } protected  CompoundTransformer(Builder builder); static Builder builder(); BrooklynMementoRawData transform(BrooklynMementoPersisterToObjectStore reader, RebindExceptionHandler exceptionHandler); BrooklynMementoRawData transform(BrooklynMementoRawData rawData); }
CompoundTransformer { public static Builder builder() { return new Builder(); } protected  CompoundTransformer(Builder builder); static Builder builder(); BrooklynMementoRawData transform(BrooklynMementoPersisterToObjectStore reader, RebindExceptionHandler exceptionHandler); BrooklynMementoRawData transform(BrooklynMementoRawData rawData); static final CompoundTransformer NOOP; }