equal
deleted
inserted
replaced
136 public void writeColumnValue(Object value) { |
136 public void writeColumnValue(Object value) { |
137 super.writeColumnValue(value); |
137 super.writeColumnValue(value); |
138 |
138 |
139 Map<QName, String> attributes = null; |
139 Map<QName, String> attributes = null; |
140 if (labeledColumns) { |
140 if (labeledColumns) { |
141 attributes = new LinkedHashMap<>(1); |
141 attributes = new LinkedHashMap<>(2); |
142 attributes.put(qname("label"), getCurrentColumnsHeader().getColumnDescriptors().get(getCurrentColumnsCount() - 1).getLabel()); |
142 attributes.put(qname("label"), getCurrentColumnsHeader().getColumnDescriptors().get(getCurrentColumnsCount() - 1).getLabel()); |
143 } |
143 } |
144 |
144 |
145 printTextElement(qname("column"), attributes, toString(value)); |
145 if (value == null) { |
|
146 if (attributes == null) { |
|
147 attributes = new LinkedHashMap<>(2); |
|
148 attributes.put(qname("null"), "true"); |
|
149 printEmptyElement(qname("column"), attributes); |
|
150 } |
|
151 } else { |
|
152 printTextElement(qname("column"), attributes, toString(value)); |
|
153 } |
146 } |
154 } |
147 |
155 |
148 @Override |
156 @Override |
149 public void writeEndRow() { |
157 public void writeEndRow() { |
150 super.writeEndRow(); |
158 super.writeEndRow(); |