Class VCBinding
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.VCBinding
-
@VelocityCallable("instance") @VelocityVariable("Binding") public final class VCBinding extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIxValue
getValue(String p_strBinding)
IIxValue
getValue(String p_strBinding, Object p_fallback)
String
getValueAsString(String p_strBinding)
String
getValueAsString(String p_strBinding, String p_fallback)
boolean
hasValue(String p_strBinding)
boolean
isValueAvailable(String p_strBinding)
-
-
-
Constructor Detail
-
VCBinding
public VCBinding(IBinding p_binding)
-
-
Method Detail
-
getValue
public IIxValue getValue(String p_strBinding)
- Parameters:
p_strBinding
- The binding key- Returns:
- Returns the value for the binding.
null
if no value is available for the given binding key
-
getValue
public IIxValue getValue(String p_strBinding, Object p_fallback)
- Parameters:
p_strBinding
- The binding key- Returns:
- Returns the value for the binding.
p_fallback
if no value is available for the given binding key
-
getValueAsString
public String getValueAsString(String p_strBinding)
- Parameters:
p_strBinding
- The binding key- Returns:
- Returns the string value for the binding.
null
if no value is available for the given binding key
-
getValueAsString
public String getValueAsString(String p_strBinding, String p_fallback)
- Parameters:
p_strBinding
- The binding key- Returns:
- Returns the string value for the binding.
p_fallback
if no value is available for the given binding key
-
isValueAvailable
public boolean isValueAvailable(String p_strBinding)
- Parameters:
p_strBinding
- The binding key- Returns:
- Returns
true
if a value is available and exists for the binding otherwisefalse
-
hasValue
public boolean hasValue(String p_strBinding)
- Parameters:
p_strBinding
- The binding key- Returns:
- Returns
true
if a value is available and a value exists for the binding otherwisefalse
-
-