Package com.exedio.cope.pattern
Class LimitedListField<E>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.AbstractListField<E>
com.exedio.cope.pattern.LimitedListField<E>
- All Implemented Interfaces:
Settable<Collection<E>>,Serializable
public final class LimitedListField<E>
extends AbstractListField<E>
implements Settable<Collection<E>>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncontainsAny(Join join, Collection<E> set) containsAny(Collection<E> set) static <E> LimitedListField<E>create(FunctionField<E> template, int maximumSize) static <E> LimitedListField<E>create(FunctionField<E> source1, FunctionField<E> source2) static <E> LimitedListField<E>create(FunctionField<E> source1, FunctionField<E> source2, FunctionField<E> source3) equal(Collection<E> value) SetValue<?>[]execute(Collection<E> value, Item exceptionItem) Returns the exceptions possibly thrown, when setting a value for this settable.intbooleanisFinal()Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.booleanReturns true, if a value for the settable should be specified on the creation of an item.booleanstatic <E> LimitedListField<E>newList(FunctionField<E> template, int maximumSize) Deprecated.static <E> LimitedListField<E>newList(FunctionField<E> source1, FunctionField<E> source2) Deprecated.Usecreate(FunctionField,FunctionField)insteadstatic <E> LimitedListField<E>newList(FunctionField<E> source1, FunctionField<E> source2, FunctionField<E> source3) Deprecated.notEqual(Collection<E> value) voidset(Item item, Collection<? extends E> value) Methods inherited from class com.exedio.cope.pattern.AbstractListField
setAndCastMethods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSourceMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Method Details
-
create
-
create
public static <E> LimitedListField<E> create(FunctionField<E> source1, FunctionField<E> source2, FunctionField<E> source3) -
create
-
getLength
-
getListSources
-
getUnison
-
getElement
- Specified by:
getElementin classAbstractListField<E>
-
getMaximumSize
public int getMaximumSize()- Overrides:
getMaximumSizein classAbstractListField<E>
-
isInitial
public boolean isInitial()Description copied from interface:SettableReturns true, if a value for the settable should be specified on the creation of an item. -
isFinal
public boolean isFinal()Description copied from interface:SettableReturns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later. -
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceSettable<E>
-
getInitialType
- Specified by:
getInitialTypein interfaceSettable<E>
-
getInitialExceptions
Description copied from interface:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<E>
-
get
- Specified by:
getin classAbstractListField<E>
-
set
- Specified by:
setin classAbstractListField<E>
-
execute
-
equal
-
notEqual
-
contains
-
contains
-
containsAny
-
containsAny
-
newList
@Deprecated public static <E> LimitedListField<E> newList(FunctionField<E> source1, FunctionField<E> source2) Deprecated.Usecreate(FunctionField,FunctionField)instead -
newList
@Deprecated public static <E> LimitedListField<E> newList(FunctionField<E> source1, FunctionField<E> source2, FunctionField<E> source3) Deprecated. -
newList
@Deprecated public static <E> LimitedListField<E> newList(FunctionField<E> template, int maximumSize) Deprecated.Usecreate(FunctionField,int)instead
-
create(FunctionField,int)instead