File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed
dslink-v2/src/main/java/org/iot/dsa Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ subprojects {
55 apply plugin : ' maven'
66
77 group ' org.iot-dsa'
8- version ' 0.50 .0'
8+ version ' 0.51 .0'
99
1010 sourceCompatibility = 1.8
1111 targetCompatibility = 1.8
Original file line number Diff line number Diff line change 1111public class DSMainNode extends DSNode {
1212
1313 /**
14- * The parent link or null.
14+ * The ancestral DSLink, or null.
1515 */
1616 public DSLink getLink () {
17- return (DSLink ) getParent ( );
17+ return (DSLink ) getAncestor ( DSLink . class );
1818 }
1919
2020 /**
@@ -31,14 +31,4 @@ public boolean isResponder() {
3131 return true ;
3232 }
3333
34- /**
35- * The parent must be a DSLink instance.
36- */
37- public void validateParent (DSNode node ) {
38- if (node instanceof DSLink ) {
39- return ;
40- }
41- throw new IllegalArgumentException ("Must be a child of DSLink" );
42- }
43-
4434}
Original file line number Diff line number Diff line change @@ -132,6 +132,10 @@ public DSFlexEnum valueOf(DSElement arg) {
132132 if ((arg == null ) || arg .isNull ()) {
133133 return NULL ;
134134 }
135+ if (arg .isList ()) {
136+ DSList list = arg .toList ();
137+ return valueOf (list .first ().toString (), list );
138+ }
135139 return valueOf (arg .toString ());
136140 }
137141
You can’t perform that action at this time.
0 commit comments