View Javadoc
1   package org.kuali.ole.ingest.resolver;
2   
3   import org.kuali.ole.OLEConstants;
4   import org.kuali.ole.ingest.pojo.ProfileTerm;
5   
6   /**
7    * Created by IntelliJ IDEA.
8    * User: pvsubrah
9    * Date: 3/28/12
10   * Time: 3:10 PM
11   * To change this template use File | Settings | File Templates.
12   */
13  public class IncomingTermResolver extends AbstractProfileTermResolver{
14      /**
15       *  Returns the  incomingFields need to be resolved.
16       * @param profileTerm
17       * @return incomingFields.
18       */
19      @Override
20      protected Object resolveFromProfileTerm(ProfileTerm profileTerm) {
21          return profileTerm.getIncomingField();
22      }
23  
24      /**
25       * Gets the incoming field constant from oleConstant.
26       * @return  incoming Field
27       */
28      @Override
29      public String getOutput() {
30          return OLEConstants.INCOMING_FIELD;
31      }
32  }