Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java @ 1628:16c74ca3586e
Cosmetics, docs.
flys-artifacts/trunk@2803 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 21 Sep 2011 14:01:14 +0000 |
parents | a3108f0a2fe7 |
children | cc47828a1390 |
comparison
equal
deleted
inserted
replaced
1627:d1b20d0e9eb4 | 1628:16c74ca3586e |
---|---|
35 this.oldAttr = oldAttr; | 35 this.oldAttr = oldAttr; |
36 this.newAttr = newAttr; | 36 this.newAttr = newAttr; |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 /** | |
41 * Create document | |
42 */ | |
40 protected Document write() { | 43 protected Document write() { |
41 Document doc = XMLUtils.newDocument(); | 44 Document doc = XMLUtils.newDocument(); |
42 | 45 |
43 ElementCreator cr = new ElementCreator( | 46 ElementCreator cr = new ElementCreator( |
44 doc, | 47 doc, |
60 } | 63 } |
61 | 64 |
62 return doc; | 65 return doc; |
63 } | 66 } |
64 | 67 |
65 | 68 /** |
69 * @param doc Document to add output nodes to | |
70 * @param outs Node in Document to add output nodes to | |
71 * @param a the new output | |
72 * @param b the old output | |
73 */ | |
66 protected void writeOutput( | 74 protected void writeOutput( |
67 Document doc, | 75 Document doc, |
68 Node outs, | 76 Node outs, |
69 ElementCreator cr, | 77 ElementCreator cr, |
70 Output a, /* new output */ | 78 Output a, /* new output */ |
84 | 92 |
85 writeFacets(doc, cr, output, facetsA, facetsB); | 93 writeFacets(doc, cr, output, facetsA, facetsB); |
86 } | 94 } |
87 | 95 |
88 | 96 |
97 /** | |
98 * @param doc Document to add facet nodes to | |
99 * @param output Node in Document to add facet nodes to | |
100 * @param a the new facets | |
101 * @param b the old facets | |
102 */ | |
89 protected void writeFacets( | 103 protected void writeFacets( |
90 Document doc, | 104 Document doc, |
91 ElementCreator cr, | 105 ElementCreator cr, |
92 Element output, | 106 Element output, |
93 List<Facet> a, /* new facets */ | 107 List<Facet> a, /* new facets */ |
107 } | 121 } |
108 } | 122 } |
109 } | 123 } |
110 | 124 |
111 | 125 |
126 /** | |
127 * @param a new facets | |
128 * @param list old facets | |
129 */ | |
112 protected boolean mergeFacets( | 130 protected boolean mergeFacets( |
113 Document doc, | 131 Document doc, |
114 ElementCreator cr, | 132 ElementCreator cr, |
115 Element output, | 133 Element output, |
116 ManagedFacet a, /* new facets */ | 134 ManagedFacet a, /* new facets */ |