Class ProtectedBindings

    • Constructor Detail

      • ProtectedBindings

        public ProtectedBindings​(Bindings wrapped,
                                 Set<String> protectedKeys)
    • Method Detail

      • putAll

        public void putAll​(Map<? extends String,​? extends Object> toMerge)
        Specified by:
        putAll in interface Bindings
        Specified by:
        putAll in interface Map<String,​Object>
        Overrides:
        putAll in class org.apache.sling.api.scripting.LazyBindings
      • clear

        public void clear()
        The clear operation is not supported.
        Specified by:
        clear in interface Map<String,​Object>
        Overrides:
        clear in class org.apache.sling.api.scripting.LazyBindings
      • entrySet

        @NotNull
        public @NotNull Set<Map.Entry<String,​Object>> entrySet()
        Returns a Set view of the mappings contains in this map. The Set is unmodifiable.
        Specified by:
        entrySet in interface Map<String,​Object>
        Overrides:
        entrySet in class org.apache.sling.api.scripting.LazyBindings
        Returns:
        an unmodifiable Set view of the map
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<String,​Object>
        Overrides:
        isEmpty in class org.apache.sling.api.scripting.LazyBindings
      • keySet

        @NotNull
        public @NotNull Set<String> keySet()
        Returns a Set view of the keys contained in this map. The Set is unmodifiable.
        Specified by:
        keySet in interface Map<String,​Object>
        Overrides:
        keySet in class org.apache.sling.api.scripting.LazyBindings
        Returns:
        an unmodifiable Set view of the map's keys
      • size

        public int size()
        Specified by:
        size in interface Map<String,​Object>
        Overrides:
        size in class org.apache.sling.api.scripting.LazyBindings
      • values

        @NotNull
        public @NotNull Collection<Object> values()
        Returns a Collection view of the values contained in this map. The Collection is unmodifiable.
        Specified by:
        values in interface Map<String,​Object>
        Overrides:
        values in class org.apache.sling.api.scripting.LazyBindings
        Returns:
        an unmodifiable Collection view of the map's values
      • get

        public Object get​(Object key)
        Specified by:
        get in interface Bindings
        Specified by:
        get in interface Map<String,​Object>
        Overrides:
        get in class org.apache.sling.api.scripting.LazyBindings