Schema

public class Schema

Class Schema. Provides schema functionality for the Hytale server.

java.lang.Object > Schema

Field Summary

id

private String id

Field id.

types

private String[] types

Field types.

title

private String title

Field title.

description

private String description

Field description.

markdownDescription

private String markdownDescription

Field markdownDescription.

anyOf

private Schema[] anyOf

Field anyOf.

oneOf

private Schema[] oneOf

Field oneOf.

allOf

private Schema[] allOf

Field allOf.

not

private Schema not

Field not.

required

private String[] required

Field required.

enumDescriptions

private String[] enumDescriptions

Field enumDescriptions.

markdownEnumDescriptions

private String[] markdownEnumDescriptions

Field markdownEnumDescriptions.

ref

private String ref

Field ref.

data

private String data

Field data.

default_

private BsonDocument default_

Field default_.

if_

private Schema if_

Field if_.

then

private Schema then

Field then.

else_

private Object else_

Field else_.

hytale

private HytaleMetadata hytale

Field hytale.

hytaleParent

private InheritSettings hytaleParent

Field hytaleParent.

hytaleSchemaTypeField

private SchemaTypeField hytaleSchemaTypeField

Field hytaleSchemaTypeField.

hytaleAssetRef

private String hytaleAssetRef

Field hytaleAssetRef.

hytaleCustomAssetRef

private String hytaleCustomAssetRef

Field hytaleCustomAssetRef.

doNotSuggest

private Boolean doNotSuggest

Field doNotSuggest.

s

final Schema s

Field s.

schema

final Schema schema

Field schema.

property

private String property

Field property.

defaultValue

private String defaultValue

Field defaultValue.

values

private String[] values

Field values.

parentPropertyKey

private String parentPropertyKey

Field parentPropertyKey.

that

final SchemaTypeField that

Field that.

type

private String type

Field type.

path

private String path

Field path.

virtualPath

private String virtualPath

Field virtualPath.

extension

private String extension

Field extension.

idProvider

private String idProvider

Field idProvider.

internalKeys

private String[] internalKeys

Field internalKeys.

inheritsProperty

private Boolean inheritsProperty

Field inheritsProperty.

mergesProperties

private Boolean mergesProperties

Field mergesProperties.

uiEditorFeatures

private UIEditorFeatures.EditorFeature[] uiEditorFeatures

Field uiEditorFeatures.

uiEditorPreview

private UIEditorPreview.PreviewType uiEditorPreview

Field uiEditorPreview.

uiTypeIcon

private String uiTypeIcon

Field uiTypeIcon.

uiEditorIgnore

private Boolean uiEditorIgnore

Field uiEditorIgnore.

allowEmptyObject

private Boolean allowEmptyObject

Field allowEmptyObject.

uiDisplayMode

private UIDisplayMode.DisplayMode uiDisplayMode

Field uiDisplayMode.

uiEditorComponent

private UIEditor.EditorComponent uiEditorComponent

Field uiEditorComponent.

uiPropertyTitle

private String uiPropertyTitle

Field uiPropertyTitle.

uiSectionStart

private String uiSectionStart

Field uiSectionStart.

uiRebuildCaches

private UIRebuildCaches.ClientCache[] uiRebuildCaches

Field uiRebuildCaches.

uiRebuildCachesForChildProperties

private Boolean uiRebuildCachesForChildProperties

Field uiRebuildCachesForChildProperties.

uiSidebarButtons

private UIButton[] uiSidebarButtons

Field uiSidebarButtons.

uiCollapsedByDefault

private Boolean uiCollapsedByDefault

Field uiCollapsedByDefault.

uiCreateButtons

private UIButton[] uiCreateButtons

Field uiCreateButtons.

mapKey

private String mapKey

Field mapKey.

mapKeyValue

private String mapKeyValue

Field mapKeyValue.

arr

final BsonArray arr

Field arr.

val

final BsonValue val

Field val.

Method Detail

Schema

public public Schema ()

Method Schema.

getId

public String getId ()

Method getId.

setId

public void setId (final String id)

Method setId.

Parameters:
final String id

getTypes

public String[] getTypes ()

Method getTypes.

setTypes

public void setTypes (final String[] types)

Method setTypes.

Parameters:
final String[] types

getTitle

public String getTitle ()

Method getTitle.

setTitle

public void setTitle (final String title)

Method setTitle.

Parameters:
final String title

getDescription

public String getDescription ()

Method getDescription.

setDescription

public void setDescription (final String description)

Method setDescription.

Parameters:
final String description

getMarkdownDescription

public String getMarkdownDescription ()

Method getMarkdownDescription.

setMarkdownDescription

public void setMarkdownDescription (final String markdownDescription)

Method setMarkdownDescription.

Parameters:
final String markdownDescription

getEnumDescriptions

public String[] getEnumDescriptions ()

Method getEnumDescriptions.

setEnumDescriptions

public void setEnumDescriptions (final String[] enumDescriptions)

Method setEnumDescriptions.

Parameters:
final String[] enumDescriptions

getMarkdownEnumDescriptions

public String[] getMarkdownEnumDescriptions ()

Method getMarkdownEnumDescriptions.

setMarkdownEnumDescriptions

public void setMarkdownEnumDescriptions (final String[] markdownEnumDescriptions)

Method setMarkdownEnumDescriptions.

Parameters:
final String[] markdownEnumDescriptions

getAnyOf

public Schema[] getAnyOf ()

Method getAnyOf.

setAnyOf

public void setAnyOf (final Schema... anyOf)

Method setAnyOf.

Parameters:
final Schema... anyOf

getOneOf

public Schema[] getOneOf ()

Method getOneOf.

setOneOf

public void setOneOf (final Schema... oneOf)

Method setOneOf.

Parameters:
final Schema... oneOf

getAllOf

public Schema[] getAllOf ()

Method getAllOf.

setAllOf

public void setAllOf (final Schema... allOf)

Method setAllOf.

Parameters:
final Schema... allOf

getRequired

public String[] getRequired ()

Method getRequired.

setRequired

public void setRequired (final String... required)

Method setRequired.

Parameters:
final String... required

getDefaultRaw

public BsonDocument getDefaultRaw ()

Method getDefaultRaw.

setDefaultRaw

public void setDefaultRaw (final BsonDocument default_)

Method setDefaultRaw.

Parameters:
final BsonDocument default_

getDefinitions

public Schema> getDefinitions ()

Method getDefinitions.

setDefinitions

public void setDefinitions (final Map definitions)

Method setDefinitions.

Parameters:
final Map definitions

getRef

public String getRef ()

Method getRef.

setRef

public void setRef (final String ref)

Method setRef.

Parameters:
final String ref

getData

public String getData ()

Method getData.

setData

public void setData (final String data)

Method setData.

Parameters:
final String data

getIf

public Schema getIf ()

Method getIf.

setIf

public void setIf (final Schema if_)

Method setIf.

Parameters:
final Schema if_

getThen

public Schema getThen ()

Method getThen.

setThen

public void setThen (final Schema then)

Method setThen.

Parameters:
final Schema then

getElse

public Schema getElse ()

Method getElse.

setElse

public void setElse (final Schema else_)

Method setElse.

Parameters:
final Schema else_

isDoNotSuggest

public Boolean isDoNotSuggest ()

Method isDoNotSuggest.

setDoNotSuggest

public void setDoNotSuggest (final boolean doNotSuggest)

Method setDoNotSuggest.

Parameters:
final boolean doNotSuggest

getHytale

public HytaleMetadata getHytale ()

Method getHytale.

getHytaleAssetRef

public String getHytaleAssetRef ()

Method getHytaleAssetRef.

setHytaleAssetRef

public void setHytaleAssetRef (final String hytaleAssetRef)

Method setHytaleAssetRef.

Parameters:
final String hytaleAssetRef

getHytaleParent

public InheritSettings getHytaleParent ()

Method getHytaleParent.

setHytaleParent

public void setHytaleParent (final InheritSettings hytaleParent)

Method setHytaleParent.

Parameters:
final InheritSettings hytaleParent

getHytaleSchemaTypeField

public SchemaTypeField getHytaleSchemaTypeField ()

Method getHytaleSchemaTypeField.

setHytaleSchemaTypeField

public void setHytaleSchemaTypeField (final SchemaTypeField hytaleSchemaTypeField)

Method setHytaleSchemaTypeField.

Parameters:
final SchemaTypeField hytaleSchemaTypeField

getHytaleCustomAssetRef

public String getHytaleCustomAssetRef ()

Method getHytaleCustomAssetRef.

setHytaleCustomAssetRef

public void setHytaleCustomAssetRef (final String hytaleCustomAssetRef)

