Interface ObjectModelCreation
- All Known Implementing Classes:
ObjectModel
public interface ObjectModelCreation
This interface used by External Flow data contract mapping to fill an intermediate model with data which is
transferred between a Host and Target service.
-
Method Summary
Modifier and TypeMethodDescriptioncreateArray(String key) A function that creates aArrayModelCreationand put is in the currentObjectModelCreationunder the provided key.createObject(String key) A function that creates aObjectModelCreationand put is in the currentObjectModelCreationunder the provided key.voidvoidvoidvoidputIfAbsent(String key, boolean value) voidputIfAbsent(String key, int value) voidputIfAbsent(String key, String value) voidputIfAbsent(String key, Consumer<ObjectModelCreation> objectModelConsumer) A function that creates aObjectModelCreationand put is in the currentObjectModelCreationunder the provided key when it isn't already set.voidvoidputNullIfAbsent(String key)
-
Method Details
-
put
-
put
-
put
-
putNull
-
putIfAbsent
-
putIfAbsent
-
putIfAbsent
-
putIfAbsent
A function that creates aObjectModelCreationand put is in the currentObjectModelCreationunder the provided key when it isn't already set. The createdObjectModelCreationcan be used to provide data for a nested Object. The consumption will only happen if the key is not already set.- Parameters:
key- key to store the object model under.objectModelConsumer- aConsumerto fills the providedObjectModelCreationwith data.
-
putNullIfAbsent
-
createArray
A function that creates aArrayModelCreationand put is in the currentObjectModelCreationunder the provided key.- Parameters:
key- key to store the array model under.- Returns:
- the array model.
-
createObject
A function that creates aObjectModelCreationand put is in the currentObjectModelCreationunder the provided key.- Parameters:
key- key to store the object model under.- Returns:
- the array model.
-