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

com.poiji.config.DefaultFormatting Maven / Gradle / Ivy

package com.poiji.config;

import com.poiji.option.PoijiOptions;

public class DefaultFormatting implements Formatting {

    public DefaultFormatting() {
    }

    @Override
    public String transform(PoijiOptions options, String value) {
        if (options.getCaseInsensitive()) {
            value = value.toLowerCase();
        }
        if (options.getIgnoreWhitespaces()) {
            value = value.trim();
        }
        return value;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy