--- /dev/null
+include "Simantics/DB"\r
+\r
+@JavaType "org.simantics.structural2.procedural.Property"\r
+data Property =\r
+ @FieldNames [relation, value]\r
+ Property Resource a\r
+\r
+instance Show Property where\r
+ sb <+ Property relation value = sb << "(Property " <+ relation << ")"\r
+\r
+@JavaType "org.simantics.structural2.procedural.ConnectionPoint"\r
+data ConnectionPoint =\r
+ @JavaType "org.simantics.structural2.procedural.Terminal"\r
+ @FieldNames [component, relation]\r
+ Terminal String Resource\r
+ | @JavaType "org.simantics.structural2.procedural.Interface"\r
+ @FieldNames [relation]\r
+ Interface Resource\r
+\r
+deriving instance Show ConnectionPoint\r
+\r
+@JavaType "org.simantics.structural2.procedural.SubstructureElement"\r
+data SubstructureElement =\r
+ @JavaType "org.simantics.structural2.procedural.Component"\r
+ @FieldNames [name, "type", properties]\r
+ Component String Resource [Property]\r
+ | @JavaType "org.simantics.structural2.procedural.Connection"\r
+ @FieldNames [connectionPoints] \r
+ Connection [ConnectionPoint]\r
+\r
+deriving instance Show SubstructureElement
\ No newline at end of file