teichmann@475: package org.dive4elements.artifactdatabase.state; ingo@358: ingo@358: import java.io.Serializable; ingo@358: ingo@358: import org.w3c.dom.Node; ingo@358: ingo@358: ingo@358: /** ingo@358: * @author Ingo Weinzierl ingo@358: */ ingo@358: public interface Attribute extends Serializable { ingo@358: ingo@358: /** ingo@358: * Returns the name of this Attribute. ingo@358: * ingo@358: * @return the name of this Attribute. ingo@358: */ ingo@358: String getName(); ingo@358: ingo@358: /** ingo@358: * Returns the value of this Attribute. ingo@358: * ingo@358: * @return the value of this Attribute. ingo@358: */ ingo@358: Object getValue(); ingo@358: ingo@358: /** ingo@360: * Sets the value of this Attribute. ingo@360: * ingo@360: * @param value The new value. ingo@360: */ ingo@360: void setValue(Object value); ingo@360: ingo@360: /** ingo@358: * Transforms this Attribute into XML. ingo@358: * ingo@358: * @param parent The parent node. ingo@360: * ingo@360: * @return the Node that represents this Attribute. ingo@358: */ ingo@360: Node toXML(Node parent); ingo@358: } ingo@358: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :