[PATCH 3 of 4] Added interface for static facet

Wald Commits scm-commit at wald.intevation.org
Wed Apr 30 15:30:39 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1398863179 -7200
# Node ID 0416d9fb3668c6444e0a0c6e0b1a79d3badb3810
# Parent  69f99bdf3d65141019a1e405f5f7f092e05ac16f
Added interface for static facet.

diff -r 69f99bdf3d65 -r 0416d9fb3668 artifact-database/src/main/java/org/dive4elements/artifactdatabase/state/StaticFacet.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifact-database/src/main/java/org/dive4elements/artifactdatabase/state/StaticFacet.java	Wed Apr 30 15:06:19 2014 +0200
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2014 by Intevation GmbH
+ *
+ * This program is free software under the LGPL (>=v2.1)
+ * Read the file LGPL.txt coming with the software for details
+ * or visit http://www.gnu.org/licenses/ if it does not exist.
+ */
+
+package org.dive4elements.artifactdatabase.state;
+
+import java.io.Serializable;
+
+import org.dive4elements.artifacts.Artifact;
+import org.dive4elements.artifacts.CallMeta;
+import org.w3c.dom.Document;
+
+
+public interface StaticFacet
+extends Facet
+{
+    /**
+     * Setup the static facet by parsing the data document.
+     *
+     * @param artifact  The artifact
+     * @param data      The document
+     * @param meat      The call meta
+     */
+    public void setup(Artifact artifact, Document data, CallMeta meta);
+}


More information about the Dive4Elements-commits mailing list