@Override public int hashCode() { if (hashCode == 0) { hashCode = Objects.hashCode(definition, property, PropertyValues.create(property)); } return hashCode; }
@Override public int hashCode() { if (hashCode == 0) { hashCode = Objects.hashCode(definition, property, PropertyValues.create(property)); } return hashCode; }
Value createValue(PropertyValue value) { if (value == null) { return null; } PropertyState state = PropertyValues.create(value); if (state == null) { throw new IllegalArgumentException("Failed to convert the specified property value to a property state."); } return valueFactory.createValue(state); }
private static Map<String, PropertyValue> convertMap( HashMap<String, Value> bindVariableMap) throws RepositoryException { HashMap<String, PropertyValue> map = new HashMap<String, PropertyValue>(); for (Entry<String, Value> e : bindVariableMap.entrySet()) { map.put(e.getKey(), PropertyValues.create(PropertyStates.createProperty("", e.getValue()))); } return map; }
private static Map<String, PropertyValue> convertMap( HashMap<String, Value> bindVariableMap) throws RepositoryException { HashMap<String, PropertyValue> map = new HashMap<String, PropertyValue>(); for (Entry<String, Value> e : bindVariableMap.entrySet()) { map.put(e.getKey(), PropertyValues.create(PropertyStates.createProperty("", e.getValue()))); } return map; }
private static Map<String, PropertyValue> convertMap( HashMap<String, Value> bindVariableMap) throws RepositoryException { HashMap<String, PropertyValue> map = new HashMap<String, PropertyValue>(); for (Entry<String, Value> e : bindVariableMap.entrySet()) { map.put(e.getKey(), PropertyValues.create(PropertyStates.createProperty("", e.getValue()))); } return map; }
Value createValue(PropertyValue value) { if (value == null) { return null; } PropertyState state = PropertyValues.create(value); if (state == null) { throw new IllegalArgumentException("Failed to convert the specified property value to a property state."); } return valueFactory.createValue(state); }
private String resolveUUID(PropertyState uuid) { return resolveUUID(PropertyValues.create(uuid)); }
private String resolveUUID(PropertyState uuid) { return resolveUUID(PropertyValues.create(uuid)); }
private String resolveUUID(PropertyState uuid) { return resolveUUID(PropertyValues.create(uuid)); }
/** * Utility method for creating a {@code Value} based on a {@code PropertyValue}. * @param property The property value * @param namePathMapper The name/path mapping used for converting JCR names/paths to * the internal representation. * @return New {@code Value} instance * @throws IllegalArgumentException if {@code property.isArray()} is {@code true}. */ @Nonnull public static Value createValue(@Nonnull PropertyValue property, @Nonnull NamePathMapper namePathMapper) { PropertyState ps = PropertyValues.create(property); if (ps == null) { throw new IllegalArgumentException("Failed to convert the specified property value to a property state."); } return newValue(ps, namePathMapper); }
/** * Utility method for creating a {@code Value} based on a * {@code PropertyValue}. The {@link Value} instance created by this factory * method will not be backed with a {@link BlobAccessProvider} and the * {@link Binary} retrieved from the {@link Value} does not provide a * download URI, even if the underlying blob store supports it. * * Utility method for creating a {@code Value} based on a {@code PropertyValue}. * @param property The property value * @param namePathMapper The name/path mapping used for converting JCR names/paths to * the internal representation. * @return New {@code Value} instance * @throws IllegalArgumentException if {@code property.isArray()} is {@code true}. * @deprecated use {@link PartialValueFactory#createValue(PropertyState)} instead. */ @Deprecated @NotNull public static Value createValue(@NotNull PropertyValue property, @NotNull NamePathMapper namePathMapper) { PropertyState ps = PropertyValues.create(property); if (ps == null) { throw new IllegalArgumentException("Failed to convert the specified property value to a property state."); } return new PartialValueFactory(namePathMapper).createValue(ps); }
private static Set<String> getValueKeys(PropertyState property, ValuePattern pattern) { Set<String> keys = new HashSet<>(); if (property != null && property.getType().tag() != PropertyType.BINARY && property.count() != 0) { keys.addAll(encode(PropertyValues.create(property), pattern)); } return keys; } }
private static Set<String> getValueKeys(PropertyState property, ValuePattern pattern) { Set<String> keys = new HashSet<>(); if (property != null && property.getType().tag() != PropertyType.BINARY && property.count() != 0) { keys.addAll(encode(PropertyValues.create(property), pattern)); } return keys; } }
/** * Adds the encoded values of the given property to the given set. * If the given set is uninitialized, i.e. {@code null}, then a new * set is created for any values to be added. The set, possibly newly * initialized, is returned. * * @param keys set of encoded values, or {@code null} * @param property property whose values are to be added to the set * @return set of encoded values, possibly initialized */ private static Set<String> addValueKeys( Set<String> keys, PropertyState property, ValuePattern pattern) { if (property.getType().tag() != PropertyType.BINARY && property.count() > 0) { if (keys == null) { keys = newHashSet(); } keys.addAll(encode(PropertyValues.create(property), pattern)); } return keys; }
/** * Adds the encoded values of the given property to the given set. * If the given set is uninitialized, i.e. {@code null}, then a new * set is created for any values to be added. The set, possibly newly * initialized, is returned. * * @param keys set of encoded values, or {@code null} * @param property property whose values are to be added to the set * @return set of encoded values, possibly initialized */ private static Set<String> addValueKeys( Set<String> keys, PropertyState property, ValuePattern pattern) { if (property.getType().tag() != PropertyType.BINARY && property.count() > 0) { if (keys == null) { keys = newHashSet(); } keys.addAll(encode(PropertyValues.create(property), pattern)); } return keys; }
/** * Adds the encoded values of the given property to the given set. * If the given set is uninitialized, i.e. {@code null}, then a new * set is created for any values to be added. The set, possibly newly * initialized, is returned. * * @param keys set of encoded values, or {@code null} * @param property property whose values are to be added to the set * @return set of encoded values, possibly initialized */ private static Set<String> addValueKeys( Set<String> keys, PropertyState property, ValuePattern pattern) { if (property.getType().tag() != PropertyType.BINARY && property.count() > 0) { if (keys == null) { keys = newHashSet(); } keys.addAll(encode(PropertyValues.create(property), pattern)); } return keys; }
result = currentRow.getValue(oakPropertyName); } else { result = PropertyValues.create(t.getProperty(oakPropertyName));
result = currentRow.getValue(oakPropertyName); } else { result = PropertyValues.create(t.getProperty(oakPropertyName));
result = currentRow.getValue(oakPropertyName); } else { result = PropertyValues.create(t.getProperty(oakPropertyName));