Package com.exedio.cope.pattern
Class MultiItemField<E>
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.MultiItemField<E>
-
- All Implemented Interfaces:
Settable<E>
,Serializable
public final class MultiItemField<E> extends Pattern implements Settable<E>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiItemField<E>
cascade()
MultiItemField<E>
copyTo(Class<? extends Item> componentClass, FunctionField<?> copy)
static <E> MultiItemField<E>
create(Class<E> valueClass, Class<? extends Item>[] componentClasses)
static <E> MultiItemField<E>
create(Class<E> valueClass, Class<? extends Item> componentClass1, Class<? extends Item> componentClass2)
static <E> MultiItemField<E>
create(Class<E> valueClass, Class<? extends Item> componentClass1, Class<? extends Item> componentClass2, Class<? extends Item> componentClass3)
Condition
equal(E value)
SetValue<?>[]
execute(E value, Item exceptionItem)
E
get(Item item)
List<Class<? extends Item>>
getComponentClasses()
List<ItemField<?>>
getComponents()
ItemField.DeletePolicy
getDeletePolicy()
Set<Class<? extends Throwable>>
getInitialExceptions()
Returns the exceptions possibly thrown, when setting a value for this settable.Class<E>
getInitialType()
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()
Condition
isNotNull()
Condition
isNull()
<X extends Item>
ItemField<X>of(Class<X> componentClass)
MultiItemField<E>
optional()
void
set(Item item, E value)
MultiItemField<E>
toFinal()
MultiItemField<E>
unique()
-
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> MultiItemField<E> create(Class<E> valueClass, Class<? extends Item>[] componentClasses)
-
create
public static <E> MultiItemField<E> create(Class<E> valueClass, Class<? extends Item> componentClass1, Class<? extends Item> componentClass2)
-
create
public static <E> MultiItemField<E> create(Class<E> valueClass, Class<? extends Item> componentClass1, Class<? extends Item> componentClass2, Class<? extends Item> componentClass3)
-
isNull
public Condition isNull()
-
isNotNull
public Condition isNotNull()
-
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>
-
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.
-
getInitialType
public Class<E> 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>
-
getDeletePolicy
public ItemField.DeletePolicy getDeletePolicy()
-
toFinal
public MultiItemField<E> toFinal()
-
optional
public MultiItemField<E> optional()
-
unique
public MultiItemField<E> unique()
-
cascade
public MultiItemField<E> cascade()
-
copyTo
public MultiItemField<E> copyTo(Class<? extends Item> componentClass, FunctionField<?> copy)
-
-