exedio cope

com.exedio.cope.pattern
Class ListField<E>

java.lang.Object
  extended by com.exedio.cope.Feature
      extended by com.exedio.cope.Pattern
          extended by com.exedio.cope.pattern.ListField<E>

public final class ListField<E>
extends Pattern


Nested Class Summary
 
Nested classes/interfaces inherited from class com.exedio.cope.Pattern
Pattern.BackedItem
 
Method Summary
 void add(Item item, E value)
           
 List<E> get(Item item)
           
<P extends Item>
List<P>
getDistinctParents(Class<P> parentClass, E element)
          Returns the items, for which this field list contains the given element.
 FunctionField<E> getElement()
           
 IntegerField getOrder()
           
 ItemField<?> getParent()
           
<P extends Item>
ItemField<P>
getParent(Class<P> parentClass)
           
 Type<? extends Item> getRelationType()
           
 UniqueConstraint getUniqueConstraint()
           
 List<Wrapper> getWrappers()
           
protected  void initialize()
          Here you can do additional initialization not yet done in the constructor.
static
<E> ListField<E>
newList(FunctionField<E> element)
           
 void set(Item item, Collection<? extends E> value)
           
 void setAndCast(Item item, Collection<?> value)
           
 
Methods inherited from class com.exedio.cope.Pattern
addSource, getGeneratedTypes, getSourceFields, getSources, getSourceTypes, getType, newSourceType, newSourceType, newType, newType, registerSource
 
Methods inherited from class com.exedio.cope.Feature
getAnnotation, getID, getName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newList

public static final <E> ListField<E> newList(FunctionField<E> element)

initialize

protected void initialize()
Description copied from class: Pattern
Here you can do additional initialization not yet done in the constructor. In this method you can call methods Pattern.getType() and Feature.getName() for the first time.

Overrides:
initialize in class Pattern

getParent

public <P extends Item> ItemField<P> getParent(Class<P> parentClass)

getParent

public ItemField<?> getParent()

getOrder

public IntegerField getOrder()

getUniqueConstraint

public UniqueConstraint getUniqueConstraint()

getElement

public FunctionField<E> getElement()

getRelationType

public Type<? extends Item> getRelationType()

getWrappers

public List<Wrapper> getWrappers()
Overrides:
getWrappers in class Feature

get

public List<E> get(Item item)

getDistinctParents

public <P extends Item> List<P> getDistinctParents(Class<P> parentClass,
                                                   E element)
Returns the items, for which this field list contains the given element. The result does not contain any duplicates, even if the element is contained in this field list for an item more than once. The order of the result is unspecified.


add

public void add(Item item,
                E value)

set

public void set(Item item,
                Collection<? extends E> value)

setAndCast

public void setAndCast(Item item,
                       Collection<?> value)

Cope with
Object
Persistence

SourceForge.net LogoCopyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114