view artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java @ 34:9935e1c928de

Bug Fixed: Comparation for outdated Artifacts was Wrong. artifacts/trunk@86 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 15 Sep 2009 09:43:57 +0000
parents c2d53bd30ab8
children 5fbd8e65bdf5
line wrap: on
line source
package de.intevation.artifactdatabase;

import org.w3c.dom.Document;

import de.intevation.artifacts.Artifact;
import de.intevation.artifacts.CallContext;
import de.intevation.artifacts.ArtifactFactory;

import org.apache.log4j.Logger;

import java.io.IOException;
import java.io.OutputStream;

/**
 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
 */
public class DefaultArtifact
implements   Artifact
{
    private static Logger logger = Logger.getLogger(DefaultArtifact.class);
    
    protected String identifier;

    public DefaultArtifact() {
    }

    public String identifier() {
        return this.identifier;
    }

    public String hash() {
        return String.valueOf(hashCode());
    }

    public Document describe(CallContext context) {
        return XMLUtils.newDocument();
    }

    public Document advance(Document target, CallContext context) {
        return XMLUtils.newDocument();
    }

    public Document feed(Document target, CallContext context) {
        return XMLUtils.newDocument();
    }

    public void out(
        Document     format,
        OutputStream out,
        CallContext  context
    )
    throws IOException
    {
    }

    public void setup(String identifier, ArtifactFactory factory, Object context) {
        this.identifier = identifier;
    }

    public void endOfLife(Object context) {
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org