Method setHytaleCustomAssetRef.

Parameters:
final String hytaleCustomAssetRef

ref

static Schema ref (final String file)

Method ref.

Parameters:
final String file

data

static Schema data (final String file)

Method data.

Parameters:
final String file

anyOf

static Schema anyOf (final Schema... anyOf)

Method anyOf.

Parameters:
final Schema... anyOf

not

static Schema not (final Schema not)

Method not.

Parameters:
final Schema not

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

if

public else if (schema.id == null)

Method if.

Parameters:
schema.id == null

hashCode

public int hashCode ()

Method hashCode.

init

static void init ()

Method init.

SchemaTypeField

public public SchemaTypeField (final String property, final String defaultValue, final String... values)

Method SchemaTypeField.

Parameters:
final String property
final String defaultValue
final String... values

getProperty

public String getProperty ()

Method getProperty.

getDefaultValue

public String getDefaultValue ()

Method getDefaultValue.

getValues

public String[] getValues ()

Method getValues.

getParentPropertyKey

public String getParentPropertyKey ()

Method getParentPropertyKey.

setParentPropertyKey

public void setParentPropertyKey (final String parentPropertyKey)

Method setParentPropertyKey.

Parameters:
final String parentPropertyKey

getType

public String getType ()

Method getType.

setType

public void setType (final String type)

Method setType.

Parameters:
final String type

getPath

public String getPath ()

Method getPath.

setPath

public void setPath (final String path)

Method setPath.

Parameters:
final String path

getVirtualPath

public String getVirtualPath ()

Method getVirtualPath.

setVirtualPath

public void setVirtualPath (final String virtualPath)

Method setVirtualPath.

Parameters:
final String virtualPath

getExtension

public String getExtension ()

Method getExtension.

setExtension

public void setExtension (final String extension)

Method setExtension.

Parameters:
final String extension

getIdProvider

public String getIdProvider ()

Method getIdProvider.

setIdProvider

public void setIdProvider (final String idProvider)

Method setIdProvider.

Parameters:
final String idProvider

getInternalKeys

public String[] getInternalKeys ()

Method getInternalKeys.

setInternalKeys

public void setInternalKeys (final String[] internalKeys)

Method setInternalKeys.

Parameters:
final String[] internalKeys

getUiDisplayMode

public UIDisplayMode.DisplayMode getUiDisplayMode ()

Method getUiDisplayMode.

setUiDisplayMode

public void setUiDisplayMode (final UIDisplayMode.DisplayMode uiDisplayMode)

Method setUiDisplayMode.

Parameters:
final UIDisplayMode.DisplayMode uiDisplayMode

getUiEditorComponent

public UIEditor.EditorComponent getUiEditorComponent ()

Method getUiEditorComponent.

setUiEditorComponent

public void setUiEditorComponent (final UIEditor.EditorComponent uiEditorComponent)

Method setUiEditorComponent.

Parameters:
final UIEditor.EditorComponent uiEditorComponent

getUiEditorFeatures

public UIEditorFeatures.EditorFeature[] getUiEditorFeatures ()

Method getUiEditorFeatures.

setUiEditorFeatures

public void setUiEditorFeatures (final UIEditorFeatures.EditorFeature[] uiEditorFeatures)

Method setUiEditorFeatures.

Parameters:
final UIEditorFeatures.EditorFeature[] uiEditorFeatures

getUiEditorPreview

public UIEditorPreview.PreviewType getUiEditorPreview ()

Method getUiEditorPreview.

setUiEditorPreview

public void setUiEditorPreview (final UIEditorPreview.PreviewType uiEditorPreview)

Method setUiEditorPreview.

Parameters:
final UIEditorPreview.PreviewType uiEditorPreview

getUiTypeIcon

public String getUiTypeIcon ()

Method getUiTypeIcon.

setUiTypeIcon

public void setUiTypeIcon (final String uiTypeIcon)

Method setUiTypeIcon.

Parameters:
final String uiTypeIcon

getUiEditorIgnore

public Boolean getUiEditorIgnore ()

Method getUiEditorIgnore.

setUiEditorIgnore

public void setUiEditorIgnore (final Boolean uiEditorIgnore)

Method setUiEditorIgnore.

Parameters:
final Boolean uiEditorIgnore

getAllowEmptyObject

public Boolean getAllowEmptyObject ()

Method getAllowEmptyObject.

setAllowEmptyObject

