public class ModelParameterSchemaV2 extends Schema<Iced,ModelParameterSchemaV2>
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
actual_value |
java.lang.String |
default_value |
java.lang.String |
help |
java.lang.String |
label |
java.lang.String |
level |
java.lang.String |
name |
boolean |
required |
java.lang.String |
type |
java.lang.String[] |
values |
_version_pattern, schema_name, schema_type, schema_version| Constructor and Description |
|---|
ModelParameterSchemaV2() |
ModelParameterSchemaV2(ModelParametersSchema schema,
ModelParametersSchema default_schema,
java.lang.reflect.Field f)
TODO: refactor using SchemaMetadata.
|
| Modifier and Type | Method and Description |
|---|---|
Iced |
createImpl()
Create an implementation object and any child objects but DO NOT fill them.
|
ModelParameterSchemaV2 |
fillFromImpl(Iced iced)
Version and Schema-specific filling from the implementation object.
|
acceptsFrame, createAndFillImpl, extractVersion, fillFromParms, fillImpl, getImplClass, getImplClass, markdown, markdown, registerclone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON@API(help="help for the UI, e.g. \"regularization multiplier, typically used for foo bar baz etc.\"", direction=OUTPUT) public java.lang.String help
@API(help="default value, e.g. 1", direction=OUTPUT) public java.lang.String default_value
@API(help="actual value as set by the user and / or modified by the ModelBuilder, e.g., 10", direction=OUTPUT) public java.lang.String actual_value
@API(help="the importance of the parameter, used by the UI, e.g. \"critical\", \"extended\" or \"expert\"", direction=OUTPUT) public java.lang.String level
public ModelParameterSchemaV2()
public ModelParameterSchemaV2(ModelParametersSchema schema, ModelParametersSchema default_schema, java.lang.reflect.Field f)
public ModelParameterSchemaV2 fillFromImpl(Iced iced)
SchemafillFromImpl in class Schema<Iced,ModelParameterSchemaV2>public Iced createImpl()
SchemaFor objects without children this method does all the required work. For objects with children the subclass will need to override, e.g. by calling super.createImpl() and then calling createImpl() on its children.
Note that impl objects for schemas which override this method don't need to have a default constructor (e.g., a Keyed object constructor can still create and set the Key), but they must not fill any fields which can be filled later from the schema.
TODO: We *could* handle the common case of children with the same field names here by finding all of our fields that are themselves Schemas.
createImpl in class Schema<Iced,ModelParameterSchemaV2>