[Fix] Hopefully last fix for Intepretation/UOM of TimedStates

This commit is contained in:
Robert von Burg 2017-03-29 17:00:21 +02:00
parent 801f792771
commit 7ad09e2fe5
1 changed files with 9 additions and 0 deletions

View File

@ -247,6 +247,15 @@ public class StrolchElementToSaxWriterVisitor implements StrolchRootElementVisit
writeStartStrolchElement(Tags.TIMED_STATE, values.isEmpty(), timedState);
if (!INTERPRETATION_NONE.equals(timedState.getInterpretation()))
this.writer.writeAttribute(Tags.INTERPRETATION, timedState.getInterpretation());
if (!UOM_NONE.equals(timedState.getUom()))
this.writer.writeAttribute(Tags.UOM, timedState.getUom());
if (timedState.isHidden())
this.writer.writeAttribute(Tags.HIDDEN, Boolean.toString(timedState.isHidden()));
if (timedState.getIndex() != 0)
this.writer.writeAttribute(Tags.INDEX, Integer.toString(timedState.getIndex()));
for (ITimeValue<IValue<?>> timeValue : values) {
this.writer.writeEmptyElement(Tags.VALUE);
this.writer.writeAttribute(Tags.TIME,