Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/IntegerAttribute.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 | 5c1e7c1e9e09 |
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 /** |
24 * | 23 * |
25 * @return the new Node that represents this Attribute. | 24 * @return the new Node that represents this Attribute. |
26 */ | 25 */ |
27 @Override | 26 @Override |
28 public Node toXML(Node parent) { | 27 public Node toXML(Node parent) { |
29 Document owner = parent.getOwnerDocument(); | |
30 | |
31 Element ele = (Element) super.toXML(parent); | 28 Element ele = (Element) super.toXML(parent); |
32 ele.setAttribute("type", "integer"); | 29 ele.setAttribute("type", "integer"); |
33 | 30 |
34 return ele; | 31 return ele; |
35 } | 32 } |