Class ModifiableMappedValueMapDecorator

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​java.lang.Object>, ModifiableValueMap, ValueMap

    public class ModifiableMappedValueMapDecorator
    extends ModifiableValueMapDecorator
    A value map wrapper which implements mapping of certain property names.

    By default the following properties are mapped.

    • jcr:title to dc:title
    • jcr:description to dc:description
    • jcr:language to dc:language
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      • Fields inherited from interface

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
      java.lang.Object get​(java.lang.Object key)
      java.util.Set<java.lang.String> keySet()
      static java.lang.String mapProperty​(java.lang.String unmappedName)
      Returns the unmapped property name for the provided unmappedName.
      java.lang.Object put​(java.lang.String key, java.lang.Object value)
      void putAll​(java.util.Map<? extends java.lang.String,​?> t)
      static java.lang.String unmapProperty​(java.lang.String mappedName)
      Returns the unmapped property name for the provided mappedName.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from interface

        get, get
    • Constructor Detail

      • ModifiableMappedValueMapDecorator

        public ModifiableMappedValueMapDecorator​(java.util.Map<java.lang.String,​java.lang.Object> base)
        Creates a new wrapper around a given map.
        base - Wrapped object
      • ModifiableMappedValueMapDecorator

        public ModifiableMappedValueMapDecorator​(ValueMap base)
        Creates a new wrapper around a given map.
        base - Wrapped object
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.String,​java.lang.Object>
        get in class ValueMapDecorator
      • put

        public java.lang.Object put​(java.lang.String key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map<java.lang.String,​java.lang.Object>
        put in class ValueMapDecorator
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.String,​?> t)
        Specified by:
        putAll in interface java.util.Map<java.lang.String,​java.lang.Object>
        putAll in class ValueMapDecorator
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​java.lang.Object>
        containsKey in class ValueMapDecorator
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.String,​java.lang.Object>
        keySet in class ValueMapDecorator
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.Object>
        entrySet in class ValueMapDecorator
      • mapProperty

        public static java.lang.String mapProperty​(java.lang.String unmappedName)
        Returns the unmapped property name for the provided unmappedName. The implementation of this method maps the properties jcr:title,jcr:description,jcr:language to dc:title,dc:description,dc:language.
        unmappedName - Unmapped property name
        Mapped property name
      • unmapProperty

        public static java.lang.String unmapProperty​(java.lang.String mappedName)
        Returns the unmapped property name for the provided mappedName. The implementation of this method maps the properties dc:title,dc:description,dc:language to jcr:title,jcr:description,jcr:language.
        mappedName - Mapped property name
        Unmapped property name