@Test public void testGetTransformSequence() { final QName A = new QName("a"); final QName B = new QName("b"); final QName C = new QName("c"); BaseTransformerRegistry _registry = new BaseTransformerRegistry(); _registry.addTransformer(new TestTransformer2(A, B)); _registry.addTransformer(new TestTransformer2(B, C)); TransformSequence transformSequence = _registry.getTransformSequence(A, C); DefaultMessage message = new DefaultMessage().setContent(A); transformSequence.apply(message, _registry); Assert.assertEquals(C, message.getContent()); }
@Override public TransformSequence getTransformSequence(QName from, QName to) { return _transformResolver.resolveSequence(from, to); }
BaseTransformerRegistry implements TransformerRegistry { @Override public TransformSequence getTransformSequence(QName from, QName to) { return _transformResolver.resolveSequence(from, to); } }
BaseTransformerRegistry implements TransformerRegistry { @Override public TransformSequence getTransformSequence(QName from, QName to) { return _transformResolver.resolveSequence(from, to); } BaseTransformerRegistry();  BaseTransformerRegistry(Set<Transformer<?,?>> transformers); }
BaseTransformerRegistry implements TransformerRegistry { @Override public TransformSequence getTransformSequence(QName from, QName to) { return _transformResolver.resolveSequence(from, to); } BaseTransformerRegistry();  BaseTransformerRegistry(Set<Transformer<?,?>> transformers); @Override BaseTransformerRegistry addTransformer(Transformer<?, ?> transformer); @Override TransformerRegistry addTransformer(Transformer<?, ?> transformer, QName from, QName to); void setEventPublisher(EventPublisher eventPublisher); @Override Transformer<?, ?> getTransformer(QName from, QName to); @Override TransformSequence getTransformSequence(QName from, QName to); @Override boolean hasTransformer(QName from, QName to); @Override boolean removeTransformer(Transformer<?, ?> transformer); @Override List<Transformer<?, ?>> getRegisteredTransformers(); @Override List<Transformer<?,?>> getTransformersFrom(QName type); @Override List<Transformer<?,?>> getTransformersTo(QName type); @Override void setTransfomResolver(TransformResolver resolver); }
BaseTransformerRegistry implements TransformerRegistry { @Override public TransformSequence getTransformSequence(QName from, QName to) { return _transformResolver.resolveSequence(from, to); } BaseTransformerRegistry();  BaseTransformerRegistry(Set<Transformer<?,?>> transformers); @Override BaseTransformerRegistry addTransformer(Transformer<?, ?> transformer); @Override TransformerRegistry addTransformer(Transformer<?, ?> transformer, QName from, QName to); void setEventPublisher(EventPublisher eventPublisher); @Override Transformer<?, ?> getTransformer(QName from, QName to); @Override TransformSequence getTransformSequence(QName from, QName to); @Override boolean hasTransformer(QName from, QName to); @Override boolean removeTransformer(Transformer<?, ?> transformer); @Override List<Transformer<?, ?>> getRegisteredTransformers(); @Override List<Transformer<?,?>> getTransformersFrom(QName type); @Override List<Transformer<?,?>> getTransformersTo(QName type); @Override void setTransfomResolver(TransformResolver resolver);  }