Package yapion.serializing
Class YAPIONDeserializer
- java.lang.Object
-
- yapion.serializing.YAPIONDeserializer
-
public final class YAPIONDeserializer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description YAPIONDeserializer(@NonNull YAPIONObject yapionObject)Creates a YAPIONDeserializer for deserializing a YAPIONObject.YAPIONDeserializer(@NonNull YAPIONObject yapionObject, java.lang.String context)Creates a YAPIONDeserializer for deserializing a YAPIONObject with a specified context.YAPIONDeserializer(@NonNull YAPIONObject yapionObject, java.lang.String context, @NonNull TypeReMapper typeReMapper)Creates a YAPIONDeserializer for deserializing a YAPIONObject with a specified context.
-
Method Summary
Modifier and Type Method Description static java.lang.Objectdeserialize(@NonNull YAPIONObject yapionObject)Serialize an YAPION Object to an Object.static java.lang.Objectdeserialize(@NonNull YAPIONObject yapionObject, @NonNull TypeReMapper typeReMapper)Serialize an YAPION Object to an Object.static java.lang.Objectdeserialize(@NonNull YAPIONObject yapionObject, java.lang.String context)Serialize an YAPION Object to an Object.static java.lang.Objectdeserialize(@NonNull YAPIONObject yapionObject, java.lang.String context, @NonNull TypeReMapper typeReMapper)Serialize an YAPION Object to an Object.DeserializeResultgetDeserializeResult()Get theDeserializeResult.java.lang.ObjectgetObject()Get the deserialized Object.java.lang.ObjectgetObjectOrException()Get the deserialized Object.YAPIONDeserializerparse()Parses the YAPIONObject to the Object.java.lang.Objectparse(YAPIONAnyType yapionAnyType)YAPIONDeserializerreducedMode(boolean reducedMode)Set the reducedMode for this deserialization.
-
-
-
Constructor Detail
-
YAPIONDeserializer
public YAPIONDeserializer(@NonNull @NonNull YAPIONObject yapionObject)Creates a YAPIONDeserializer for deserializing a YAPIONObject.- Parameters:
yapionObject- to deserialize
-
YAPIONDeserializer
public YAPIONDeserializer(@NonNull @NonNull YAPIONObject yapionObject, java.lang.String context)Creates a YAPIONDeserializer for deserializing a YAPIONObject with a specified context.- Parameters:
yapionObject- to deserializecontext- the context for deserialization
-
YAPIONDeserializer
public YAPIONDeserializer(@NonNull @NonNull YAPIONObject yapionObject, java.lang.String context, @NonNull @NonNull TypeReMapper typeReMapper)Creates a YAPIONDeserializer for deserializing a YAPIONObject with a specified context.- Parameters:
yapionObject- to deserializecontext- the context for deserializationtypeReMapper- the mapper to remap any '@type' variable to a new class
-
-
Method Detail
-
deserialize
public static java.lang.Object deserialize(@NonNull @NonNull YAPIONObject yapionObject)Serialize an YAPION Object to an Object.- Parameters:
yapionObject- to deserialize- Returns:
- Object from the YAPIONObject to deserialize
-
deserialize
public static java.lang.Object deserialize(@NonNull @NonNull YAPIONObject yapionObject, @NonNull @NonNull TypeReMapper typeReMapper)Serialize an YAPION Object to an Object.- Parameters:
yapionObject- to deserializetypeReMapper- the mapper to remap any '@type' variable to a new class- Returns:
- Object from the YAPIONObject to deserialize
-
deserialize
public static java.lang.Object deserialize(@NonNull @NonNull YAPIONObject yapionObject, java.lang.String context)Serialize an YAPION Object to an Object.- Parameters:
yapionObject- to deserializecontext- the context for deserialization- Returns:
- Object from the YAPIONObject to deserialize
-
deserialize
public static java.lang.Object deserialize(@NonNull @NonNull YAPIONObject yapionObject, java.lang.String context, @NonNull @NonNull TypeReMapper typeReMapper)Serialize an YAPION Object to an Object.- Parameters:
yapionObject- to deserializecontext- the context for deserializationtypeReMapper- the mapper to remap any '@type' variable to a new class- Returns:
- Object from the YAPIONObject to deserialize
-
parse
public java.lang.Object parse(YAPIONAnyType yapionAnyType)
- Parameters:
yapionAnyType- to parse- Returns:
- the Object of the
YAPIONAnyTypeinputted
-
reducedMode
public YAPIONDeserializer reducedMode(boolean reducedMode)
Set the reducedMode for this deserialization.
-
parse
public YAPIONDeserializer parse()
Parses the YAPIONObject to the Object.
-
getObject
public java.lang.Object getObject()
Get the deserialized Object.- Returns:
- Object from the YAPIONObject to deserialize
-
getObjectOrException
public java.lang.Object getObjectOrException()
Get the deserialized Object.- Returns:
- Object from the YAPIONObject to deserialize
-
getDeserializeResult
public DeserializeResult getDeserializeResult()
Get theDeserializeResult.- Returns:
DeserializeResultused by this instance
-
-