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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic <L> DynamicModel<L>create(FunctionField<L> locale) static <L> DynamicModel<L>create(FunctionField<L> locale, int stringCapacity, int booleanCapacity, int integerCapacity, int doubleCapacity, int enumCapacity) createType(String code) get(Item item, DynamicModel.Field<L> field) Type<?>Type<?>Type<?>getTypes()static <L> DynamicModel<L>newModel(FunctionField<L> locale) Deprecated.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)insteadprotected voidonMount()Here you can do additional initialization not yet done in the constructor.voidset(Item item, DynamicModel.Field<L> field, Object value) voidsetType(Item item, DynamicModel.Type<L> type) 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, 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
public static <L> DynamicModel<L> create(FunctionField<L> locale, int stringCapacity, int booleanCapacity, int integerCapacity, int doubleCapacity, int enumCapacity) -
create
-
onMount
protected void onMount()Description copied from class:PatternHere 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
-
getTypes
-
getType
-
getType
-
getTypeType
-
getFieldType
-
getEnumType
-
getTypeLocalizationType
-
getFieldLocalizationType
-
getEnumLocalizationType
-
getTypeField
-
setType
-
get
-
set
-
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.Usecreate(FunctionField)instead
-
create(FunctionField)instead