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.int
boolean
isFinal()
Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.boolean
Returns true, if a value for the settable should be specified on the creation of an item.boolean
static <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) void
set
(Item item, Collection<? extends E> value) Methods inherited from class com.exedio.cope.pattern.AbstractListField
setAndCast
Methods 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, registerSource
Methods 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:
getElement
in classAbstractListField<E>
-
getMaximumSize
public int getMaximumSize()- Overrides:
getMaximumSize
in classAbstractListField<E>
-
isInitial
public boolean isInitial()Description copied from interface:Settable
Returns true, if a value for the settable should be specified on the creation of an item. -
isFinal
public boolean isFinal()Description copied from interface:Settable
Returns 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:
isMandatory
in interfaceSettable<E>
-
getInitialType
- Specified by:
getInitialType
in interfaceSettable<E>
-
getInitialExceptions
Description copied from interface:Settable
Returns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptions
in interfaceSettable<E>
-
get
- Specified by:
get
in classAbstractListField<E>
-
set
- Specified by:
set
in 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