Class VCParameter


  • @VelocityVariable("Parameter")
    @VelocityCallable("instance")
    public final class VCParameter
    extends Object
    • Constructor Detail

      • VCParameter

        public VCParameter​(IBinding p_binding)
    • Method Detail

      • has

        public boolean has​(String p_parameterName)
        Parameters:
        p_parameterName - The parameter name
        Returns:
        Returns true if a page parameter with the name exists and a value is set.
      • containsParameter

        public boolean containsParameter​(String p_parameterName)
        Parameters:
        p_parameterName - The parameter name
        Returns:
        Returns true if a page parameter with the name exists and a value is set.
      • get

        public IIxValue get​(String p_parameterName)
        Returns the parameter value.
        Parameters:
        p_parameterName - The parameter name
        Returns:
        Returns the maybe empty value of the parameter, never null.
      • get

        public IIxValue get​(String p_parameterName,
                            Object p_default)
        Returns the parameter value.
        Parameters:
        p_parameterName - The parameter name
        p_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 then null will returned otherwise IxValueFactory.create(p_default) will returned).
      • getAsString

        public String getAsString​(String p_parameterName)
        Returns the parameter value as an string. @see IIxValue.asString()
        Parameters:
        p_parameterName - The parameter name
        Returns:
        Returns the parameter value as an string or null if parameter value is not set.
      • getAsString

        public String getAsString​(String p_parameterName,
                                  String p_default)
        Returns the parameter value as an string. @see IIxValue.asString()
        Parameters:
        p_parameterName - The parameter name
        p_default - The default value
        Returns:
        Returns the parameter value as an string or the default value if the parameter value is not set.