*/
public boolean evaluate(ScoreNode[] row,
Name[] selectorNames,
EvaluationContext context)
throws IOException {
ScoreNode sn = row[getSelectorIndex(selectorNames)];
if (sn == null) {
return false;
}
SessionImpl session = context.getSession();
NodeImpl parent;
try {
parent = (NodeImpl) session.getNodeById(sn.getNodeId()).getParent();
} catch (RepositoryException e) {
return false;
}
return parent.getId().equals(getBaseNodeId(context));
}