Mercurial > dive4elements > river
changeset 1065:193c49b7f6a3
Minor changes to stub MainValuesArtifact.
flys-artifacts/trunk@2545 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 24 Aug 2011 08:42:31 +0000 |
parents | 13784581ab0c |
children | 7f5426c69ee0 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java |
diffstat | 2 files changed, 75 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java: + Minor fixes, ressurect Facet implementation as inner class. + 2011-08-24 Ingo Weinzierl <ingo@intevation.de> * doc/conf/artifacts/winfo.xml: Moved the input of barriers one state
--- 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; + } + } + }