|
|||||||||
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 | |
---|---|
Value[] |
addValue(Value[] orig,
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)
|
Value[] |
cloneValues(Value[] values)
Clones a value array. |
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(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)
|
Value[] |
removeValue(Value[] orig,
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 ValueFormatException, java.lang.IllegalStateException, RepositoryException
ValueFormatException
java.lang.IllegalStateException
RepositoryException
public ValueImpl createValue(java.lang.String value)
public ValueImpl createValue(long value)
public ValueImpl createValue(double value)
public ValueImpl createValue(boolean value)
public ValueImpl createValue(java.util.Calendar value)
public ValueImpl createValue(java.io.InputStream value)
public ValueImpl createValue(Node value) throws RepositoryException
RepositoryException
public ValueImpl createValue(boolean value, int type) throws ValueFormatException
ValueFormatException
public ValueImpl createValue(java.io.InputStream value, int type) throws ValueFormatException
ValueFormatException
public static boolean canConvert(ValueImpl value, int type)
value
- type
-
public ValueImpl createValue(java.lang.String value, int type) throws ValueFormatException
ValueFormatException
public Value[] cloneValues(Value[] values) throws ValueFormatException, java.lang.IllegalStateException, RepositoryException
values
- The array to clone.
ValueFormatException
java.lang.IllegalStateException
RepositoryException
public ValueImpl cloneValue(ValueImpl value) throws ValueFormatException, java.lang.IllegalStateException, RepositoryException
ValueFormatException
java.lang.IllegalStateException
RepositoryException
public Value[] addValue(Value[] orig, Value add)
orig
- Original Value arrayadd
- The value to be added.
public ValueImpl createValue(QName qn, int type) throws ValueFormatException
ValueFormatException
public Value[] removeValue(Value[] orig, Value rem)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |