]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/DraftStatusBean.java
Optimized Layer0Utils.getPossibleDefaultBinding
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / util / DraftStatusBean.java
1 package org.simantics.db.layer0.util;
2
3 import java.util.Collection;
4
5 import org.simantics.databoard.Bindings;
6 import org.simantics.databoard.binding.Binding;
7
8 public class DraftStatusBean {
9
10         public static final String EXTENSION_KEY = DraftStatusBean.class.getSimpleName();
11         
12         public static final Binding BINDING = Bindings.getBindingUnchecked(DraftStatusBean.class);
13         
14         public String[] uris;
15         
16         public DraftStatusBean() {
17                 uris = new String[0];
18         }
19
20         public DraftStatusBean(String[] uris) {
21                 this.uris = uris;
22         }
23
24         public DraftStatusBean(Collection<String> uris) {
25                 this.uris = uris.toArray(new String[uris.size()]);
26         }
27
28 }