1 4 package com.openedit.store.convert; 5 6 import java.util.Iterator ; 7 import java.util.List ; 8 9 import com.openedit.store.CatalogConverter; 10 import com.openedit.store.Store; 11 public class CompositeConverter extends CatalogConverter 13 { 14 List fiedlCatalogImportConverters; 15 16 public boolean convert(Store inStore, List inLog) throws Exception 17 { 18 boolean converted = false; 19 20 for ( Iterator iter = getCatalogConverters().iterator(); iter.hasNext(); ) 21 { 22 CatalogConverter converter = (CatalogConverter) iter.next(); 23 if ( converter.convert(inStore, inLog) ) 24 { 25 converted = true; 26 } 27 } 28 return converted; 29 } 30 public List getCatalogConverters() 31 { 32 return fiedlCatalogImportConverters; 33 } 34 35 public void setCatalogConverters(List inFiedlCatalogImportConverters) 36 { 37 fiedlCatalogImportConverters = inFiedlCatalogImportConverters; 38 } 39 } 40 | Popular Tags |