Package | Description |
---|---|
org.simpleyaml.configuration.serialization |
Modifier and Type | Method and Description |
---|---|
ConfigurationSerializable |
ConfigurationSerialization.deserialize(Map<String,?> args) |
static ConfigurationSerializable |
ConfigurationSerialization.deserializeObject(Map<String,?> args)
Attempts to deserialize the given arguments into a new instance of the
given class.
|
static ConfigurationSerializable |
ConfigurationSerialization.deserializeObject(Map<String,?> args,
Class<? extends ConfigurationSerializable> clazz)
Attempts to deserialize the given arguments into a new instance of the
given class.
|
protected ConfigurationSerializable |
ConfigurationSerialization.deserializeViaCtor(Constructor<? extends ConfigurationSerializable> ctor,
Map<String,?> args) |
protected ConfigurationSerializable |
ConfigurationSerialization.deserializeViaMethod(Method method,
Map<String,?> args) |
Modifier and Type | Method and Description |
---|---|
static Class<? extends ConfigurationSerializable> |
ConfigurationSerialization.getClassByAlias(String alias)
Attempts to get a registered
ConfigurationSerializable class by
its alias |
protected Constructor<? extends ConfigurationSerializable> |
ConfigurationSerialization.getConstructor() |
Modifier and Type | Method and Description |
---|---|
static ConfigurationSerializable |
ConfigurationSerialization.deserializeObject(Map<String,?> args,
Class<? extends ConfigurationSerializable> clazz)
Attempts to deserialize the given arguments into a new instance of the
given class.
|
protected ConfigurationSerializable |
ConfigurationSerialization.deserializeViaCtor(Constructor<? extends ConfigurationSerializable> ctor,
Map<String,?> args) |
static String |
ConfigurationSerialization.getAlias(Class<? extends ConfigurationSerializable> clazz)
Gets the correct alias for the given
ConfigurationSerializable
class |
static void |
ConfigurationSerialization.registerClass(Class<? extends ConfigurationSerializable> clazz)
Registers the given
ConfigurationSerializable class by its
alias |
static void |
ConfigurationSerialization.registerClass(Class<? extends ConfigurationSerializable> clazz,
String alias)
Registers the given alias to the specified
ConfigurationSerializable class |
static void |
ConfigurationSerialization.unregisterClass(Class<? extends ConfigurationSerializable> clazz)
Unregisters any aliases for the specified
ConfigurationSerializable class |
Constructor and Description |
---|
ConfigurationSerialization(Class<? extends ConfigurationSerializable> clazz) |
Copyright © 2023. All rights reserved.