Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/VisibleAttribute.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 | 7a7c5cad4fe1 |
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 import de.intevation.artifactdatabase.state.DefaultAttribute; | 6 import de.intevation.artifactdatabase.state.DefaultAttribute; |
8 | 7 |
29 * | 28 * |
30 * @return a new Node that represents this Attribute. | 29 * @return a new Node that represents this Attribute. |
31 */ | 30 */ |
32 @Override | 31 @Override |
33 public Node toXML(Node parent) { | 32 public Node toXML(Node parent) { |
34 Document owner = parent.getOwnerDocument(); | |
35 | |
36 Element ele = (Element) super.toXML(parent); | 33 Element ele = (Element) super.toXML(parent); |
37 ele.setAttribute("display", String.valueOf(visible)); | 34 ele.setAttribute("display", String.valueOf(visible)); |
38 | 35 |
39 return ele; | 36 return ele; |
40 } | 37 } |