Class YAPIONDeserializer


  • public final class YAPIONDeserializer
    extends java.lang.Object
    • 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 deserialize
        context - 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 deserialize
        context - the context for deserialization
        typeReMapper - 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 deserialize
        typeReMapper - 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 deserialize
        context - 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 deserialize
        context - the context for deserialization
        typeReMapper - 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 YAPIONAnyType inputted
      • reducedMode

        public YAPIONDeserializer reducedMode​(boolean reducedMode)
        Set the reducedMode for this deserialization.
      • 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