BuilderFactory

public class BuilderFactory

Class BuilderFactory. Provides builderfactory functionality for the Hytale server.

java.lang.Object > BuilderFactory

Field Summary

element

final JsonElement element

Field element.

builder

final Builder builder

Field builder.

schemas

final Schema[] schemas

Field schemas.

check

final ObjectSchema check

Field check.

keys

final StringSchema keys

Field keys.

root

final Schema root

Field root.

schemaRef

final Schema schemaRef

Field schemaRef.

schema

final ObjectSchema schema

Field schema.

type

final Schema type

Field type.

cond

final Schema cond

Field cond.

checkType

final ObjectSchema checkType

Field checkType.

builder2

final Builder builder2

Field builder2.

schemaRef2

final Schema schemaRef2

Field schemaRef2.

Method Detail

BuilderFactory

public public BuilderFactory (final Class category, final String typeTag)

Method BuilderFactory.

Parameters:
final Class category
final String typeTag

BuilderComponent

public new BuilderComponent (category)

Method BuilderComponent.

Parameters:
category category

add

public BuilderFactory add (final String name, final Supplier> builder)

Method add.

Parameters:
final String name
final Supplier> builder

IllegalArgumentException

public new IllegalArgumentException (String.format("Builder with name %s already exists", name)

Method IllegalArgumentException.

Parameters:
String.format("Builder with name %s already exists"
name name

getCategory

public Class getCategory ()

Method getCategory.

createBuilder

public Builder createBuilder (@Nonnull final JsonElement config)

Method createBuilder.

Parameters:
@Nonnull final JsonElement config

getKeyName

public String getKeyName (@Nonnull final JsonElement config)

Method getKeyName.

Parameters:
@Nonnull final JsonElement config

tryCreateDefaultBuilder

public Builder tryCreateDefaultBuilder ()

Method tryCreateDefaultBuilder.

getBuilderNames

public List getBuilderNames ()

Method getBuilderNames.

getSchemaName

public String getSchemaName ()

Method getSchemaName.

toSchema

public Schema toSchema (@Nonnull final SchemaContext context)

Method toSchema.

Parameters:
@Nonnull final SchemaContext context