Package com.exedio.cope.pattern
Class BlockField<E extends Block>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.BlockField<E>
- All Implemented Interfaces:
Copyable,TemplatedField<E>,Serializable
public final class BlockField<E extends Block>
extends Pattern
implements Copyable, TemplatedField<E>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncopy(CopyMapper mapper) static <E extends Block>
BlockField<E><X extends Feature>
XgetTemplate(X component) Returns the template the given component was created for.<X extends Feature>
Xof(X template) Returns the component created for the given template within this BlockField.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
-
copy
-
of
Returns the component created for the given template within this BlockField. The reverse operation isgetTemplate(Feature).- Specified by:
ofin interfaceTemplatedField<E extends Block>
-
getTemplate
Returns the template the given component was created for. The reverse operation isof(Feature).- Specified by:
getTemplatein interfaceTemplatedField<E extends Block>
-
getTemplates
-
getComponents
- Specified by:
getComponentsin interfaceTemplatedField<E extends Block>
-
get
- Specified by:
getin interfaceTemplatedField<E extends Block>
-
getValueType
- Specified by:
getValueTypein interfaceTemplatedField<E extends Block>
-
getValueClass
- Specified by:
getValueClassin interfaceTemplatedField<E extends Block>
-