/** * Get the property value. The property name may be relative. The special * property names "jcr:path", "jcr:score" and "rep:excerpt" are supported. * * @param oakPropertyName (must already be normalized) * @return the property value or null if not found */ public PropertyValue currentOakProperty(String oakPropertyName) { return currentOakProperty(oakPropertyName, null); }
/** * Get the property value. The property name may be relative. The special * property names "jcr:path", "jcr:score" and "rep:excerpt" are supported. * * @param oakPropertyName (must already be normalized) * @return the property value or null if not found */ public PropertyValue currentOakProperty(String oakPropertyName) { return currentOakProperty(oakPropertyName, null); }
/** * Get the property value. The property name may be relative. The special * property names "jcr:path", "jcr:score" and "rep:excerpt" are supported. * * @param oakPropertyName (must already be normalized) * @return the property value or null if not found */ public PropertyValue currentOakProperty(String oakPropertyName) { return currentOakProperty(oakPropertyName, null); }
@Override public PropertyValue currentProperty() { PropertyValue p = selector.currentOakProperty(QueryConstants.JCR_SCORE); if (p == null) { // TODO if score() is not supported by the index, use the value 0.0? return PropertyValues.newDouble(0.0); } return p; }
/** * The value for the given selector for the current node, filtered by * property type. * * @param propertyName the JCR (not normalized) property name * @param propertyType only include properties of this type * @return the property value (possibly null) */ public PropertyValue currentProperty(String propertyName, int propertyType) { String pn = normalizePropertyName(propertyName); return currentOakProperty(pn, propertyType); }
/** * The value for the given selector for the current node. * * @param propertyName the JCR (not normalized) property name * @return the property value */ public PropertyValue currentProperty(String propertyName) { String pn = normalizePropertyName(propertyName); return currentOakProperty(pn); }
@Override public PropertyValue currentProperty() { PropertyValue p = selector.currentOakProperty(QueryConstants.JCR_SCORE); if (p == null) { // TODO if score() is not supported by the index, use the value 0.0? return PropertyValues.newDouble(0.0); } return p; }
/** * The value for the given selector for the current node. * * @param propertyName the JCR (not normalized) property name * @return the property value */ public PropertyValue currentProperty(String propertyName) { String pn = normalizePropertyName(propertyName); return currentOakProperty(pn); }
@Override public PropertyValue currentProperty() { PropertyValue p = selector.currentOakProperty(QueryConstants.JCR_SCORE); if (p == null) { // TODO if score() is not supported by the index, use the value 0.0? return PropertyValues.newDouble(0.0); } return p; }
/** * The value for the given selector for the current node. * * @param propertyName the JCR (not normalized) property name * @return the property value */ public PropertyValue currentProperty(String propertyName) { String pn = normalizePropertyName(propertyName); return currentOakProperty(pn); }
/** * The value for the given selector for the current node, filtered by * property type. * * @param propertyName the JCR (not normalized) property name * @param propertyType only include properties of this type * @return the property value (possibly null) */ public PropertyValue currentProperty(String propertyName, int propertyType) { String pn = normalizePropertyName(propertyName); return currentOakProperty(pn, propertyType); }
/** * The value for the given selector for the current node, filtered by * property type. * * @param propertyName the JCR (not normalized) property name * @param propertyType only include properties of this type * @return the property value (possibly null) */ public PropertyValue currentProperty(String propertyName, int propertyType) { String pn = normalizePropertyName(propertyName); return currentOakProperty(pn, propertyType); }
@Override public PropertyValue currentProperty() { return this.getSelector().currentOakProperty(getPropertyName()); }
@Override public PropertyValue currentProperty() { return this.getSelector().currentOakProperty(getPropertyName()); }
@Override public PropertyValue currentProperty() { return this.getSelector().currentOakProperty(getPropertyName()); }
PropertyValue value = currentOakProperty(t, oakPropertyName, propertyType); if (value != null) { LOG.trace("readOakProperties() - adding: '{}' from '{}'", value, t.getPath());
PropertyValue value = currentOakProperty(t, oakPropertyName, propertyType); if (value != null) { LOG.trace("readOakProperties() - adding: '{}' from '{}'", value, t.getPath());
PropertyValue value = currentOakProperty(t, oakPropertyName, propertyType); if (value != null) { LOG.trace("readOakProperties() - adding: '{}' from '{}'", value, t.getPath());
return currentOakProperty(t, oakPropertyName, propertyType);
return currentOakProperty(t, oakPropertyName, propertyType);