View Javadoc

1   /*
2    ORDI - Ontology Repository and Data Integration
3   
4    Copyright (c) 2004-2007, OntoText Lab. / SIRMA
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package com.ontotext.ordi.tripleset;
19  
20  import java.util.Map;
21  
22  import com.ontotext.ordi.DataSource;
23  import com.ontotext.ordi.exception.ORDIException;
24  
25  public abstract class DataSourceImpl extends WarningAwareImpl implements
26          DataSource {
27  
28      protected final Map<Object, Object> properties;
29  
30      public DataSourceImpl(Map<Object, Object> properties) {
31          if (properties == null) {
32              throw new IllegalArgumentException();
33          }
34          this.properties = properties;
35      }
36  
37      public Map<Object, Object> getMetaData() {
38          return properties;
39      }
40  
41      public boolean isWrapperFor(Class<?> iface) throws ORDIException {
42          return false;
43      }
44  
45      public <T> T unwrap(Class<T> iface) throws ORDIException {
46          return null;
47      }
48  }