Class ParamsContextObject


  • public class ParamsContextObject
    extends java.lang.Object
    This is the velocity context object, that represents param substitution by one or many placeholders.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParamsContextObject​(java.lang.String placeholder, java.lang.String separator, java.util.Map<java.lang.String,​java.lang.Integer> multiplicity)  
      ParamsContextObject​(java.util.Map<java.lang.String,​java.lang.Integer> multiplicity)
      using defaults, separator ',' substitute '?'
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String key)
      getter for Velocity stores requested key
      java.lang.String getPlaceholder()
      getter
      java.util.List<java.lang.String> getRequestedKeys()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParamsContextObject

        public ParamsContextObject​(java.util.Map<java.lang.String,​java.lang.Integer> multiplicity)
        using defaults, separator ',' substitute '?'
      • ParamsContextObject

        public ParamsContextObject​(java.lang.String placeholder,
                                   java.lang.String separator,
                                   java.util.Map<java.lang.String,​java.lang.Integer> multiplicity)
        Parameters:
        placeholder - another substitute instead of default '?'
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.String key)
        getter for Velocity stores requested key
        Returns:
        constant placeholder, or separated lists of those
      • getRequestedKeys

        public java.util.List<java.lang.String> getRequestedKeys()
        Returns:
        List of keys requested keys
      • getPlaceholder

        public java.lang.String getPlaceholder()
        getter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        placeholder and requestedKeys as one String