comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChoiceStringAttribute.java @ 4051:58bdf95df5e4

More dead code removal. Minor code clean ups.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 06 Oct 2012 13:19:44 +0200
parents ebfce31c7eec
children
comparison
equal deleted inserted replaced
4050:975f608dd254 4051:58bdf95df5e4
1 package de.intevation.flys.exports; 1 package de.intevation.flys.exports;
2 2
3 import org.w3c.dom.Document;
4 import org.w3c.dom.Element; 3 import org.w3c.dom.Element;
5 import org.w3c.dom.Node; 4 import org.w3c.dom.Node;
6 5
7 6
8 /** 7 /**
31 * 30 *
32 * @return the new Node that represents this Attribute. 31 * @return the new Node that represents this Attribute.
33 */ 32 */
34 @Override 33 @Override
35 public Node toXML(Node parent) { 34 public Node toXML(Node parent) {
36 Document owner = parent.getOwnerDocument();
37
38 Element ele = (Element) super.toXML(parent); 35 Element ele = (Element) super.toXML(parent);
39 ele.setAttribute("type", "string"); 36 ele.setAttribute("type", "string");
40 ele.setAttribute("choice", choiceType); 37 ele.setAttribute("choice", choiceType);
41 38
42 return ele; 39 return ele;

http://dive4elements.wald.intevation.org