com.exedio.cope.pattern
Class ListField<E>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.ListField<E>
public final class ListField<E>
- extends Pattern
| Methods inherited from class com.exedio.cope.Pattern |
addSource, getGeneratedTypes, getSourceFields, getSources, getSourceTypes, getType, newSourceType, newSourceType, newType, newType, registerSource |
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)
Copyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114