Package org.hippoecm.frontend.model.map
Class AbstractValueMap
- Direct Known Subclasses:
AbstractPluginDecorator
,JcrPluginConfig
public abstract class AbstractValueMap
extends AbstractMap<String,Object>
implements org.apache.wicket.util.value.IValueMap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds the value to thisValueMap
with the given key.void
clear()
getAsBoolean
(String key) boolean
getAsBoolean
(String key, boolean defaultValue) getAsDouble
(String key) double
getAsDouble
(String key, double defaultValue) getAsDuration
(String key) getAsDuration
(String key, Duration defaultValue) <T extends Enum<T>>
T<T extends Enum<T>>
T<T extends Enum<T>>
TgetAsInstant
(String key) getAsInteger
(String key) int
getAsInteger
(String key, int defaultValue) long
boolean
getBoolean
(String key) getCharSequence
(String key) double
double
getDuration
(String key) getInstant
(String key) int
int
long
long
String[]
getStringArray
(String key) org.apache.wicket.util.string.StringValue
getStringValue
(String key) boolean
org.apache.wicket.util.value.IValueMap
void
toString()
Generates aString
representation of this object.Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
AbstractValueMap
public AbstractValueMap()
-
-
Method Details
-
isImmutable
public boolean isImmutable()- Specified by:
isImmutable
in interfaceorg.apache.wicket.util.value.IValueMap
-
makeImmutable
public org.apache.wicket.util.value.IValueMap makeImmutable()- Specified by:
makeImmutable
in interfaceorg.apache.wicket.util.value.IValueMap
-
clear
public void clear() -
getBoolean
public boolean getBoolean(String key) throws org.apache.wicket.util.string.StringValueConversionException - Specified by:
getBoolean
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.wicket.util.value.IValueMap
- Throws:
org.apache.wicket.util.string.StringValueConversionException
- See Also:
-
IValueMap.getDuration(String)
-
getInt
- Specified by:
getInt
in interfaceorg.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 interfaceorg.apache.wicket.util.value.IValueMap
- Throws:
org.apache.wicket.util.string.StringValueConversionException
- See Also:
-
IValueMap.getInt(String, int)
-
getLong
- Specified by:
getLong
in interfaceorg.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 interfaceorg.apache.wicket.util.value.IValueMap
- Throws:
org.apache.wicket.util.string.StringValueConversionException
- See Also:
-
IValueMap.getLong(String, long)
-
getString
- Specified by:
getString
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getString(String, String)
-
getString
- Specified by:
getString
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getString(String)
-
getCharSequence
- Specified by:
getCharSequence
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getCharSequence(String)
-
getStringArray
- Specified by:
getStringArray
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getStringArray(String)
-
getStringValue
- Specified by:
getStringValue
in interfaceorg.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 interfaceorg.apache.wicket.util.value.IValueMap
- Throws:
org.apache.wicket.util.string.StringValueConversionException
- See Also:
-
IValueMap.getInstant(String)
-
add
Adds the value to thisValueMap
with the given key. If the key already is in theValueMap
it will combine the values into aString
array, else it will just store the value itself.- Parameters:
key
- the key to store the value undervalue
- the value that must be added/merged to theValueMap
- Returns:
- the value itself if there was no previous value, or a
String
array with the combined values
-
putAll
-
remove
-
getKey
- Specified by:
getKey
in interfaceorg.apache.wicket.util.value.IValueMap
-
toString
Generates aString
representation of this object.- Overrides:
toString
in classAbstractMap<String,
Object> - Returns:
String
representation of thisValueMap
consistent with the tag-attribute style of markup elements. For example:a="x" b="y" c="z"
.
-
getAsBoolean
- Specified by:
getAsBoolean
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsBoolean(String)
-
getAsBoolean
- Specified by:
getAsBoolean
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsBoolean(String, boolean)
-
getAsInteger
- Specified by:
getAsInteger
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsInteger(String)
-
getAsInteger
- Specified by:
getAsInteger
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsInteger(String, int)
-
getAsLong
- Specified by:
getAsLong
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsLong(String)
-
getAsLong
- Specified by:
getAsLong
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsLong(String, long)
-
getAsDouble
- Specified by:
getAsDouble
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsDouble(String)
-
getAsDouble
- Specified by:
getAsDouble
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsDouble(String, double)
-
getAsDuration
- Specified by:
getAsDuration
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsDuration(String)
-
getAsDuration
- Specified by:
getAsDuration
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsDuration(String, Duration)
-
getAsInstant
- Specified by:
getAsInstant
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsInstant(String)
-
getAsTime
- Specified by:
getAsTime
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsTime(String, Instant)
-
getAsEnum
- Specified by:
getAsEnum
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsEnum(java.lang.String, java.lang.Class)
-
getAsEnum
- Specified by:
getAsEnum
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsEnum(java.lang.String, java.lang.Enum)
-
getAsEnum
- Specified by:
getAsEnum
in interfaceorg.apache.wicket.util.value.IValueMap
- See Also:
-
IValueMap.getAsEnum(java.lang.String, java.lang.Class, java.lang.Enum)
-