public void setAllowEmptyObject (final Boolean allowEmptyObject)

Method setAllowEmptyObject.

Parameters:
final Boolean allowEmptyObject

getUiPropertyTitle

public String getUiPropertyTitle ()

Method getUiPropertyTitle.

setUiPropertyTitle

public void setUiPropertyTitle (final String uiPropertyTitle)

Method setUiPropertyTitle.

Parameters:
final String uiPropertyTitle

getUiSectionStart

public String getUiSectionStart ()

Method getUiSectionStart.

setUiSectionStart

public void setUiSectionStart (final String uiSectionStart)

Method setUiSectionStart.

Parameters:
final String uiSectionStart

isInheritsProperty

public boolean isInheritsProperty ()

Method isInheritsProperty.

setInheritsProperty

public void setInheritsProperty (final boolean inheritsProperty)

Method setInheritsProperty.

Parameters:
final boolean inheritsProperty

getMergesProperties

public boolean getMergesProperties ()

Method getMergesProperties.

setMergesProperties

public void setMergesProperties (final boolean mergesProperties)

Method setMergesProperties.

Parameters:
final boolean mergesProperties

getUiRebuildCaches

public UIRebuildCaches.ClientCache[] getUiRebuildCaches ()

Method getUiRebuildCaches.

setUiRebuildCaches

public void setUiRebuildCaches (final UIRebuildCaches.ClientCache[] uiRebuildCaches)

Method setUiRebuildCaches.

Parameters:
final UIRebuildCaches.ClientCache[] uiRebuildCaches

getUiRebuildCachesForChildProperties

public Boolean getUiRebuildCachesForChildProperties ()

Method getUiRebuildCachesForChildProperties.

setUiRebuildCachesForChildProperties

public void setUiRebuildCachesForChildProperties (final Boolean uiRebuildCachesForChildProperties)

Method setUiRebuildCachesForChildProperties.

Parameters:
final Boolean uiRebuildCachesForChildProperties

getUiSidebarButtons

public UIButton[] getUiSidebarButtons ()

Method getUiSidebarButtons.

setUiSidebarButtons

public void setUiSidebarButtons (final UIButton[] uiSidebarButtons)

Method setUiSidebarButtons.

Parameters:
final UIButton[] uiSidebarButtons

getUiCollapsedByDefault

public Boolean getUiCollapsedByDefault ()

Method getUiCollapsedByDefault.

setUiCollapsedByDefault

public void setUiCollapsedByDefault (final Boolean uiCollapsedByDefault)

Method setUiCollapsedByDefault.

Parameters:
final Boolean uiCollapsedByDefault

getUiCreateButtons

public UIButton[] getUiCreateButtons ()

Method getUiCreateButtons.

setUiCreateButtons

public void setUiCreateButtons (final UIButton[] uiCreateButtons)

Method setUiCreateButtons.

Parameters:
final UIButton[] uiCreateButtons

InheritSettings

public public InheritSettings (final String type)

Method InheritSettings.

Parameters:
final String type

getMapKey

public String getMapKey ()

Method getMapKey.

setMapKey

public void setMapKey (final String mapKey)

Method setMapKey.

Parameters:
final String mapKey

getMapKeyValue

public String getMapKeyValue ()

Method getMapKeyValue.

setMapKeyValue

public void setMapKeyValue (final String mapKeyValue)

Method setMapKeyValue.

Parameters:
final String mapKeyValue

decode

public String[] decode (@Nonnull final BsonValue bsonValue, @Nonnull final ExtraInfo extraInfo)

Method decode.

Parameters:
@Nonnull final BsonValue bsonValue
@Nonnull final ExtraInfo extraInfo

encode

public BsonValue encode (@Nullable final String[] o, final ExtraInfo extraInfo)

Method encode.

Parameters:
@Nullable final String[] o
final ExtraInfo extraInfo

toSchema

public Schema toSchema (@Nonnull final SchemaContext context)

Method toSchema.

Parameters:
@Nonnull final SchemaContext context

ArraySchema

public new ArraySchema ()

Method ArraySchema.

NullSchema

public new NullSchema ()

Method NullSchema.

IllegalArgumentException

public new IllegalArgumentException ("Unknown type (in array)

Method IllegalArgumentException.

Parameters:
"Unknown type (in array

StringSchema

public new StringSchema ()

Method StringSchema.

BooleanSchema

public new BooleanSchema ()

Method BooleanSchema.