protected boolean applies( ReferenceValue operand ) { if (matchesSelectorName(operand.getSelectorName())) { // The selected node type matches or is a subtype of the indexed node type ... String refPropName = operand.getPropertyName(); if (refPropName != null) { // The constraint applies to a specific reference property ... return isReferenceIndex(refPropName); } // Otherwise, the constraint applies to any reference property ... return isReferenceIndex(); } return false; }
protected boolean applies( ReferenceValue operand ) { if (matchesSelectorName(operand.getSelectorName())) { // The selected node type matches or is a subtype of the indexed node type ... String refPropName = operand.getPropertyName(); if (refPropName != null) { // The constraint applies to a specific reference property ... return isReferenceIndex(refPropName); } // Otherwise, the constraint applies to any reference property ... return isReferenceIndex(); } return false; }