Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticFLYSArtifact.java @ 3920:8483d190b2e7
Convert FKYSArtifact data member to a private variable
Add setData and use getAllData in classes which access data directly.
flys-artifacts/trunk@5600 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 26 Sep 2012 10:56:52 +0000 |
parents | 5642a83420f2 |
children | deff2c337111 |
comparison
equal
deleted
inserted
replaced
3919:355c843245c1 | 3920:8483d190b2e7 |
---|---|
52 | 52 |
53 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); | 53 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); |
54 root.appendChild(createOutputModes(cc, desc, creator)); | 54 root.appendChild(createOutputModes(cc, desc, creator)); |
55 | 55 |
56 // Add the data to an anonymous state. | 56 // Add the data to an anonymous state. |
57 Collection<StateData> datas = this.data.values(); | 57 Collection<StateData> datas = getAllData(); |
58 if (datas.size() > 0) { | 58 if (datas.size() > 0) { |
59 Element ui = creator.create("ui"); | 59 Element ui = creator.create("ui"); |
60 Element staticE = creator.create("static"); | 60 Element staticE = creator.create("static"); |
61 Element state = creator.create("state"); | 61 Element state = creator.create("state"); |
62 ui.appendChild(staticE); | 62 ui.appendChild(staticE); |