# HG changeset patch # User Felix Wolfsteller # Date 1314175351 0 # Node ID 193c49b7f6a3456bc5e49aaf0181352fd1ecfe89 # Parent 13784581ab0c055745b4a48c63d678fa4162038a Minor changes to stub MainValuesArtifact. flys-artifacts/trunk@2545 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 13784581ab0c -r 193c49b7f6a3 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Aug 24 08:22:09 2011 +0000 +++ b/flys-artifacts/ChangeLog Wed Aug 24 08:42:31 2011 +0000 @@ -1,3 +1,8 @@ +2011-08-24 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java: + Minor fixes, ressurect Facet implementation as inner class. + 2011-08-24 Ingo Weinzierl * doc/conf/artifacts/winfo.xml: Moved the input of barriers one state diff -r 13784581ab0c -r 193c49b7f6a3 flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java Wed Aug 24 08:22:09 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java Wed Aug 24 08:42:31 2011 +0000 @@ -7,7 +7,9 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; +import org.w3c.dom.Node; +import de.intevation.artifacts.Artifact; import de.intevation.artifacts.ArtifactFactory; import de.intevation.artifacts.ArtifactNamespaceContext; import de.intevation.artifacts.CallContext; @@ -29,10 +31,10 @@ extends StaticFLYSArtifact { /** The logger for this class. */ - private static Logger logger = Logger.getLogger(WINFOArtifact.class); + private static Logger logger = Logger.getLogger(MainValuesArtifact.class); /** The name of the artifact. */ - public static final String ARTIFACT_NAME = "annotation"; + public static final String ARTIFACT_NAME = "mainvalue"; public MainValuesArtifact() { logger.warn("MainValuesArtifact.MainValuesartifact()"); @@ -176,4 +178,70 @@ // state is not valid, so we do not append its outputs. } } + + + /* FACET IMPLEMENTATION */ + class MainValuesFacet implements Facet { + + // TODO implement; what is index used for? + /** + * Returns the index of this facet. + * + * @return the index of this facet. + */ + public int getIndex() { + return 0; + } + + + /** + * Returns the name of this facet. + * + * @return the name of this facet. + */ + public String getName() { + // TODO define, static + return "facet.mainvalue"; + } + + + /** + * Returns the description of this facet. + * + * @return the description of this facet. + */ + public String getDescription() { + return null; + } + + + /** + * Returns the data this facet requires. + * + * @param artifact The owner artifact. + * @param context The CallContext. + * + * @return the data. + */ + public Object getData(Artifact artifact, CallContext context) { + return null; + } + + + /** + * Write the internal representation of a facet to a node. + * + * @param doc A Document. + * + * @return the representation as Node. + */ + public Node toXML(Document doc) { + return null; + } + + public MainValuesFacet deepCopy() { + return null; + } + } + }