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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Condition
contains(Join join, E value)
Condition
contains(E value)
Condition
containsAny(Join join, Collection<E> set)
Condition
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)
Condition
equal(Collection<E> value)
SetValue<?>[]
execute(Collection<E> value, Item exceptionItem)
List<E>
get(Item item)
FunctionField<E>
getElement()
Set<Class<? extends Throwable>>
getInitialExceptions()
Returns the exceptions possibly thrown, when setting a value for this settable.Type
getInitialType()
IntegerField
getLength()
List<FunctionField<E>>
getListSources()
int
getMaximumSize()
CheckConstraint
getUnison()
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
isInitial()
Returns true, if a value for the settable should be specified on the creation of an item.boolean
isMandatory()
static <E> LimitedListField<E>
newList(FunctionField<E> template, int maximumSize)
Deprecated.Usecreate(FunctionField,int)
insteadstatic <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.Condition
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 Detail
-
create
public static <E> LimitedListField<E> create(FunctionField<E> source1, FunctionField<E> source2)
-
create
public static <E> LimitedListField<E> create(FunctionField<E> source1, FunctionField<E> source2, FunctionField<E> source3)
-
create
public static <E> LimitedListField<E> create(FunctionField<E> template, int maximumSize)
-
getLength
public IntegerField getLength()
-
getListSources
public List<FunctionField<E>> getListSources()
-
getUnison
public CheckConstraint getUnison()
-
getElement
public FunctionField<E> 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
public Type getInitialType()
- Specified by:
getInitialType
in interfaceSettable<E>
-
getInitialExceptions
public Set<Class<? extends Throwable>> 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
@Nonnull public List<E> get(@Nonnull Item item)
- Specified by:
get
in classAbstractListField<E>
-
set
public void set(@Nonnull Item item, @Nonnull Collection<? extends E> value)
- Specified by:
set
in classAbstractListField<E>
-
execute
public SetValue<?>[] execute(Collection<E> value, Item exceptionItem)
-
equal
public Condition equal(Collection<E> value)
-
notEqual
public Condition notEqual(Collection<E> value)
-
containsAny
public Condition containsAny(Collection<E> set)
-
containsAny
public Condition containsAny(Join join, Collection<E> set)
-
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
-
-