Class VCParameter
java.lang.Object
de.uplanet.lucy.server.auxiliaries.VCParameter
@VelocityVariable("Parameter")
@VelocityCallable("instance")
public final class VCParameter
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsParameter
(String p_parameterName) Returns the parameter value.Returns the parameter value.getAsString
(String p_parameterName) Returns the parameter value as an string.getAsString
(String p_parameterName, String p_default) Returns the parameter value as an string.boolean
-
Constructor Details
-
VCParameter
public VCParameter(de.uplanet.lucy.server.binding.IBinding p_binding)
-
-
Method Details
-
has
- Parameters:
p_parameterName
- The parameter name- Returns:
- Returns
true
if a page parameter with the name exists and a value is set.
-
containsParameter
- Parameters:
p_parameterName
- The parameter name- Returns:
- Returns
true
if a page parameter with the name exists and a value is set.
-
get
Returns the parameter value.- Parameters:
p_parameterName
- The parameter name- Returns:
- Returns the maybe empty value of the parameter, never
null
.
-
get
Returns the parameter value.- Parameters:
p_parameterName
- The parameter namep_default
- The default value, returned if parameter value has no value.- Returns:
- Returns the value of the parameter. If no parameter value found the default value will returned.
(if defaultValue is
null
thennull
will returned otherwiseIxValueFactory.create(p_default)
will returned).
-
getAsString
Returns the parameter value as an string. @seeIIxValue.asString()
- Parameters:
p_parameterName
- The parameter name- Returns:
- Returns the parameter value as an string or
null
if parameter value is not set.
-
getAsString
Returns the parameter value as an string. @seeIIxValue.asString()
- Parameters:
p_parameterName
- The parameter namep_default
- The default value- Returns:
- Returns the parameter value as an string or the default value if the parameter value is not set.
-