summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a3205f2)
gitlab #18
Change-Id: I2c5a7803ef7ac5f7156676fd8c3252cf38c35108
protected boolean selected = false;
protected boolean visible = true;
protected boolean enabled = true;
protected boolean selected = false;
protected boolean visible = true;
protected boolean enabled = true;
+ protected Object customValue = null;
+
public PropertyChange(GraphChanges changes, Resource left, Statement first, Resource right, Statement second) {
if (first == null && second == null)
public PropertyChange(GraphChanges changes, Resource left, Statement first, Resource right, Statement second) {
if (first == null && second == null)
return;
}
Resource s = leftSubject;
return;
}
Resource s = leftSubject;
- //Resource s = changes.getComparable().getLeft(rightSubject);
- //Resource s = pair.first.getSubject();
+ Object value = null;
+ if (customValue != null)
+ value = customValue;
+ else if (graph.hasValue(pair.second.getObject())) {
+ value = graph.getValue(pair.second.getObject());
+ }
Resource pred = pair.second.getPredicate();
Resource pred = pair.second.getPredicate();
- if (graph.hasValue(pair.second.getObject())) {
- Object value = graph.getValue(pair.second.getObject());
graph.deny(s, pred);
graph.claimLiteral(s, pred, value);
} else {
graph.deny(s,pred);
}
applied = true;
graph.deny(s, pred);
graph.claimLiteral(s, pred, value);
} else {
graph.deny(s,pred);
}
applied = true;
+ public Object getCustomValue() {
+ return customValue;
+ }
+
+ public void setCustomValue(Object customValue) {
+ this.customValue = customValue;
+ }
+