public abstract class ModelBuilderSchema<B extends ModelBuilder,S extends ModelBuilderSchema<B,S,P>,P extends ModelParametersSchema> extends Schema<B,S> implements SpecifiesHttpResponseCode
Schema.Meta| Modifier and Type | Field and Description |
|---|---|
Model.ModelCategory[] |
can_build |
P |
parameters |
int |
validation_error_count |
ModelParametersSchema.ValidationMessageBase[] |
validation_messages |
__meta, _impl_class, _version_pattern| Constructor and Description |
|---|
ModelBuilderSchema() |
| Modifier and Type | Method and Description |
|---|---|
B |
createImpl()
Create the corresponding impl object, as well as its parameters object.
|
P |
createParametersSchema()
Factory method to create the model-specific parameters schema.
|
S |
fillFromImpl(B builder)
Version and Schema-specific filling from the implementation object.
|
S |
fillFromParms(java.util.Properties parms) |
B |
fillImpl(B impl)
Fill an impl object and any children from this schema and its children.
|
int |
httpStatus() |
protected void |
mapValidationMessageFieldNames(java.lang.String[] from,
java.lang.String[] to)
Map impl field names in the validation messages to schema field names,
called after behavior of stripping leading _ characters.
|
void |
setHttpStatus(int status) |
DocGen.HTML |
writeHTML_impl(DocGen.HTML ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
AutoBuffer |
writeJSON_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
acceptsFrame, createAndFillImpl, extractVersion, getHighestSupportedVersion, getImplClass, getImplClass, getLatestVersion, getSchemaVersion, markdown, markdown, markdown, markdown, newInstance, register, registerAllSchemasIfNecessary, schema, schema, schema, schema, schema, schemaClass, schemaClass, schemaClass, schemaClass, schemasclone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML, writeJSON@API(help="Model builder parameters.") public P extends ModelParametersSchema parameters
@API(help="Model categories this ModelBuilder can build.", direction=OUTPUT) public Model.ModelCategory[] can_build
@API(help="Parameter validation messages", direction=OUTPUT) public ModelParametersSchema.ValidationMessageBase[] validation_messages
public void setHttpStatus(int status)
public int httpStatus()
httpStatus in interface SpecifiesHttpResponseCodepublic final P createParametersSchema()
public S fillFromParms(java.util.Properties parms)
fillFromParms in class Schema<B extends ModelBuilder,S extends ModelBuilderSchema<B,S,P>>public final B createImpl()
createImpl in class Schema<B extends ModelBuilder,S extends ModelBuilderSchema<B,S,P>>public B fillImpl(B impl)
SchemafillImpl in class Schema<B extends ModelBuilder,S extends ModelBuilderSchema<B,S,P>>public S fillFromImpl(B builder)
SchemafillFromImpl in class Schema<B extends ModelBuilder,S extends ModelBuilderSchema<B,S,P>>protected void mapValidationMessageFieldNames(java.lang.String[] from,
java.lang.String[] to)
public DocGen.HTML writeHTML_impl(DocGen.HTML ab)
IcedIced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.writeHTML_impl in interface FreezablewriteHTML_impl in class Icedab - html to write object to.public AutoBuffer writeJSON_impl(AutoBuffer ab)
IcedIced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.writeJSON_impl in interface FreezablewriteJSON_impl in class Icedab - AutoBuffer to write this object to.AutoBuffer for flow-coding.