Class EntityProcess


  • public final class EntityProcess
    extends java.lang.Object
    This class is used to export game objects with supported annotation to JSON data (backup) or create game objects from JSON data (restore).
    Author:
    kong
    See Also:
    Column, Entity, Sanitizer
    • Constructor Summary

      Constructors 
      Constructor Description
      EntityProcess()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String exportToJSON​(java.lang.Object object)
      Convert the desired object to JSON data
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntityProcess

        public EntityProcess()
    • Method Detail

      • exportToJSON

        public static java.lang.String exportToJSON​(java.lang.Object object)
                                             throws java.lang.Exception
        Convert the desired object to JSON data
        Parameters:
        object - the desired object
        Returns:
        the JSON data in string, see String
        Throws:
        java.lang.Exception - the exception