ingo@1992: package de.intevation.flys.exports; ingo@1992: ingo@1992: import org.w3c.dom.Element; ingo@1992: import org.w3c.dom.Node; ingo@1992: ingo@1992: ingo@1992: /** ingo@1992: * @author Ingo Weinzierl ingo@1992: */ ingo@1992: public class DoubleAttribute extends VisibleAttribute { ingo@1992: ingo@1992: ingo@1992: public DoubleAttribute(String name, double value, boolean visible) { ingo@1992: super(name, value, visible); ingo@1992: } ingo@1992: ingo@1992: ingo@1992: /** ingo@1992: * Calls VisibleAttribute.toXML() and appends afterwards an attribute ingo@1992: * type with value double. ingo@1992: * ingo@1992: * @param parent The parent Node. ingo@1992: * ingo@1992: * @return the new Node that represents this Attribute. ingo@1992: */ ingo@1992: @Override ingo@1992: public Node toXML(Node parent) { ingo@1992: Element ele = (Element) super.toXML(parent); ingo@1992: ele.setAttribute("type", "double"); ingo@1992: ingo@1992: return ele; ingo@1992: } ingo@1992: } ingo@1992: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :