cleanup
[cdmlib.git] / cdmlib-ext / src / main / java / eu / etaxonomy / cdm / ext / common / SchemaAdapterBase.java
1 /**
2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.cdm.ext.common;
10
11 import java.io.IOException;
12 import java.io.InputStream;
13 import java.net.URI;
14 import java.util.List;
15
16 import org.apache.log4j.Logger;
17
18 import eu.etaxonomy.cdm.model.common.CdmBase;
19
20 /**
21 * @author a.kohlbecker
22 * @since 24.08.2010
23 */
24 public abstract class SchemaAdapterBase<T extends CdmBase> {
25
26 public static final Logger logger = Logger.getLogger(SchemaAdapterBase.class);
27
28 /**
29 * @return the identifier e.g. "info:srw/schema/1/dc-v1.1" for DublinCore
30 */
31 public abstract URI getIdentifier();
32
33 /**
34 * @return the shortName e.g. "dc" for DublinCore
35 */
36 public abstract String getShortName();
37
38 /**
39 * @param inputStream
40 * @return
41 */
42 public abstract List<T> getCmdEntities(InputStream inputStream) throws IOException;
43
44 }