ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: tim@485: package de.intevation.gnv.artifacts; tim@485: tim@485: import de.intevation.artifacts.ArtifactDatabase; tim@485: import de.intevation.artifacts.ArtifactDatabaseException; tim@485: import de.intevation.artifacts.ArtifactFactory; tim@485: import de.intevation.artifacts.CallMeta; tim@485: sascha@779: import org.w3c.dom.Document; sascha@779: tim@485: /** sascha@780: * @author Tim Englich tim@485: * tim@485: */ tim@485: public class TestArtifactDatabase implements ArtifactDatabase { tim@485: tim@485: private ArtifactFactory artifactFactory = null; tim@485: /** tim@485: * Constructor tim@485: */ tim@485: public TestArtifactDatabase(ArtifactFactory artifactFactory) { tim@485: this.artifactFactory = artifactFactory; tim@485: } tim@485: tim@485: /** tim@485: * @see de.intevation.artifacts.ArtifactDatabase#advance(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) tim@485: */ tim@485: public Document advance(String artifact, Document target, CallMeta callMeta) tim@485: throws ArtifactDatabaseException { tim@485: tim@485: return null; tim@485: } tim@485: tim@485: /** tim@485: * @see de.intevation.artifacts.ArtifactDatabase#artifactFactoryNamesAndDescriptions() tim@485: */ tim@485: public String[][] artifactFactoryNamesAndDescriptions() { tim@485: tim@485: return null; tim@485: } tim@485: tim@485: /** tim@595: * @see de.intevation.artifacts.ArtifactDatabase#createArtifactWithFactory(java.lang.String, de.intevation.artifacts.CallMeta, org.w3c.dom.Document) tim@485: */ sascha@778: public Document createArtifactWithFactory(String factory, tim@595: CallMeta callMeta, tim@595: Document data) tim@485: throws ArtifactDatabaseException { tim@485: tim@485: return null; tim@485: } tim@485: tim@485: /** tim@485: * @see de.intevation.artifacts.ArtifactDatabase#describe(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) tim@485: */ tim@485: public Document describe(String artifact, Document data, CallMeta callMeta) tim@485: throws ArtifactDatabaseException { tim@485: tim@485: return null; tim@485: } tim@485: tim@485: /** tim@485: * @see de.intevation.artifacts.ArtifactDatabase#feed(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) tim@485: */ tim@485: public Document feed(String artifact, Document data, CallMeta callMeta) tim@485: throws ArtifactDatabaseException { tim@485: tim@485: return null; tim@485: } tim@485: tim@485: /** tim@485: * @see de.intevation.artifacts.ArtifactDatabase#getInternalArtifactFactory(java.lang.String) tim@485: */ tim@485: public ArtifactFactory getInternalArtifactFactory(String factoryName) { tim@485: return this.artifactFactory; tim@485: } tim@485: tim@485: /** tim@485: * @see de.intevation.artifacts.ArtifactDatabase#out(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) tim@485: */ tim@485: public DeferredOutput out(String artifact, Document format, tim@485: CallMeta callMeta) tim@485: throws ArtifactDatabaseException { tim@485: tim@485: return null; tim@485: } tim@485: tim@510: public Document process(String service, Document input, CallMeta callMeta) { tim@510: return null; tim@510: } tim@510: tim@510: public String[][] serviceNamesAndDescriptions() { tim@510: return null; tim@510: } tim@510: sascha@797: public Document exportArtifact(String artifact, CallMeta callMeta) throws ArtifactDatabaseException { sascha@797: throw new UnsupportedOperationException("Not supported yet."); sascha@797: } sascha@797: sascha@797: public Document importArtifact(Document data, CallMeta callMeta) throws ArtifactDatabaseException { sascha@797: throw new UnsupportedOperationException("Not supported yet."); sascha@797: } sascha@797: tim@485: }