001package org.kuali.ole.ingest.resolver; 002 003import org.kuali.ole.OLEConstants; 004import org.kuali.ole.ingest.pojo.ProfileTerm; 005 006/** 007 * Created by IntelliJ IDEA. 008 * User: pvsubrah 009 * Date: 3/28/12 010 * Time: 3:10 PM 011 * To change this template use File | Settings | File Templates. 012 */ 013public class ExistingTermResolver extends AbstractProfileTermResolver{ 014 /** 015 * This method returns the profile terms need to be resolved 016 * @param profileTerm 017 * @return profileTerm 018 */ 019 @Override 020 protected Object resolveFromProfileTerm(ProfileTerm profileTerm) { 021 return profileTerm.getExistingField(); 022 } 023 024 /** 025 * Gets the existing field constant from oleConstants 026 * @return existing field. 027 */ 028 @Override 029 public String getOutput() { 030 return OLEConstants.EXISTING_FIELD; 031 } 032}