createValue(String value, int type) Returns a Value object of the
PropertyType specified by type
with the specified value.
A ValueFormatException is thrown if the specified value cannot
be converted to the specifed type.
Parameters: value - a String Parameters: type - one of the constants defined in PropertyType.
Returns a Binary object with a value consisting of the
content of the specified InputStream.
The passed InputStream is closed before this method returns either
normally or because of an exception.
Throws a RepositoryException if an error occurs.
Parameters: stream - an InputStream a Binary throws: RepositoryException - if an error occurs. since: JCR 2.0
Returns a Value object of the
PropertyType specified by type
with the specified value.
A ValueFormatException is thrown if the specified value cannot
be converted to the specifed type.
Parameters: value - a String Parameters: type - one of the constants defined in PropertyType. a Value of PropertyTypetype. throws: ValueFormatException - if the specified value cannotbe converted to the specified type.
Returns a Value object of PropertyType.BINARY
with a value consisting of the content of the specified InputStream.
The passed InputStream is closed before this method returns either
normally or because of an exception.
Throws a RepositoryException if an error occurs.
ValueFactory.createValue(Binary) Parameters: value - an InputStream a Value of PropertyType.BINARY throws: RepositoryException - if an error occurs.
Returns a Value object of PropertyType.BINARY
with a value consisting of the content of the specified Binary.
Parameters: value - a Binary a Value of PropertyType.BINARY since: JCR 2.0
Returns a Value object of
PropertyType.REFERENCE that holds the identifier of the specified Node. This Value
object can then be used to set a property that will be a reference to that
Node.
A RepositoryException is thrown if the specified Node
is not referenceable, the current Session is no longer active, or another
error occurs.
Parameters: value - a Node a Value of PropertyType.REFERENCE throws: RepositoryException - if the specified Nodeis not referencable, the current Session is no longer active, or anothererror occurs.