@Test public void testFilter() { CompositeMetadataFilter filterer = new CompositeMetadataFilter(new NoOpMetadataFilter(), new RegexMetadataFilter()); AdaptrisMessage message = newMessage(); MetadataCollection resultingCollection = filterer.filter(message); assertEquals(message.getMetadata().size(), resultingCollection.size()); }
@Override public MetadataCollection filter(MetadataCollection original) { MetadataCollection result = original; for (MetadataFilter f : filters) { result = f.filter(result); } return result; }
CompositeMetadataFilter extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { MetadataCollection result = original; for (MetadataFilter f : filters) { result = f.filter(result); } return result; } }
CompositeMetadataFilter extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { MetadataCollection result = original; for (MetadataFilter f : filters) { result = f.filter(result); } return result; } CompositeMetadataFilter();  CompositeMetadataFilter(MetadataFilter... filters); }
CompositeMetadataFilter extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { MetadataCollection result = original; for (MetadataFilter f : filters) { result = f.filter(result); } return result; } CompositeMetadataFilter();  CompositeMetadataFilter(MetadataFilter... filters); @Override MetadataCollection filter(MetadataCollection original); List<MetadataFilter> getFilters(); void setFilters(List<MetadataFilter> filters); }
CompositeMetadataFilter extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { MetadataCollection result = original; for (MetadataFilter f : filters) { result = f.filter(result); } return result; } CompositeMetadataFilter();  CompositeMetadataFilter(MetadataFilter... filters); @Override MetadataCollection filter(MetadataCollection original); List<MetadataFilter> getFilters(); void setFilters(List<MetadataFilter> filters);  }