Coverage Report - org.kuali.rice.core.impl.impex.xml.XmlImpexRegistryImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
XmlImpexRegistryImpl
0%
0/11
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.core.impl.impex.xml;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.Collections;
 20  
 import java.util.List;
 21  
 
 22  
 import org.kuali.rice.core.framework.impex.xml.XmlExporter;
 23  
 import org.kuali.rice.core.framework.impex.xml.XmlImpexRegistry;
 24  
 import org.kuali.rice.core.framework.impex.xml.XmlLoader;
 25  
 
 26  
 /**
 27  
  * TODO 
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  */
 32  0
 public class XmlImpexRegistryImpl implements XmlImpexRegistry {
 33  
 
 34  0
         private final List<XmlLoader> xmlLoaders = Collections.synchronizedList(new ArrayList<XmlLoader>());
 35  0
         private final List<XmlExporter> xmlExporters = Collections.synchronizedList(new ArrayList<XmlExporter>());
 36  
         
 37  
         @Override
 38  
         public void registerLoader(XmlLoader xmlLoader) {
 39  0
                 xmlLoaders.add(xmlLoader);
 40  0
         }
 41  
 
 42  
         @Override
 43  
         public void registerExporter(XmlExporter exporter) {
 44  0
                 xmlExporters.add(exporter);
 45  0
         }
 46  
         
 47  
         @Override
 48  
         public boolean unregisterLoader(XmlLoader xmlLoader) {
 49  0
                 return xmlLoaders.remove(xmlLoader);
 50  
         }
 51  
 
 52  
         @Override
 53  
         public boolean unregisterExporter(XmlExporter exporter) {
 54  0
                 return xmlExporters.remove(exporter);
 55  
         }
 56  
 
 57  
         @Override
 58  
         public List<XmlLoader> getLoaders() {
 59  0
                 return new ArrayList<XmlLoader>(xmlLoaders);
 60  
         }
 61  
 
 62  
         @Override
 63  
         public List<XmlExporter> getExporters() {
 64  0
                 return new ArrayList<XmlExporter>(xmlExporters);
 65  
         }
 66  
 
 67  
 }