All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jamonapi.utils.DefaultGeneralizer Maven / Gradle / Ivy

There is a newer version: 2.82
Show newest version
package com.jamonapi.utils;

import com.jamonapi.proxy.SQLDeArger;

public class DefaultGeneralizer implements Generalizer {

    /** Replaces numbers and quoted strings with '?'.  For example
     * 
    *
  • Original=ERROR Invalid login name: 'ssouza', 404 * --> becomes=ERROR Invalid login name: ?,? * *
  • Original=ERROR Invalid login name: ssouza, _404 * --> becomes (no change)=ERROR Invalid login name: ssouza, _404 *
*/ public String generalize(String detail) { return new SQLDeArger(detail).getParsedSQL(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy