Class TreeMapContext

    • Field Detail

      • context

        private java.util.Map<java.lang.String,​java.lang.Object> context
    • Constructor Detail

      • TreeMapContext

        public TreeMapContext()
      • TreeMapContext

        public TreeMapContext​(Context inner)
    • Method Detail

      • internalGet

        public java.lang.Object internalGet​(java.lang.String key)
        Description copied from class: AbstractContext
        Implement to return a value from the context storage.

        The implementation of this method is required for proper operation of a Context implementation in general Velocity use.
        Specified by:
        internalGet in class AbstractContext
        Parameters:
        key - key whose associated value is to be returned
        Returns:
        object stored in the context
      • internalPut

        public java.lang.Object internalPut​(java.lang.String key,
                                            java.lang.Object value)
        Description copied from class: AbstractContext
        Implement to put a value into the context storage.

        The implementation of this method is required for proper operation of a Context implementation in general Velocity use.
        Specified by:
        internalPut in class AbstractContext
        Parameters:
        key - key with which to associate the value
        value - value to be associated with the key
        Returns:
        previously stored value if exists, or null
      • internalContainsKey

        public boolean internalContainsKey​(java.lang.String key)
        Description copied from class: AbstractContext
        Implement to determine if a key is in the storage.

        Currently, this method is not used internally by the Velocity engine.
        Specified by:
        internalContainsKey in class AbstractContext
        Parameters:
        key - key to test for existence
        Returns:
        true if found, false if not
      • internalGetKeys

        public java.lang.String[] internalGetKeys()
        Description copied from class: AbstractContext
        Implement to return an object array of key strings from your storage.

        Currently, this method is not used internally by the Velocity engine.
        Specified by:
        internalGetKeys in class AbstractContext
        Returns:
        array of keys
      • internalRemove

        public java.lang.Object internalRemove​(java.lang.String key)
        Description copied from class: AbstractContext
        Implement to remove an item from your storage.

        Currently, this method is not used internally by the Velocity engine.
        Specified by:
        internalRemove in class AbstractContext
        Parameters:
        key - key to remove
        Returns:
        object removed if exists, else null