Package com.exedio.cope.pattern
Class DynamicModel<L>
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.DynamicModel<L>
-
- All Implemented Interfaces:
Serializable
public final class DynamicModel<L> extends Pattern
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicModel.Enum<L>
static class
DynamicModel.Field<L>
static class
DynamicModel.Type<L>
static class
DynamicModel.ValueType
-
Method Summary
-
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, 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 <L> DynamicModel<L> create(FunctionField<L> locale, int stringCapacity, int booleanCapacity, int integerCapacity, int doubleCapacity, int enumCapacity)
-
create
public static <L> DynamicModel<L> create(FunctionField<L> locale)
-
onMount
protected void onMount()
Description copied from class:Pattern
Here you can do additional initialization not yet done in the constructor. In this method you can call methodsPattern.getType()
andFeature.getName()
for the first time.
-
createType
public DynamicModel.Type<L> createType(String code)
-
getTypes
public List<DynamicModel.Type<L>> getTypes()
-
getType
public DynamicModel.Type<L> getType(String code)
-
getType
@Nullable public DynamicModel.Type<L> getType(@Nonnull Item item)
-
getTypeType
public Type<DynamicModel.Type<L>> getTypeType()
-
getFieldType
public Type<DynamicModel.Field<L>> getFieldType()
-
getEnumType
public Type<DynamicModel.Enum<L>> getEnumType()
-
getTypeLocalizationType
public Type<?> getTypeLocalizationType()
-
getFieldLocalizationType
public Type<?> getFieldLocalizationType()
-
getEnumLocalizationType
public Type<?> getEnumLocalizationType()
-
getTypeField
public ItemField<DynamicModel.Type<L>> getTypeField()
-
setType
public void setType(@Nonnull Item item, @Nullable DynamicModel.Type<L> type)
-
set
public void set(@Nonnull Item item, @Nonnull DynamicModel.Field<L> field, @Nullable Object value)
-
newModel
@Deprecated public static <L> DynamicModel<L> newModel(FunctionField<L> locale, int stringCapacity, int booleanCapacity, int integerCapacity, int doubleCapacity, int enumCapacity)
Deprecated.Usecreate(FunctionField,int,int,int,int,int)
instead
-
newModel
@Deprecated public static <L> DynamicModel<L> newModel(FunctionField<L> locale)
Deprecated.Usecreate(FunctionField)
instead
-
-