Class VCBinding


  • @VelocityCallable("instance")
    @VelocityVariable("Binding")
    public final class VCBinding
    extends Object
    • 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 otherwise false
      • 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 otherwise false