public interface ContainerUpdateHelper<C,I>
Created: October 02 2015
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
boolean |
createMatchingTargetAlsoAdds(C pTargetContainer,
ValidatorContext<?> pContext)
Create a target item.
|
I |
createMatchingTargetItem(java.lang.Object pSourceIndexOrKey,
java.lang.Object pSourceItem,
C pTargetContainer,
ValidatorContext<?> pContext)
Create a target item.
|
C |
createTargetContainer(java.lang.String pPropertyName,
java.lang.Object pTarget,
ValidatorContext<?> pContext)
Create the target container (Collection or Map).
|
boolean |
createTargetContainerAlsoSetsAsProperty(C pTargetContainer,
ValidatorContext<?> pContext)
Whether a created target container should be set as a property.
|
static final java.lang.String CLASS_VERSION
C createTargetContainer(java.lang.String pPropertyName, java.lang.Object pTarget, ValidatorContext<?> pContext)
pPropertyName
- the target property namepTarget
- the target owning beanpContext
- the current validation context.boolean createTargetContainerAlsoSetsAsProperty(C pTargetContainer, ValidatorContext<?> pContext)
pTargetContainer
- the newly created target container.pContext
- the current validator context.I createMatchingTargetItem(java.lang.Object pSourceIndexOrKey, java.lang.Object pSourceItem, C pTargetContainer, ValidatorContext<?> pContext)
pSourceIndexOrKey
- for a collection, the current source
index. For a map, the current source key.pSourceItem
- the source item (for a collection, an item
in the source collection, for a Map, a value from the map) to
create a target equavilent ofpTargetContainer
- the target Collection or Map.boolean createMatchingTargetAlsoAdds(C pTargetContainer, ValidatorContext<?> pContext)
pSourceIndexOrKey
- the source index (for a collection)
or key (for a map) to create a target equavilent of.pSourceItem
- the source item (for a collection, an item
in the source collection, for a Map, a value from the map) to
create a target equavilent ofpTargetContainer
- the target Collection or Map.