Package com.exedio.cope.pattern
Class CompositeField<E extends Composite>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.CompositeField<E>
- All Implemented Interfaces:
TemplatedField<E>
,Settable<E>
,Serializable
public final class CompositeField<E extends Composite>
extends Pattern
implements Settable<E>, TemplatedField<E>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Composite>
CompositeField<E>SetValue[]
<X extends FunctionField<?>>
XgetComponent
(X template) Deprecated.List<? extends FunctionField<?>>
Returns the exceptions possibly thrown, when setting a value for this settable.Class<?>
<X extends FunctionField<?>>
XgetTemplate
(X component) Returns the template the given component was created for.List<? extends FunctionField<?>>
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
isNull()
static <E extends Composite>
CompositeField<E>newComposite
(Class<E> valueClass) Deprecated.Usecreate(Class)
instead<X extends FunctionField<?>>
Xof
(X template) Returns the component created for the given template within this CompositeField.optional()
void
toFinal()
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
-
toFinal
-
optional
-
of
Returns the component created for the given template within this CompositeField. The reverse operation isgetTemplate(FunctionField)
. -
getTemplate
Returns the template the given component was created for. The reverse operation isof(FunctionField)
. -
of
- Specified by:
of
in interfaceTemplatedField<E extends Composite>
-
getTemplate
- Specified by:
getTemplate
in interfaceTemplatedField<E extends Composite>
-
getTemplates
-
getComponents
- Specified by:
getComponents
in interfaceTemplatedField<E extends Composite>
-
getUnison
-
get
- Specified by:
get
in interfaceTemplatedField<E extends Composite>
-
newValue
-
set
-
execute
-
getInitialExceptions
Description copied from interface:Settable
Returns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptions
in interfaceSettable<E extends Composite>
-
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. -
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. -
isMandatory
public boolean isMandatory()- Specified by:
isMandatory
in interfaceSettable<E extends Composite>
-
getInitialType
- Specified by:
getInitialType
in interfaceSettable<E extends Composite>
-
getValueType
- Specified by:
getValueType
in interfaceTemplatedField<E extends Composite>
-
getValueClass
- Specified by:
getValueClass
in interfaceTemplatedField<E extends Composite>
-
isNull
-
isNull
-
isNotNull
-
isNotNull
-
getComponent
Deprecated.Useof(FunctionField)
instead -
newComposite
Deprecated.Usecreate(Class)
instead
-
of(FunctionField)
instead