Search in sources :

Example 1 with NamePatternToIdEntry

use of com.mercedesbenz.sechub.domain.scan.config.NamePatternToIdEntry in project sechub by mercedes-benz.

the class NamePatternIdProviderFactory method createProvider.

public NamePatternIdProvider createProvider(String id, String parameterValue) {
    NamePatternIdProvider provider;
    MappingData mappingData = MappingData.fromString(parameterValue);
    List<NamePatternToIdEntry> entries = converter.convert(mappingData);
    provider = new NamePatternIdProvider(id);
    for (NamePatternToIdEntry entry : entries) {
        provider.add(entry);
    }
    return provider;
}
Also used : NamePatternToIdEntry(com.mercedesbenz.sechub.domain.scan.config.NamePatternToIdEntry) NamePatternIdProvider(com.mercedesbenz.sechub.domain.scan.config.NamePatternIdProvider) MappingData(com.mercedesbenz.sechub.sharedkernel.mapping.MappingData)

Aggregations

NamePatternIdProvider (com.mercedesbenz.sechub.domain.scan.config.NamePatternIdProvider)1 NamePatternToIdEntry (com.mercedesbenz.sechub.domain.scan.config.NamePatternToIdEntry)1 MappingData (com.mercedesbenz.sechub.sharedkernel.mapping.MappingData)1