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.util.List;
|
14
|
|
15
|
import org.apache.logging.log4j.LogManager;
|
16
|
import org.apache.logging.log4j.Logger;
|
17
|
|
18
|
import eu.etaxonomy.cdm.common.URI;
|
19
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
20
|
|
21
|
/**
|
22
|
* @author a.kohlbecker
|
23
|
* @since 24.08.2010
|
24
|
*/
|
25
|
public abstract class SchemaAdapterBase<T extends CdmBase> {
|
26
|
|
27
|
public static final Logger logger = LogManager.getLogger();
|
28
|
|
29
|
/**
|
30
|
* @return the identifier e.g. "info:srw/schema/1/dc-v1.1" for DublinCore
|
31
|
*/
|
32
|
public abstract URI getIdentifier();
|
33
|
|
34
|
/**
|
35
|
* @return the shortName e.g. "dc" for DublinCore
|
36
|
*/
|
37
|
public abstract String getShortName();
|
38
|
|
39
|
/**
|
40
|
* @param inputStream
|
41
|
* @return
|
42
|
*/
|
43
|
public abstract List<T> getCmdEntities(InputStream inputStream) throws IOException;
|
44
|
|
45
|
}
|