1 package de.nava.informa.utils; 25 26 import de.nava.informa.core.*; 27 import de.nava.informa.core.ChannelIF; 28 29 33 public class InformaUtils { 34 35 54 public static void copyChannelProperties(ChannelIF sourceChan, ChannelIF updChan) { 55 updChan.setTitle(sourceChan.getTitle()); 56 updChan.setDescription(sourceChan.getDescription()); 57 updChan.setSite(sourceChan.getSite()); 58 updChan.setCreator(sourceChan.getCreator()); 59 updChan.setCopyright(sourceChan.getCopyright()); 60 updChan.setPublisher(sourceChan.getPublisher()); 61 updChan.setLanguage(sourceChan.getLanguage()); 62 updChan.setRating(sourceChan.getRating()); 63 updChan.setGenerator(sourceChan.getGenerator()); 64 updChan.setDocs(sourceChan.getDocs()); 65 updChan.setTtl(sourceChan.getTtl()); 66 updChan.setLastBuildDate(sourceChan.getLastBuildDate()); 67 updChan.setUpdateBase(sourceChan.getUpdateBase()); 68 updChan.setUpdateFrequency(sourceChan.getUpdateFrequency()); 69 updChan.setUpdatePeriod(sourceChan.getUpdatePeriod()); 70 updChan.setPubDate(sourceChan.getPubDate()); 71 72 } 76 77 83 public static void copyItemProperties(ItemIF src, ItemIF dest) 84 { 85 dest.setTitle(src.getTitle()); 86 dest.setDescription(src.getDescription()); 87 dest.setLink(src.getLink()); 88 dest.setCreator(src.getCreator()); 89 dest.setSubject(src.getSubject()); 90 dest.setDate(src.getDate()); 91 dest.setFound(src.getFound()); 92 dest.setUnRead(src.getUnRead()); 93 } 94 } 95 | Popular Tags |