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)
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();
- if (graph.hasValue(pair.second.getObject())) {
- Object value = graph.getValue(pair.second.getObject());
+ if (value != null) {
graph.deny(s, pred);
graph.claimLiteral(s, pred, value);
} else {
graph.deny(s,pred);
}
applied = true;
-
}
/**
return s;
}
+ public Object getCustomValue() {
+ return customValue;
+ }
+
+ public void setCustomValue(Object customValue) {
+ this.customValue = customValue;
+ }
+
}