Skip to content

Commit b0af106

Browse files
committed
- fixed issue with swe:Text template fields being marked invalid
1 parent e9f899c commit b0af106

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

SweLib/src/main/java/org/sofwerx/ogc/sos/SensorTextResultTemplateField.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
import org.w3c.dom.Document;
66
import org.w3c.dom.Element;
7-
import org.w3c.dom.NodeList;
8-
9-
import java.util.ArrayList;
107

118
/**
129
* This is used for templates that involve text rather than quantity
@@ -44,4 +41,9 @@ public void parse(Element field) {
4441
return;
4542
setName(field.getAttribute(NAME_NAME));
4643
}
44+
45+
@Override
46+
public boolean isValid() {
47+
return (getName() != null) && (getQuantityDefinition() != null);
48+
}
4749
}

0 commit comments

Comments
 (0)