org.ujoframework.implementation.field
Class FieldPropertyList<UJO extends Ujo,ITEM>

java.lang.Object
  extended by org.ujoframework.extensions.Property<UJO,java.util.List<ITEM>>
      extended by org.ujoframework.extensions.ListProperty<UJO,ITEM>
          extended by org.ujoframework.implementation.field.FieldPropertyList<UJO,ITEM>
All Implemented Interfaces:
java.lang.CharSequence, ListUjoProperty<UJO,ITEM>, ValueAgent<UJO,java.util.List<ITEM>>, UjoProperty<UJO,java.util.List<ITEM>>

public class FieldPropertyList<UJO extends Ujo,ITEM>
extends ListProperty<UJO,ITEM>
implements ValueAgent<UJO,java.util.List<ITEM>>, ListUjoProperty<UJO,ITEM>

Property List implementation. There is used an List collection.

Since:
ujo-tool
Author:
Pavel Ponec
See Also:
BeanProperty

Constructor Summary
FieldPropertyList(java.lang.String name, java.lang.Class<ITEM> itemType, int index, ValueAgent<UJO,java.util.List<ITEM>> agent)
          Constructor
 
Method Summary
 java.util.List<ITEM> readValue(UJO ujo)
          WARNING: There is recommended to call the method from the method Ujo.readProperty(...)
 void writeValue(UJO ujo, java.util.List<ITEM> value)
          WARNING: There is recommended to call the method from the method Ujo.writeProperty(...) only.
 
Methods inherited from class org.ujoframework.extensions.ListProperty
addItem, getItem, getItemCount, getItemType, getList, initList, isDefault, isItemTypeOf, newListProperty, newListProperty, newListProperty, removeItem, setItem, sort
 
Methods inherited from class org.ujoframework.extensions.Property
_nextSequence, add, compareTo, copy, descending, equals, getDefault, getIndex, getName, getType, getValue, charAt, checkAttribs, init, isAscending, isDirect, isTypeOf, length, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, of, setValue, setValueFromDefault, subSequence, toString, writeDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujoframework.extensions.ListUjoProperty
addItem, getItem, getItemCount, getItemType, getList, isDefault, isItemTypeOf, removeItem, setItem
 
Methods inherited from interface org.ujoframework.UjoProperty
add, copy, descending, equals, getDefault, getIndex, getName, getType, getValue, isAscending, isDirect, isTypeOf, of, setValue, toString
 
Methods inherited from interface java.lang.CharSequence
charAt, length, subSequence
 

Constructor Detail

FieldPropertyList

public FieldPropertyList(java.lang.String name,
                         java.lang.Class<ITEM> itemType,
                         int index,
                         ValueAgent<UJO,java.util.List<ITEM>> agent)
Constructor

Method Detail

writeValue

public void writeValue(UJO ujo,
                       java.util.List<ITEM> value)
                throws java.lang.IllegalArgumentException
WARNING: There is recommended to call the method from the method Ujo.writeProperty(...) only.
A direct call can bypass a important actions implemented in the writeProperty(method).

Specified by:
writeValue in interface ValueAgent<UJO extends Ujo,java.util.List<ITEM>>
Throws:
java.lang.IllegalArgumentException

readValue

public java.util.List<ITEM> readValue(UJO ujo)
                               throws java.lang.IllegalArgumentException
WARNING: There is recommended to call the method from the method Ujo.readProperty(...) only.
A direct call can bypass a important actions implemented in the readProperty(method).

Specified by:
readValue in interface ValueAgent<UJO extends Ujo,java.util.List<ITEM>>
Throws:
java.lang.IllegalArgumentException


Copyright © 2010. All Rights Reserved.