|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.priha.core.values.ValueFactoryImpl
public class ValueFactoryImpl
This is a session-specific holder of things.
Constructor Summary | |
---|---|
ValueFactoryImpl(SessionImpl session)
|
Method Summary | |
---|---|
javax.jcr.Value[] |
addValue(javax.jcr.Value[] orig,
javax.jcr.Value add)
Returns a new Value array with the new Value added in the last position. |
static boolean |
canConvert(ValueImpl value,
int type)
Returns true, if the given String value can be converted to the given type. |
ValueImpl |
cloneValue(ValueImpl value)
|
javax.jcr.Value[] |
cloneValues(javax.jcr.Value[] values)
Clones a value array. |
ValueImpl |
createValue(BinarySource source)
|
ValueImpl |
createValue(boolean value)
|
ValueImpl |
createValue(boolean value,
int type)
|
ValueImpl |
createValue(java.util.Calendar value)
|
ValueImpl |
createValue(double value)
|
ValueImpl |
createValue(java.io.InputStream value)
|
ValueImpl |
createValue(java.io.InputStream value,
int type)
|
ValueImpl |
createValue(long value)
|
ValueImpl |
createValue(javax.jcr.Node value)
|
ValueImpl |
createValue(QName qn,
int type)
|
ValueImpl |
createValue(java.lang.String value)
|
ValueImpl |
createValue(java.lang.String value,
int type)
|
ValueImpl |
createValue(ValueImpl value)
|
javax.jcr.Value[] |
removeValue(javax.jcr.Value[] orig,
javax.jcr.Value rem)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueFactoryImpl(SessionImpl session)
Method Detail |
---|
public ValueImpl createValue(ValueImpl value) throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public ValueImpl createValue(java.lang.String value)
createValue
in interface javax.jcr.ValueFactory
public ValueImpl createValue(long value)
createValue
in interface javax.jcr.ValueFactory
public ValueImpl createValue(double value)
createValue
in interface javax.jcr.ValueFactory
public ValueImpl createValue(boolean value)
createValue
in interface javax.jcr.ValueFactory
public ValueImpl createValue(java.util.Calendar value)
createValue
in interface javax.jcr.ValueFactory
public ValueImpl createValue(java.io.InputStream value)
createValue
in interface javax.jcr.ValueFactory
public ValueImpl createValue(javax.jcr.Node value) throws javax.jcr.RepositoryException
createValue
in interface javax.jcr.ValueFactory
javax.jcr.RepositoryException
public ValueImpl createValue(BinarySource source)
public ValueImpl createValue(boolean value, int type) throws javax.jcr.ValueFormatException
javax.jcr.ValueFormatException
public ValueImpl createValue(java.io.InputStream value, int type) throws javax.jcr.ValueFormatException
javax.jcr.ValueFormatException
public static boolean canConvert(ValueImpl value, int type)
value
- type
-
public ValueImpl createValue(java.lang.String value, int type) throws javax.jcr.ValueFormatException
createValue
in interface javax.jcr.ValueFactory
javax.jcr.ValueFormatException
public javax.jcr.Value[] cloneValues(javax.jcr.Value[] values) throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
values
- The array to clone.
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public ValueImpl cloneValue(ValueImpl value) throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public javax.jcr.Value[] addValue(javax.jcr.Value[] orig, javax.jcr.Value add)
orig
- Original Value arrayadd
- The value to be added.
public ValueImpl createValue(QName qn, int type) throws javax.jcr.ValueFormatException
javax.jcr.ValueFormatException
public javax.jcr.Value[] removeValue(javax.jcr.Value[] orig, javax.jcr.Value rem)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |