com.vangent.hieos.empi.transform.Caverphone2TransformFunction.java Source code

Java tutorial

Introduction

Here is the source code for com.vangent.hieos.empi.transform.Caverphone2TransformFunction.java

Source

/*
 * This code is subject to the HIEOS License, Version 1.0
 *
 * Copyright(c) 2011 Vangent, Inc.  All rights reserved.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.vangent.hieos.empi.transform;

import org.apache.commons.codec.language.Caverphone2;

/**
 *
 * @author Bernie Thuman
 */
public class Caverphone2TransformFunction extends TransformFunction {

    /**
     * 
     * @param obj
     * @return
     */
    public Object transform(Object obj) {
        Caverphone2 encoder = new Caverphone2();
        return encoder.encode((String) obj);
    }
}