view artifact-database/src/main/java/de/intevation/artifactdatabase/state/Attribute.java @ 363:4d3298295a64

Enhanced the State interface with a new method initialize() which might be used to initialize the State based on a model Artifact. artifacts/trunk@3623 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 Jan 2012 08:15:35 +0000
parents c065a1a90ba0
children
line wrap: on
line source
package de.intevation.artifactdatabase.state;

import java.io.Serializable;

import org.w3c.dom.Node;


/**
 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
 */
public interface Attribute extends Serializable {

    /**
     * Returns the name of this Attribute.
     *
     * @return the name of this Attribute.
     */
    String getName();

    /**
     * Returns the value of this Attribute.
     *
     * @return the value of this Attribute.
     */
    Object getValue();

    /**
     * Sets the value of this Attribute.
     *
     * @param value The new value.
     */
    void setValue(Object value);

    /**
     * Transforms this Attribute into XML.
     *
     * @param parent The parent node.
     *
     * @return the Node that represents this Attribute.
     */
    Node toXML(Node parent);
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org