Class AbstractValueMap

java.lang.Object
java.util.AbstractMap<String,Object>
org.hippoecm.frontend.model.map.AbstractValueMap
All Implemented Interfaces:
Map<String,Object>, org.apache.wicket.util.value.IValueMap
Direct Known Subclasses:
AbstractPluginDecorator, JcrPluginConfig

public abstract class AbstractValueMap extends AbstractMap<String,Object> implements org.apache.wicket.util.value.IValueMap
  • Constructor Details

    • AbstractValueMap

      public AbstractValueMap()
  • Method Details

    • isImmutable

      public boolean isImmutable()
      Specified by:
      isImmutable in interface org.apache.wicket.util.value.IValueMap
    • makeImmutable

      public org.apache.wicket.util.value.IValueMap makeImmutable()
      Specified by:
      makeImmutable in interface org.apache.wicket.util.value.IValueMap
    • clear

      public void clear()
      Specified by:
      clear in interface Map<String,Object>
      Overrides:
      clear in class AbstractMap<String,Object>
    • getBoolean

      public boolean getBoolean(String key) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getBoolean in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getBoolean(String)
    • getDouble

      public double getDouble(String key) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getDouble in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getDouble(String)
    • getDouble

      public double getDouble(String key, double defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getDouble in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getDouble(String, double)
    • getDuration

      public Duration getDuration(String key) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getDuration in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getDuration(String)
    • getInt

      public int getInt(String key) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getInt in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getInt(String)
    • getInt

      public int getInt(String key, int defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getInt in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getInt(String, int)
    • getLong

      public long getLong(String key) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getLong in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getLong(String)
    • getLong

      public long getLong(String key, long defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getLong in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getLong(String, long)
    • getString

      public String getString(String key, String defaultValue)
      Specified by:
      getString in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getString(String, String)
    • getString

      public String getString(String key)
      Specified by:
      getString in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getString(String)
    • getCharSequence

      public CharSequence getCharSequence(String key)
      Specified by:
      getCharSequence in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getCharSequence(String)
    • getStringArray

      public String[] getStringArray(String key)
      Specified by:
      getStringArray in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getStringArray(String)
    • getStringValue

      public org.apache.wicket.util.string.StringValue getStringValue(String key)
      Specified by:
      getStringValue in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getStringValue(String)
    • getInstant

      public Instant getInstant(String key) throws org.apache.wicket.util.string.StringValueConversionException
      Specified by:
      getInstant in interface org.apache.wicket.util.value.IValueMap
      Throws:
      org.apache.wicket.util.string.StringValueConversionException
      See Also:
      • IValueMap.getInstant(String)
    • add

      public Object add(String key, String value)
      Adds the value to this ValueMap with the given key. If the key already is in the ValueMap it will combine the values into a String array, else it will just store the value itself.
      Parameters:
      key - the key to store the value under
      value - the value that must be added/merged to the ValueMap
      Returns:
      the value itself if there was no previous value, or a String array with the combined values
    • putAll

      public void putAll(Map<? extends String,? extends Object> map)
      Specified by:
      putAll in interface Map<String,Object>
      Overrides:
      putAll in class AbstractMap<String,Object>
      See Also:
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map<String,Object>
      Overrides:
      remove in class AbstractMap<String,Object>
      See Also:
    • getKey

      public String getKey(String key)
      Specified by:
      getKey in interface org.apache.wicket.util.value.IValueMap
    • toString

      public String toString()
      Generates a String representation of this object.
      Overrides:
      toString in class AbstractMap<String,Object>
      Returns:
      String representation of this ValueMap consistent with the tag-attribute style of markup elements. For example: a="x" b="y" c="z".
    • getAsBoolean

      public Boolean getAsBoolean(String key)
      Specified by:
      getAsBoolean in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsBoolean(String)
    • getAsBoolean

      public boolean getAsBoolean(String key, boolean defaultValue)
      Specified by:
      getAsBoolean in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsBoolean(String, boolean)
    • getAsInteger

      public Integer getAsInteger(String key)
      Specified by:
      getAsInteger in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsInteger(String)
    • getAsInteger

      public int getAsInteger(String key, int defaultValue)
      Specified by:
      getAsInteger in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsInteger(String, int)
    • getAsLong

      public Long getAsLong(String key)
      Specified by:
      getAsLong in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsLong(String)
    • getAsLong

      public long getAsLong(String key, long defaultValue)
      Specified by:
      getAsLong in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsLong(String, long)
    • getAsDouble

      public Double getAsDouble(String key)
      Specified by:
      getAsDouble in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsDouble(String)
    • getAsDouble

      public double getAsDouble(String key, double defaultValue)
      Specified by:
      getAsDouble in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsDouble(String, double)
    • getAsDuration

      public Duration getAsDuration(String key)
      Specified by:
      getAsDuration in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsDuration(String)
    • getAsDuration

      public Duration getAsDuration(String key, Duration defaultValue)
      Specified by:
      getAsDuration in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsDuration(String, Duration)
    • getAsInstant

      public Instant getAsInstant(String key)
      Specified by:
      getAsInstant in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsInstant(String)
    • getAsTime

      public Instant getAsTime(String key, Instant defaultValue)
      Specified by:
      getAsTime in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsTime(String, Instant)
    • getAsEnum

      public <T extends Enum<T>> T getAsEnum(String key, Class<T> eClass)
      Specified by:
      getAsEnum in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsEnum(java.lang.String, java.lang.Class)
    • getAsEnum

      public <T extends Enum<T>> T getAsEnum(String key, T defaultValue)
      Specified by:
      getAsEnum in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsEnum(java.lang.String, java.lang.Enum)
    • getAsEnum

      public <T extends Enum<T>> T getAsEnum(String key, Class<T> eClass, T defaultValue)
      Specified by:
      getAsEnum in interface org.apache.wicket.util.value.IValueMap
      See Also:
      • IValueMap.getAsEnum(java.lang.String, java.lang.Class, java.lang.Enum)