return false;
else if (getClass() != object.getClass())
return false;
- IsInstanceOfQuery other = (IsInstanceOfQuery) object;
+ IsInstanceOfQuery2 other = (IsInstanceOfQuery2) object;
return resource.equals(other.resource) && type.equals(other.type);
}
Resource indexRoot = graph.syncRequest(new PossibleVariableIndexRoot(variable));
if(indexRoot == null) return false;
- if(variable.equals(indexRoot)) return false;
+ Resource represents = variable.getPossibleRepresents(graph);
+ if(represents != null && represents.equals(indexRoot)) return false;
return isPublished(graph, indexRoot);
}
return;
int i = 0;
for (i = 0; i < session.monitorHandlers.length; i++) {
- if (h.equals(session.monitorHandlers))
+ if (h.equals(session.monitorHandlers[i]))
break;
}
if (i < session.monitorHandlers.length) {
public static boolean isSameTerminal(TerminalInfo t1, TerminalInfo t2) {
if (t1 == null || t2 == null)
return false;
- return t1.e.equals(t2.e) && t1.t.equals(t2.e);
+ return t1.e.equals(t2.e) && t1.t.equals(t2.t);
}
/**
g.claim(element, relation, value.getResource());
return true;
}
- else if(resource.equals(value))
+ else if(resource.equals(value.getResource()))
return false;
else {
if (preventChange(selement))