BuilderObjectArrayHelper

abstract class BuilderObjectArrayHelper

Class BuilderObjectArrayHelper. Provides builderobjectarrayhelper functionality for the Hytale server.

java.lang.Object > BuilderObjectArrayHelper

Field Summary

builders

protected BuilderObjectReferenceHelper[] builders

Field builders.

label

protected String label

Field label.

string

final String string

Field string.

array

final JsonArray array

Field array.

factory

final BuilderFactory factory

Field factory.

builderObjectReferenceHelper

final BuilderObjectReferenceHelper builderObjectReferenceHelper

Field builderObjectReferenceHelper.

Method Detail

BuilderObjectArrayHelper

public public BuilderObjectArrayHelper (final Class classType, final BuilderContext owner)

Method BuilderObjectArrayHelper.

Parameters:
final Class classType
final BuilderContext owner

readConfig

public void readConfig (@Nonnull final JsonElement data, @Nonnull final BuilderManager builderManager, @Nonnull final BuilderParameters builderParameters, @Nonnull final BuilderValidationHelper builderValidationHelper)

Method readConfig.

Parameters:
@Nonnull final JsonElement data
@Nonnull final BuilderManager builderManager
@Nonnull final BuilderParameters builderParameters
@Nonnull final BuilderValidationHelper builderValidationHelper

IllegalArgumentException

public new IllegalArgumentException (String.format("Expected a JSON array of '%s' at %s (JSON: %s)

Method IllegalArgumentException.

Parameters:
String.format("Expected a JSON array of '%s' at %s (JSON: %s

IllegalStateException

public new IllegalStateException ("Missing builder reference at " + this.getBreadCrumbs()

Method IllegalStateException.

Parameters:
"Missing builder reference at " + this.getBreadCrumbs(

validate

public boolean validate (final String configName, final NPCLoadTimeValidationHelper loadTimeValidationHelper, @Nonnull final BuilderManager manager, @Nonnull final ExecutionContext context, final Scope globalScope, @Nonnull final List errors)

Method validate.

Parameters:
final String configName
final NPCLoadTimeValidationHelper loadTimeValidationHelper
@Nonnull final BuilderManager manager
@Nonnull final ExecutionContext context
final Scope globalScope
@Nonnull final List errors

isPresent

public boolean isPresent ()

Method isPresent.

isEmpty

public boolean isEmpty ()

Method isEmpty.

hasNoElements

public boolean hasNoElements ()

Method hasNoElements.

getLabel

public String getLabel ()

Method getLabel.

setLabel

public void setLabel (final String label)

Method setLabel.

Parameters:
final String label

createReferenceHelper

protected BuilderObjectReferenceHelper createReferenceHelper ()

Method createReferenceHelper.