--- /dev/null
+package org.simantics.structural2.modelingRules;\r
+\r
+import org.simantics.db.Resource;\r
+\r
+public class ConnectionJudgement {\r
+ public static final ConnectionJudgement ILLEGAL = \r
+ new ConnectionJudgement(ConnectionJudgementType.ILLEGAL);\r
+ public static final ConnectionJudgement CANBEMADELEGAL = \r
+ new ConnectionJudgement(ConnectionJudgementType.CANBEMADELEGAL);\r
+ \r
+ public ConnectionJudgementType type;\r
+ public Resource connectionType;\r
+ public IAttachmentRelationMap attachmentRelations;\r
+ \r
+ public ConnectionJudgement(Resource connectionType) {\r
+ this.type = ConnectionJudgementType.LEGAL;\r
+ this.connectionType = connectionType;\r
+ }\r
+ \r
+ public ConnectionJudgement(ConnectionJudgementType type, Resource connectionType) {\r
+ this.type = type;\r
+ this.connectionType = connectionType;\r
+ }\r
+ \r
+ public ConnectionJudgement(ConnectionJudgementType type) {\r
+ this.type = type;\r
+ } \r
+}\r