@Override public PropertyValue currentProperty() { PropertyValue p; if (propertyType == PropertyType.UNDEFINED) { p = selector.currentProperty(propertyName); } else { p = selector.currentProperty(propertyName, propertyType); } return p; }
/** * verify that a property exists in the node. {@code property IS NOT NULL} * * @param propertyName the property to check * @param selector the selector to work with * @return true if the property is there, false otherwise. */ boolean enforcePropertyExistence(String propertyName, SelectorImpl selector) { PropertyValue p = selector.currentProperty(propertyName); if (p == null) { return false; } return true; }
@Override public PropertyValue currentProperty() { PropertyValue p; if (propertyType == PropertyType.UNDEFINED) { p = selector.currentProperty(propertyName); } else { p = selector.currentProperty(propertyName, propertyType); } return p; }
@Override public boolean evaluate() { return selector.currentProperty(propertyName) != null; }
@Override public PropertyValue currentProperty() { PropertyValue p; if (propertyType == PropertyType.UNDEFINED) { p = selector.currentProperty(propertyName); } else { p = selector.currentProperty(propertyName, propertyType); } return p; }
@Override public boolean evaluate() { return selector.currentProperty(propertyName) != null; }
public PropertyValue currentProperty() { return selector.currentProperty(propertyName); }
public PropertyValue currentProperty() { return selector.currentProperty(propertyName); }
@Override public boolean evaluate() { return selector.currentProperty(propertyName) != null; }
/** * verify that a property exists in the node. {@code property IS NOT NULL} * * @param propertyName the property to check * @param selector the selector to work with * @return true if the property is there, false otherwise. */ boolean enforcePropertyExistence(String propertyName, SelectorImpl selector) { PropertyValue p = selector.currentProperty(propertyName); if (p == null) { return false; } return true; }
public PropertyValue currentProperty() { return selector.currentProperty(propertyName); }
/** * verify that a property exists in the node. {@code property IS NOT NULL} * * @param propertyName the property to check * @param selector the selector to work with * @return true if the property is there, false otherwise. */ boolean enforcePropertyExistence(String propertyName, SelectorImpl selector) { PropertyValue p = selector.currentProperty(propertyName); if (p == null) { return false; } return true; }
@Override public boolean evaluate() { // disable evaluation if a fulltext index is used, // and because we don't know how to process native // conditions if (!(selector.getIndex() instanceof FulltextQueryIndex)) { log.warn("No full-text index was found that can process the condition " + toString()); return false; } // verify the path is readable PropertyValue p = pathExpression.currentValue(); String path = p.getValue(Type.STRING); if (selector.getTree(path) == null) { return false; } if (propertyName != null) { if (selector.currentProperty(propertyName) == null) { // property not found return false; } } // we assume the index only returns the requested entries return true; }
@Override public boolean evaluate() { // disable evaluation if a fulltext index is used, // and because we don't know how to process native // conditions if (!(selector.getIndex() instanceof FulltextQueryIndex)) { log.warn("No full-text index was found that can process the condition " + toString()); return false; } // verify the path is readable PropertyValue p = pathExpression.currentValue(); String path = p.getValue(Type.STRING); if (selector.getTree(path) == null) { return false; } if (propertyName != null) { if (selector.currentProperty(propertyName) == null) { // property not found return false; } } // we assume the index only returns the requested entries return true; }
@Override public boolean evaluate() { // disable evaluation if a fulltext index is used, // and because we don't know how to process native // conditions if (!(selector.getIndex() instanceof FulltextQueryIndex)) { log.warn("No full-text index was found that can process the condition " + toString()); return false; } // verify the path is readable PropertyValue p = pathExpression.currentValue(); String path = p.getValue(Type.STRING); if (selector.getTree(path) == null) { return false; } if (propertyName != null) { if (selector.currentProperty(propertyName) == null) { // property not found return false; } } // we assume the index only returns the requested entries return true; }
boolean isRelative = propertyName.indexOf('/') >= 0; if (!isRelative) { return selector.currentProperty(propertyName) == null;
boolean isRelative = propertyName.indexOf('/') >= 0; if (!isRelative) { return selector.currentProperty(propertyName) == null;
boolean isRelative = propertyName.indexOf('/') >= 0; if (!isRelative) { return selector.currentProperty(propertyName) == null;
PropertyValue p1 = selector1.currentProperty(property1Name); if (p1 == null) { PropertyValue p2 = selector2.currentProperty(property2Name); if (p2 == null) {
@Override public void restrict(FilterImpl f) { if (f.getSelector().equals(selector1)) { PropertyValue p2 = selector2.currentProperty(property2Name); if (p2 == null && f.isPreparing() && f.isPrepared(selector2)) { PropertyValue p1 = selector1.currentProperty(property1Name); if (p1 == null && f.isPreparing() && f.isPrepared(selector1)) {