com.enonic.cms.core.search.IndexValueNormalizer.java Source code

Java tutorial

Introduction

Here is the source code for com.enonic.cms.core.search.IndexValueNormalizer.java

Source

/*
 * Copyright 2000-2013 Enonic AS
 * http://www.enonic.com/license
 */

package com.enonic.cms.core.search;

import org.apache.commons.lang.StringUtils;

public class IndexValueNormalizer {

    public static String normalizeStringValue(final String stringValue) {
        if (StringUtils.isBlank(stringValue)) {
            return "";
        }

        return stringValue.toLowerCase();
    }

}