Package org.cristalise.kernel.utils
Class CastorHashMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Direct Known Subclasses:
WfCastorHashMap
This subclass of HashMap can be marshalled and unmarshalled with Castor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()evaluateProperty(ItemPath itemPath, String propName, String actContext, TransactionKey transactionKey) getBuiltInProperty(BuiltInEdgeProperties prop, Object defValue) getBuiltInProperty(BuiltInVertexProperties prop, Object defValue) booleanisAbstract(String propName) booleanbooleanvoidmerge(CastorHashMap newProps) Merging existing entries with these new ones.voidvoidsetBuiltInProperty(BuiltInEdgeProperties prop, Object value) voidsetBuiltInProperty(BuiltInEdgeProperties prop, Object value, boolean isAbstract) voidsetBuiltInProperty(BuiltInVertexProperties prop, Object value) voidsetBuiltInProperty(BuiltInVertexProperties prop, Object value, boolean isAbstract) voidsetKeyValuePair(KeyValuePair keyValuePair) voidsetKeyValuePairs(KeyValuePair[] keyValuePairs) Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
CastorHashMap
public CastorHashMap()
-
-
Method Details
-
getKeyValuePairs
-
setKeyValuePairs
-
clear
public void clear() -
setKeyValuePair
-
getAbstract
-
isAbstract
-
isAbstract
-
isAbstract
-
getBuiltInProperty
-
get
-
getBuiltInProperty
-
getBuiltInProperty
-
getBuiltInProperty
-
setBuiltInProperty
-
setBuiltInProperty
-
setBuiltInProperty
-
setBuiltInProperty
-
put
-
evaluateProperty
public Object evaluateProperty(ItemPath itemPath, String propName, String actContext, TransactionKey transactionKey) throws InvalidDataException, PersistencyException, ObjectNotFoundException -
merge
Merging existing entries with these new ones. New values overwrite existing ones- Parameters:
newProps- the properties to be merged
-