Class ComplexValue
java.lang.Object
ru.cg.webbpm.studio.subsystems.script_editor.serialization.api.bean.ComplexValue
- All Implemented Interfaces:
Map<String,
PropertyValue>
Map decorator that allows for setting simple values, dealing with property metadata
- Author:
- krylov
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionComplexValue
(Map<String, PropertyValue> values, ClassMetadata metadata, PropertyValue valueOwner) ComplexValue
(ComplexValue other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) boolean
deepEquals
(Object o) entrySet()
boolean
getAsArray
(String key) Returns array value wrapper under the given key, creating it and converting type if neededgetAsComplex
(String key) Returns complex value wrapper under the given key, creating it and converting type if neededgetOrEmpty
(String key) getOrEmpty
(FieldMetadata field) <T> T
int
hashCode()
inherit()
boolean
isEmpty()
keySet()
put
(String key, PropertyValue value) <T> PropertyValue
void
putAll
(Map<? extends String, ? extends PropertyValue> m) void
putAsIs
(String key, PropertyValue propertyValue) void
putAsIsIfAbsent
(String key, PropertyValue propertyValue) int
size()
toString()
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ComplexValue
public ComplexValue(Map<String, PropertyValue> values, ClassMetadata metadata, PropertyValue valueOwner) -
ComplexValue
-
-
Method Details
-
inherit
-
get
- Specified by:
get
in interfaceMap<String,
PropertyValue>
-
getOrEmpty
-
getOrEmpty
-
getAsArray
Returns array value wrapper under the given key, creating it and converting type if needed- Parameters:
key
- - the key to return the array by- Returns:
- Property value array from String
-
getAsComplex
Returns complex value wrapper under the given key, creating it and converting type if needed- Parameters:
key
- - the key to return the array by- Returns:
- Property value complex from String
-
put
- Specified by:
put
in interfaceMap<String,
PropertyValue>
-
put
-
getSimple
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
PropertyValue>
-
remove
- Specified by:
remove
in interfaceMap<String,
PropertyValue>
-
entrySet
- Specified by:
entrySet
in interfaceMap<String,
PropertyValue>
-
keySet
- Specified by:
keySet
in interfaceMap<String,
PropertyValue>
-
size
public int size()- Specified by:
size
in interfaceMap<String,
PropertyValue>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<String,
PropertyValue>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
PropertyValue>
-
putAll
- Specified by:
putAll
in interfaceMap<String,
PropertyValue>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<String,
PropertyValue>
-
values
- Specified by:
values
in interfaceMap<String,
PropertyValue>
-
equals
-
deepEquals
-
hashCode
public int hashCode() -
toString
-
putAsIs
-
putAsIsIfAbsent
-
getValueOwner
-