graph.claimLiteral(subject, predicate, L0.RVI, rvi, rviBinding);
}
+ public static Binding rviBinding(ReadGraph graph) throws DatabaseException {
+ Databoard databoard = graph.getService(Databoard.class);
+ if (databoard == null) throw new DatabaseException("No databoard support in Session"); //$NON-NLS-1$
+ return databoard.getBindingUnchecked(RVI.class);
+ }
+
+ public static boolean isEmpty(RVI rvi) throws DatabaseException {
+ return rvi.parts.length == 0;
+ }
+
}
possibleConfigurationContext :: Resource -> <ReadGraph> Variable
setRVIProperty :: Variable -> RVI -> <WriteGraph> ()
-
+
+ """
+ Returns the Binding needed to read RVI type properties.
+ """
+ rviBinding :: <ReadGraph> Binding a
+
+ """
+ Returns True if the given RVI is empty in which case
+ `resolvePossible rvi var` would return `Just var`.
+ """
+ @JavaName isEmpty
+ rviIsEmpty :: RVI -> Boolean
+
importJava "org.simantics.db.layer0.function.All" where
standardGetValue1 :: Variable -> <ReadGraph> a