Mercurial > dive4elements > gnv-client
view gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/Artifact.java @ 700:89ade245ca7a
Using unix line endings only.
gnv/trunk@940 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 18 Apr 2010 09:27:11 +0000 |
parents | af22fa5567a6 |
children | d5d4dbda17cc |
line wrap: on
line source
package de.intevation.gnv.artifactdatabase.objects; import java.util.Collection; import java.util.Map; import org.w3c.dom.Node; /** * An <code>ArtifactObject</code> representing an artifact. * * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> * */ public class Artifact implements ArtifactObject, ArtifactDescription { /** * The UID of this Class */ private static final long serialVersionUID = 8606869493141810364L; private String id = null; private String hash = null; private boolean selected = false; private Node currentUI = null; private Node currentOut = null; private Collection<String> reachableStates; private Collection<String> inputParameter; private Map<String, OutputMode> outputModes; private String currentState = null; public Node getCurrentUI() { return currentUI; } public void setCurrentUI(Node currentUI) { this.currentUI = currentUI; } public Node getCurrentOut() { return currentOut; } public void setCurrentOut(Node currentOut) { this.currentOut = currentOut; } public Collection<String> getReachableStates() { return reachableStates; } public void setReachableStates(Collection<String> reachableStates) { this.reachableStates = reachableStates; } public String getCurrentState() { return currentState; } public void setCurrentState(String currentState) { this.currentState = currentState; } /** * Constructor */ public Artifact(String uuid, String hash) { this.id = uuid; this.hash = hash; } public String getHash() { return this.hash; } public String getDescription() { return this.id; } public String getId() { return this.id; } public String getName() { return this.id; } public boolean isSelected() { return this.selected; } public void setSelected(boolean selected) { this.selected = selected; } public Collection<String> getInputParameter() { return this.inputParameter; } public void setInputParameter(Collection<String> inputParameter) { this.inputParameter = inputParameter; } public Map<String, OutputMode> getOutputModes() { return this.outputModes; } public Collection<OutputMode> getOutputModesAsCollection() { if (this.outputModes != null) { return this.outputModes.values(); } return null; } public void setOutputModes(Map<String, OutputMode> outputModes) { this.outputModes = outputModes; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :