/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given date value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value date value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, Calendar value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given string value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value string value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, String value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given double value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value double value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, double value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given string value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value string value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, String value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given reference value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value reference value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, Node value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given boolean value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value boolean value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, boolean value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given binary value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value binary value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, InputStream value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given binary value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value binary value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, InputStream value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given reference value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value reference value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, Node value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given boolean value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value boolean value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, boolean value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given binary value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value binary value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, InputStream value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given long value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value long value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, long value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given reference value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value reference value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, Node value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given double value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value double value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, double value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given long value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value long value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, long value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given string value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value string value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, String value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given long value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value long value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, long value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance from * the given string value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value string value * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, String value) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instance of the * given type from the given string value and forwards the call to the * {@link Node#setProperty(String, Value)} method. * * @param name property name * @param value string value * @param type property type * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, String value, int type) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); return setProperty(name, factory.createValue(value, type)); }
/** * Sets the value of the named property. * <p> * The default implementation uses the {@link ValueFactory} of the * current {@link Session} to create a {@link Value} instances from * the given string values and forwards the call to the * {@link Node#setProperty(String, Value[])} method. * * @param name property name * @param strings string values * @return modified property * @throws RepositoryException if an error occurs */ public Property setProperty(String name, String[] strings) throws RepositoryException { ValueFactory factory = getSession().getValueFactory(); Value[] values = new Value[strings.length]; for (int i = 0; i < strings.length; i++) { values[i] = factory.createValue(strings[i]); } return setProperty(name, values); }