Class UiListModifiable<D extends DtObject>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<UiObject<D>>
-
- io.vertigo.vega.engines.webservice.json.AbstractUiListModifiable<D>
-
- io.vertigo.vega.engines.webservice.json.UiListModifiable<D>
-
- Type Parameters:
D
- Object type
- All Implemented Interfaces:
UiList<D>
,Serializable
,Iterable<UiObject<D>>
,Collection<UiObject<D>>
,List<UiObject<D>>
public final class UiListModifiable<D extends DtObject> extends AbstractUiListModifiable<D>
Delta operations on List.- Author:
- npiedeloup (16 sept. 2014 18:13:55)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UiListModifiable(Class<D> objectType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkFormat(UiMessageStack uiMessageStack)
Vérifie les UiObjects de la liste et remplis la pile d'erreur.protected UiObject<D>
createUiObject(D dto)
boolean
equals(Object o)
int
hashCode()
DtList<D>
mergeAndCheckInput(List<DtObjectValidator<D>> dtObjectValidators, UiMessageStack uiMessageStack)
Merged and validate input data and set error into message stack.-
Methods inherited from class io.vertigo.vega.engines.webservice.json.AbstractUiListModifiable
add, add, get, getDtDefinition, getDtListDelta, getObjectType, indexOf, iterator, remove, remove, size, toContextKey
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, lastIndexOf, listIterator, listIterator, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, isEmpty, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
checkFormat
public boolean checkFormat(UiMessageStack uiMessageStack)
Description copied from class:AbstractUiListModifiable
Vérifie les UiObjects de la liste et remplis la pile d'erreur.- Specified by:
checkFormat
in interfaceUiList<D extends DtObject>
- Overrides:
checkFormat
in classAbstractUiListModifiable<D extends DtObject>
- Parameters:
uiMessageStack
- Pile des messages qui sera mise à jour- Returns:
- if the object is valid (no format errors) if it's not valid you must not call mergeAndCheckInput
-
mergeAndCheckInput
public DtList<D> mergeAndCheckInput(List<DtObjectValidator<D>> dtObjectValidators, UiMessageStack uiMessageStack)
Merged and validate input data and set error into message stack.- Specified by:
mergeAndCheckInput
in interfaceUiList<D extends DtObject>
- Overrides:
mergeAndCheckInput
in classAbstractUiListModifiable<D extends DtObject>
- Parameters:
dtObjectValidators
- Used validators, may depends on object type.uiMessageStack
- Message stack to update- Returns:
- Updated and validated business object
-
equals
public boolean equals(Object o)
Description copied from class:AbstractUiListModifiable
-
hashCode
public int hashCode()
Description copied from class:AbstractUiListModifiable
-
createUiObject
protected UiObject<D> createUiObject(D dto)
- Specified by:
createUiObject
in classAbstractUiListModifiable<D extends DtObject>
-
-