- java.lang.Object
-
- com.legyver.utils.mapqua.mapbacked.MapBackedProperty<java.lang.String>
-
- com.legyver.utils.mapqua.mapbacked.MapBackedString
-
public class MapBackedString extends MapBackedProperty<java.lang.String>
A String variable that can be represented as a key-value pair in the POJO internal Map
-
-
Field Summary
-
Fields inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
property, sourceMap, valueIfMissing
-
-
Constructor Summary
Constructors Constructor Description MapBackedString(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedString with a certain property name.MapBackedString(java.util.Map sourceMap, java.lang.String property, java.lang.String valueIfMissing)Construct a MapBackedString with a certain property name and default value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.lang.String>queryOption()Hook that allows the field to be queryable-
Methods inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
get, set
-
-
-
-
Constructor Detail
-
MapBackedString
public MapBackedString(java.util.Map sourceMap, java.lang.String property, java.lang.String valueIfMissing)Construct a MapBackedString with a certain property name and default value- Parameters:
sourceMap- Map to store the String value inproperty- Key name of the propertyvalueIfMissing- value to set if missing
-
MapBackedString
public MapBackedString(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedString with a certain property name. The default value will be a new ArrayList.- Parameters:
sourceMap- Map to store the String value inproperty- Key name of the property
-
-
Method Detail
-
queryOption
protected java.util.Optional<java.lang.String> queryOption() throws com.legyver.core.exception.CoreExceptionHook that allows the field to be queryable- Specified by:
queryOptionin classMapBackedProperty<java.lang.String>- Returns:
- the supported query option
- Throws:
com.legyver.core.exception.CoreException- if there is a problem marshalling to/from JSON
-
-