public class Schema
Class Schema. Provides schema functionality for the Hytale server.
java.lang.Object > Schema
Field Summary
id
Field id.
types
Field types.
title
Field title.
description
Field description.
markdownDescription
Field markdownDescription.
anyOf
Field anyOf.
oneOf
Field oneOf.
allOf
Field allOf.
not
Field not.
required
Field required.
enumDescriptions
Field enumDescriptions.
markdownEnumDescriptions
Field markdownEnumDescriptions.
ref
Field ref.
data
Field data.
default_
Field default_.
if_
Field if_.
then
Field then.
else_
Field else_.
hytale
Field hytale.
hytaleParent
Field hytaleParent.
hytaleSchemaTypeField
Field hytaleSchemaTypeField.
hytaleAssetRef
Field hytaleAssetRef.
hytaleCustomAssetRef
Field hytaleCustomAssetRef.
doNotSuggest
Field doNotSuggest.
s
Field s.
schema
Field schema.
property
Field property.
defaultValue
Field defaultValue.
values
Field values.
parentPropertyKey
Field parentPropertyKey.
that
Field that.
type
Field type.
path
Field path.
virtualPath
Field virtualPath.
extension
Field extension.
idProvider
Field idProvider.
internalKeys
Field internalKeys.
inheritsProperty
Field inheritsProperty.
mergesProperties
Field mergesProperties.
uiEditorFeatures
Field uiEditorFeatures.
uiEditorPreview
Field uiEditorPreview.
uiTypeIcon
Field uiTypeIcon.
uiEditorIgnore
Field uiEditorIgnore.
allowEmptyObject
Field allowEmptyObject.
uiDisplayMode
Field uiDisplayMode.
uiEditorComponent
Field uiEditorComponent.
uiPropertyTitle
Field uiPropertyTitle.
uiSectionStart
Field uiSectionStart.
uiRebuildCaches
Field uiRebuildCaches.
uiRebuildCachesForChildProperties
Field uiRebuildCachesForChildProperties.
uiSidebarButtons
Field uiSidebarButtons.
uiCollapsedByDefault
Field uiCollapsedByDefault.
uiCreateButtons
Field uiCreateButtons.
mapKey
Field mapKey.
mapKeyValue
Field mapKeyValue.
arr
Field arr.
val
Field val.
Method Detail
Schema
public
Schema
()
Method Schema.
getId
String
getId
()
Method getId.
setId
void
setId
(final String id)
Method setId.
- Parameters:
final Stringid
getTypes
String[]
getTypes
()
Method getTypes.
setTypes
void
setTypes
(final String[] types)
Method setTypes.
- Parameters:
final String[]types
getTitle
String
getTitle
()
Method getTitle.
setTitle
void
setTitle
(final String title)
Method setTitle.
- Parameters:
final Stringtitle
getDescription
String
getDescription
()
Method getDescription.
setDescription
void
setDescription
(final String description)
Method setDescription.
- Parameters:
final Stringdescription
getMarkdownDescription
String
getMarkdownDescription
()
Method getMarkdownDescription.
setMarkdownDescription
void
setMarkdownDescription
(final String markdownDescription)
Method setMarkdownDescription.
- Parameters:
final StringmarkdownDescription
getEnumDescriptions
String[]
getEnumDescriptions
()
Method getEnumDescriptions.
setEnumDescriptions
void
setEnumDescriptions
(final String[] enumDescriptions)
Method setEnumDescriptions.
- Parameters:
final String[]enumDescriptions
getMarkdownEnumDescriptions
String[]
getMarkdownEnumDescriptions
()
Method getMarkdownEnumDescriptions.
setMarkdownEnumDescriptions
void
setMarkdownEnumDescriptions
(final String[] markdownEnumDescriptions)
Method setMarkdownEnumDescriptions.
- Parameters:
final String[]markdownEnumDescriptions
getAnyOf
Schema[]
getAnyOf
()
Method getAnyOf.
setAnyOf
void
setAnyOf
(final Schema... anyOf)
Method setAnyOf.
- Parameters:
final Schema...anyOf
getOneOf
Schema[]
getOneOf
()
Method getOneOf.
setOneOf
void
setOneOf
(final Schema... oneOf)
Method setOneOf.
- Parameters:
final Schema...oneOf
getAllOf
Schema[]
getAllOf
()
Method getAllOf.
setAllOf
void
setAllOf
(final Schema... allOf)
Method setAllOf.
- Parameters:
final Schema...allOf
getRequired
String[]
getRequired
()
Method getRequired.
setRequired
void
setRequired
(final String... required)
Method setRequired.
- Parameters:
final String...required
getDefaultRaw
BsonDocument
getDefaultRaw
()
Method getDefaultRaw.
setDefaultRaw
void
setDefaultRaw
(final BsonDocument default_)
Method setDefaultRaw.
- Parameters:
final BsonDocumentdefault_
getDefinitions
Schema>
getDefinitions
()
Method getDefinitions.
setDefinitions
void
setDefinitions
(final Map definitions)
Method setDefinitions.
- Parameters:
final Mapdefinitions
getRef
String
getRef
()
Method getRef.
setRef
void
setRef
(final String ref)
Method setRef.
- Parameters:
final Stringref
getData
String
getData
()
Method getData.
setData
void
setData
(final String data)
Method setData.
- Parameters:
final Stringdata
isDoNotSuggest
Boolean
isDoNotSuggest
()
Method isDoNotSuggest.
setDoNotSuggest
void
setDoNotSuggest
(final boolean doNotSuggest)
Method setDoNotSuggest.
- Parameters:
final booleandoNotSuggest
getHytale
HytaleMetadata
getHytale
()
Method getHytale.
getHytaleAssetRef
String
getHytaleAssetRef
()
Method getHytaleAssetRef.
setHytaleAssetRef
void
setHytaleAssetRef
(final String hytaleAssetRef)
Method setHytaleAssetRef.
- Parameters:
final StringhytaleAssetRef
getHytaleParent
InheritSettings
getHytaleParent
()
Method getHytaleParent.
setHytaleParent
void
setHytaleParent
(final InheritSettings hytaleParent)
Method setHytaleParent.
- Parameters:
final InheritSettingshytaleParent
getHytaleSchemaTypeField
SchemaTypeField
getHytaleSchemaTypeField
()
Method getHytaleSchemaTypeField.
setHytaleSchemaTypeField
void
setHytaleSchemaTypeField
(final SchemaTypeField hytaleSchemaTypeField)
Method setHytaleSchemaTypeField.
- Parameters:
final SchemaTypeFieldhytaleSchemaTypeField
getHytaleCustomAssetRef
String
getHytaleCustomAssetRef
()
Method getHytaleCustomAssetRef.
setHytaleCustomAssetRef
void
setHytaleCustomAssetRef
(final String hytaleCustomAssetRef)
Method setHytaleCustomAssetRef.
- Parameters:
final StringhytaleCustomAssetRef
equals
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
if
else
if
(schema.id == null)
Method if.
- Parameters:
schema.id ==null
hashCode
int
hashCode
()
Method hashCode.
init
void
init
()
Method init.
SchemaTypeField
public
SchemaTypeField
(final String property, final String defaultValue, final String... values)
Method SchemaTypeField.
- Parameters:
final Stringpropertyfinal StringdefaultValuefinal String...values
getProperty
String
getProperty
()
Method getProperty.
getDefaultValue
String
getDefaultValue
()
Method getDefaultValue.
getValues
String[]
getValues
()
Method getValues.
getParentPropertyKey
String
getParentPropertyKey
()
Method getParentPropertyKey.
setParentPropertyKey
void
setParentPropertyKey
(final String parentPropertyKey)
Method setParentPropertyKey.
- Parameters:
final StringparentPropertyKey
getType
String
getType
()
Method getType.
setType
void
setType
(final String type)
Method setType.
- Parameters:
final Stringtype
getPath
String
getPath
()
Method getPath.
setPath
void
setPath
(final String path)
Method setPath.
- Parameters:
final Stringpath
getVirtualPath
String
getVirtualPath
()
Method getVirtualPath.
setVirtualPath
void
setVirtualPath
(final String virtualPath)
Method setVirtualPath.
- Parameters:
final StringvirtualPath
getExtension
String
getExtension
()
Method getExtension.
setExtension
void
setExtension
(final String extension)
Method setExtension.
- Parameters:
final Stringextension
getIdProvider
String
getIdProvider
()
Method getIdProvider.
setIdProvider
void
setIdProvider
(final String idProvider)
Method setIdProvider.
- Parameters:
final StringidProvider
getInternalKeys
String[]
getInternalKeys
()
Method getInternalKeys.
setInternalKeys
void
setInternalKeys
(final String[] internalKeys)
Method setInternalKeys.
- Parameters:
final String[]internalKeys
getUiDisplayMode
UIDisplayMode.DisplayMode
getUiDisplayMode
()
Method getUiDisplayMode.
setUiDisplayMode
void
setUiDisplayMode
(final UIDisplayMode.DisplayMode uiDisplayMode)
Method setUiDisplayMode.
- Parameters:
final UIDisplayMode.DisplayModeuiDisplayMode
getUiEditorComponent
UIEditor.EditorComponent
getUiEditorComponent
()
Method getUiEditorComponent.
setUiEditorComponent
void
setUiEditorComponent
(final UIEditor.EditorComponent uiEditorComponent)
Method setUiEditorComponent.
- Parameters:
final UIEditor.EditorComponentuiEditorComponent
getUiEditorFeatures
UIEditorFeatures.EditorFeature[]
getUiEditorFeatures
()
Method getUiEditorFeatures.
setUiEditorFeatures
void
setUiEditorFeatures
(final UIEditorFeatures.EditorFeature[] uiEditorFeatures)
Method setUiEditorFeatures.
- Parameters:
final UIEditorFeatures.EditorFeature[]uiEditorFeatures
getUiEditorPreview
UIEditorPreview.PreviewType
getUiEditorPreview
()
Method getUiEditorPreview.
setUiEditorPreview
void
setUiEditorPreview
(final UIEditorPreview.PreviewType uiEditorPreview)
Method setUiEditorPreview.
- Parameters:
final UIEditorPreview.PreviewTypeuiEditorPreview
getUiTypeIcon
String
getUiTypeIcon
()
Method getUiTypeIcon.
setUiTypeIcon
void
setUiTypeIcon
(final String uiTypeIcon)
Method setUiTypeIcon.
- Parameters:
final StringuiTypeIcon
getUiEditorIgnore
Boolean
getUiEditorIgnore
()
Method getUiEditorIgnore.
setUiEditorIgnore
void
setUiEditorIgnore
(final Boolean uiEditorIgnore)
Method setUiEditorIgnore.
- Parameters:
final BooleanuiEditorIgnore
getAllowEmptyObject
Boolean
getAllowEmptyObject
()
Method getAllowEmptyObject.
setAllowEmptyObject
void
setAllowEmptyObject
(final Boolean allowEmptyObject)
Method setAllowEmptyObject.
- Parameters:
final BooleanallowEmptyObject
getUiPropertyTitle
String
getUiPropertyTitle
()
Method getUiPropertyTitle.
setUiPropertyTitle
void
setUiPropertyTitle
(final String uiPropertyTitle)
Method setUiPropertyTitle.
- Parameters:
final StringuiPropertyTitle
getUiSectionStart
String
getUiSectionStart
()
Method getUiSectionStart.
setUiSectionStart
void
setUiSectionStart
(final String uiSectionStart)
Method setUiSectionStart.
- Parameters:
final StringuiSectionStart
isInheritsProperty
boolean
isInheritsProperty
()
Method isInheritsProperty.
setInheritsProperty
void
setInheritsProperty
(final boolean inheritsProperty)
Method setInheritsProperty.
- Parameters:
final booleaninheritsProperty
getMergesProperties
boolean
getMergesProperties
()
Method getMergesProperties.
setMergesProperties
void
setMergesProperties
(final boolean mergesProperties)
Method setMergesProperties.
- Parameters:
final booleanmergesProperties
getUiRebuildCaches
UIRebuildCaches.ClientCache[]
getUiRebuildCaches
()
Method getUiRebuildCaches.
setUiRebuildCaches
void
setUiRebuildCaches
(final UIRebuildCaches.ClientCache[] uiRebuildCaches)
Method setUiRebuildCaches.
- Parameters:
final UIRebuildCaches.ClientCache[]uiRebuildCaches
getUiRebuildCachesForChildProperties
Boolean
getUiRebuildCachesForChildProperties
()
Method getUiRebuildCachesForChildProperties.
setUiRebuildCachesForChildProperties
void
setUiRebuildCachesForChildProperties
(final Boolean uiRebuildCachesForChildProperties)
Method setUiRebuildCachesForChildProperties.
- Parameters:
final BooleanuiRebuildCachesForChildProperties
getUiSidebarButtons
UIButton[]
getUiSidebarButtons
()
Method getUiSidebarButtons.
setUiSidebarButtons
void
setUiSidebarButtons
(final UIButton[] uiSidebarButtons)
Method setUiSidebarButtons.
- Parameters:
final UIButton[]uiSidebarButtons
getUiCollapsedByDefault
Boolean
getUiCollapsedByDefault
()
Method getUiCollapsedByDefault.
setUiCollapsedByDefault
void
setUiCollapsedByDefault
(final Boolean uiCollapsedByDefault)
Method setUiCollapsedByDefault.
- Parameters:
final BooleanuiCollapsedByDefault
getUiCreateButtons
UIButton[]
getUiCreateButtons
()
Method getUiCreateButtons.
setUiCreateButtons
void
setUiCreateButtons
(final UIButton[] uiCreateButtons)
Method setUiCreateButtons.
- Parameters:
final UIButton[]uiCreateButtons
InheritSettings
public
InheritSettings
(final String type)
Method InheritSettings.
- Parameters:
final Stringtype
getMapKey
String
getMapKey
()
Method getMapKey.
setMapKey
void
setMapKey
(final String mapKey)
Method setMapKey.
- Parameters:
final StringmapKey
getMapKeyValue
String
getMapKeyValue
()
Method getMapKeyValue.
setMapKeyValue
void
setMapKeyValue
(final String mapKeyValue)
Method setMapKeyValue.
- Parameters:
final StringmapKeyValue
decode
Method decode.
- Parameters:
@Nonnull final BsonValuebsonValue@Nonnull final ExtraInfoextraInfo
ArraySchema
new
ArraySchema
()
Method ArraySchema.
NullSchema
new
NullSchema
()
Method NullSchema.
IllegalArgumentException
new
IllegalArgumentException
("Unknown type (in array)
Method IllegalArgumentException.
- Parameters:
"Unknown type (inarray
StringSchema
new
StringSchema
()
Method StringSchema.
BooleanSchema
new
BooleanSchema
()
Method BooleanSchema.