]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/ConnectionJudgement.java
I think i got dis grpc finally figured out part: after this give up
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / modelingRules / ConnectionJudgement.java
1 package org.simantics.structural2.modelingRules;
2
3 import org.simantics.db.Resource;
4
5 public class ConnectionJudgement {
6         public static final ConnectionJudgement ILLEGAL = 
7                 new ConnectionJudgement(ConnectionJudgementType.ILLEGAL);
8         public static final ConnectionJudgement CANBEMADELEGAL = 
9                 new ConnectionJudgement(ConnectionJudgementType.CANBEMADELEGAL);
10         
11         public ConnectionJudgementType type;
12         public Resource connectionType;
13         public IAttachmentRelationMap attachmentRelations;
14         
15         public ConnectionJudgement(Resource connectionType) {
16                 this.type = ConnectionJudgementType.LEGAL;
17                 this.connectionType = connectionType;
18         }
19         
20         public ConnectionJudgement(ConnectionJudgementType type, Resource connectionType) {
21                 this.type = type;
22                 this.connectionType = connectionType;
23         }
24         
25         public ConnectionJudgement(ConnectionJudgementType type) {
26                 this.type = type;
27         }       
28 }