Class ValueHolderFactory
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ValueHolderFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic de.uplanet.lucy.server.dataobjects.impl.NowValueHolder
Get a value holder, that holds the current date and time.static de.uplanet.lucy.server.dataobjects.IValueHolder<?>
getStringValueHolder
(Object p_val) Get a value holder that wraps the given object value.static de.uplanet.lucy.server.dataobjects.IValueHolder<?>
getValueHolder
(Object p_value) Get a value holder that wraps the given value.static de.uplanet.lucy.server.dataobjects.IValueHolder<?>
getValueHolder
(String p_strValue, String p_strNamespaceURI, String p_strLocalPart) Get a value holder that wraps a parsed XML Schema type.static de.uplanet.lucy.server.dataobjects.IValueHolder<?>
getVH
(float p_fVal) Get a value holder that wraps the given float value.static de.uplanet.lucy.server.dataobjects.IValueHolder<?>
getVH
(int p_iVal) Get a value holder that wraps the given int value.static de.uplanet.lucy.server.dataobjects.IValueHolder<?>
Get a value holder that wraps the given value.
-
Constructor Details
-
ValueHolderFactory
public ValueHolderFactory()
-
-
Method Details
-
getValueHolder
Get a value holder that wraps the given value.- Parameters:
p_value
- The value to be wrapped in aIValueHolder
.- Returns:
- The wrapped value, or
null
if the value could not be wrapped in a value holder.
-
getStringValueHolder
Get a value holder that wraps the given object value.- Parameters:
p_val
- The value to be wrapped in aIValueHolder
.- Returns:
- The wrapped value, or
null
if the value could not be wrapped in a value holder.
-
getVH
Get a value holder that wraps the given value.- Parameters:
p_value
- The value to be wrapped in aIValueHolder
.- Returns:
- The wrapped value, or
null
if the value could not be wrapped in a value holder.
-
getVH
public static de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVH(int p_iVal) Get a value holder that wraps the given int value.- Parameters:
p_iVal
- The value to be wrapped in aIValueHolder
.- Returns:
- The wrapped value, or
null
if the value could not be wrapped in a value holder.
-
getVH
public static de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVH(float p_fVal) Get a value holder that wraps the given float value.- Parameters:
p_fVal
- The value to be wrapped in aIValueHolder
.- Returns:
- The wrapped value, or
null
if the value could not be wrapped in a value holder.
-
getValueHolder
public static de.uplanet.lucy.server.dataobjects.IValueHolder<?> getValueHolder(String p_strValue, String p_strNamespaceURI, String p_strLocalPart) Get a value holder that wraps a parsed XML Schema type.- Parameters:
p_strValue
- The value as a string.p_strNamespaceURI
- The URI of the namespace the type belongs to. Must behttp://www.w3.org/2001/XMLSchema
.p_strLocalPart
- The local part of the type name.- Returns:
- The wrapped value.
- Throws:
IllegalArgumentException
- - If the given namespace URI does not matchhttp://www.w3.org/2001/XMLSchema
;
-
getNowValueHolder
public static de.uplanet.lucy.server.dataobjects.impl.NowValueHolder getNowValueHolder()Get a value holder, that holds the current date and time.
-