|
ModeShape Distribution 3.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueFactory
Extension of the standard ValueFactory
which allows conversion to the jcr Value
from additional
types.
Method Summary | |
---|---|
Binary |
createBinary(byte[] value)
Creates a JCR Binary value from the given byte array. |
Binary |
createBinary(InputStream value,
String hint)
Creates a JCR Binary value from the given input stream
with a hint to the factory (which is passed to the storage layer) |
String |
createName(String localName)
Creates a JCR compliant name string, from the given local name. |
String |
createName(String namespaceUri,
String localName)
Creates a JCR compliant name string, from the given namespace uri and local name. |
Value |
createSimpleReference(Node node)
Returns a Value object of PropertyType.SIMPLE_REFERENCE that holds the identifier of the specified Node . |
Value |
createValue(Date value)
Creates a JCR compatible Value from a Date instance. |
Methods inherited from interface javax.jcr.ValueFactory |
---|
createBinary, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue |
Method Detail |
---|
Value createValue(Date value) throws ValueFormatException
Value
from a Date
instance.
value
- a non-null date instance
ValueFormatException
- if the given value cannot be convertedBinary createBinary(byte[] value)
Binary
value from the given byte array.
value
- a non-null byte array
Binary createBinary(InputStream value, String hint)
Binary
value from the given input stream
with a hint to the factory (which is passed to the storage layer)
value
- a non-null input streamhint
- a hint that the storage layer may use to make persistence decisions
String createName(String localName)
localName
- a non-null string.
String createName(String namespaceUri, String localName)
namespaceUri
- a non-null string.localName
- a non-null string.
Value createSimpleReference(Node node) throws RepositoryException
Value
object of PropertyType.SIMPLE_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
.
node
- a Node
Value
of PropertyType.SIMPLE_REFERENCE
RepositoryException
- if an error occurs.
|
ModeShape Distribution 3.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |