use of com.adaptris.core.metadata.RegexMetadataFilter in project interlok by adaptris.
the class MetadataKeyCaseChanger method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
ReformatMetadataKey service = createService();
RegexMetadataFilter filter = new RegexMetadataFilter();
filter.addIncludePattern("^.*MetadataKeyRegularExpression.*");
filter.addIncludePattern("^.*AnotherPattern.*");
filter.addExcludePattern("^.*SomeExclusions.*");
service.setKeysToModify(filter);
return service;
}
use of com.adaptris.core.metadata.RegexMetadataFilter in project interlok by adaptris.
the class MetadataKeyToLowerCaseTest method createService.
@Override
protected MetadataKeyToLowerCase createService() {
MetadataKeyToLowerCase service = new MetadataKeyToLowerCase();
RegexMetadataFilter filter = new RegexMetadataFilter();
filter.addIncludePattern(KEY_MATCH);
service.setKeysToModify(filter);
return service;
}
use of com.adaptris.core.metadata.RegexMetadataFilter in project interlok by adaptris.
the class MetadataKeyToUpperCaseTest method createService.
@Override
protected MetadataKeyToUpperCase createService() {
MetadataKeyToUpperCase service = new MetadataKeyToUpperCase();
RegexMetadataFilter filter = new RegexMetadataFilter();
filter.addIncludePattern(KEY_MATCH);
service.setKeysToModify(filter);
return service;
}
Aggregations