001package org.kuali.mobility.events.util; 002 003import org.apache.commons.collections.Transformer; 004import org.kuali.mobility.events.entity.EventContact; 005import org.kuali.mobility.events.entity.EventContactImpl; 006 007 008public class EventContactTransform implements Transformer{ 009 010 011 @Override 012 public Object transform(Object obj) { 013 EventContactImpl proxy = null; 014 015 if(obj instanceof EventContact){ 016 proxy = (EventContactImpl)obj; 017 proxy.setName(((EventContact)obj).getName()); 018 proxy.setEmail(((EventContact)obj).getEmail()); 019 proxy.setUrl(((EventContact)obj).getUrl()); 020 } 021 022 return proxy; 023 } 024 025}