@Test public void testXmlRenameTag() throws Exception { CompoundTransformer transformer = CompoundTransformer.builder() .xmlRenameTag("Tag1[text()='foo']", "Tag2") .build(); assertSingleXmlTransformation(transformer, "<Tag1>foo</Tag1>", "<Tag2>foo</Tag2>"); assertSingleXmlTransformation(transformer, "<Tag1>baz</Tag1>", "<Tag1>baz</Tag1>"); assertSingleXmlTransformation(transformer, "<Tag2>foo</Tag2>", "<Tag2>foo</Tag2>"); assertSingleXmlTransformation(transformer, "<Tag0><Tag1>foo</Tag1><Tag2/></Tag0>", "<Tag0><Tag2>foo</Tag2><Tag2/></Tag0>"); assertSingleXmlTransformation(transformer, "<Tag1 attr=\"value\">foo</Tag1>", "<Tag2 attr=\"value\">foo</Tag2>"); assertSingleXmlTransformation(transformer, "<Tag1>foo<Tag2/></Tag1>", "<Tag2>foo<Tag2/></Tag2>"); }
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; }