Package org.openflexo.pamela.factory
Class DefaultMultiplePropertyImplementation<I,T>
- java.lang.Object
-
- org.openflexo.pamela.factory.AbstractPropertyImplementation<I,java.util.List<T>>
-
- org.openflexo.pamela.factory.DefaultMultiplePropertyImplementation<I,T>
-
- All Implemented Interfaces:
MultiplePropertyImplementation<I,T>
,PropertyImplementation<I,java.util.List<T>>
,ReindexableListPropertyImplementation<I,T>
,SettablePropertyImplementation<I,java.util.List<T>>
public class DefaultMultiplePropertyImplementation<I,T> extends AbstractPropertyImplementation<I,java.util.List<T>> implements MultiplePropertyImplementation<I,T>, SettablePropertyImplementation<I,java.util.List<T>>, ReindexableListPropertyImplementation<I,T>
-
-
Constructor Summary
Constructors Constructor Description DefaultMultiplePropertyImplementation(ProxyMethodHandler<I> handler, ModelProperty<I> property, java.lang.Class<? extends java.util.List> listImplementationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(T aValue)
void
addTo(T value, int index)
void
delete(java.util.List<java.lang.Object> embeddedObjects, java.lang.Object... context)
java.util.List<T>
get()
void
reindex(T value, int index)
void
removeFrom(T value)
void
set(java.util.List<T> values)
void
undelete()
-
Methods inherited from class org.openflexo.pamela.factory.AbstractPropertyImplementation
firePropertyChange, getHandler, getModelEntity, getModelFactory, getObject, getPamelaProxyFactory, getProperty, isEqual
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openflexo.pamela.factory.PropertyImplementation
getObject, getProperty
-
-
-
-
Constructor Detail
-
DefaultMultiplePropertyImplementation
public DefaultMultiplePropertyImplementation(ProxyMethodHandler<I> handler, ModelProperty<I> property, java.lang.Class<? extends java.util.List> listImplementationClass) throws InvalidDataException, ModelExecutionException
-
-
Method Detail
-
get
public java.util.List<T> get() throws ModelDefinitionException
- Specified by:
get
in interfaceMultiplePropertyImplementation<I,T>
- Specified by:
get
in interfacePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
set
public void set(java.util.List<T> values) throws ModelDefinitionException
- Specified by:
set
in interfaceSettablePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
addTo
public void addTo(T aValue) throws ModelDefinitionException
- Specified by:
addTo
in interfaceMultiplePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
addTo
public void addTo(T value, int index) throws ModelDefinitionException
- Specified by:
addTo
in interfaceMultiplePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
removeFrom
public void removeFrom(T value) throws ModelDefinitionException
- Specified by:
removeFrom
in interfaceMultiplePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
reindex
public void reindex(T value, int index) throws ModelDefinitionException
- Specified by:
reindex
in interfaceReindexableListPropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
delete
public void delete(java.util.List<java.lang.Object> embeddedObjects, java.lang.Object... context) throws ModelDefinitionException
- Specified by:
delete
in interfacePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
undelete
public void undelete() throws ModelDefinitionException
- Specified by:
undelete
in interfacePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
-