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<?>>booleanisFinal()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.booleanisNull()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()voidtoFinal()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, 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
-
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:
ofin interfaceTemplatedField<E extends Composite>
-
getTemplate
- Specified by:
getTemplatein interfaceTemplatedField<E extends Composite>
-
getTemplates
-
getComponents
- Specified by:
getComponentsin interfaceTemplatedField<E extends Composite>
-
getUnison
-
get
- Specified by:
getin interfaceTemplatedField<E extends Composite>
-
newValue
-
set
-
execute
-
getInitialExceptions
Description copied from interface:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<E extends Composite>
-
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. -
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. -
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceSettable<E extends Composite>
-
getInitialType
- Specified by:
getInitialTypein interfaceSettable<E extends Composite>
-
getValueType
- Specified by:
getValueTypein interfaceTemplatedField<E extends Composite>
-
getValueClass
- Specified by:
getValueClassin interfaceTemplatedField<E extends Composite>
-
isNull
-
isNull
-
isNotNull
-
isNotNull
-
getComponent
Deprecated.Useof(FunctionField)instead -
newComposite
Deprecated.Usecreate(Class)instead
-
of(FunctionField)instead