Class NameableConverter<T extends Nameable>

    • Constructor Detail

      • NameableConverter

        public NameableConverter()
    • Method Detail

      • convert

        public Object convert​(T object)
        Description copied from interface: JsonConverter
        Convert the given object to a JSON-compatible object. The parameter may be null.
        Specified by:
        convert in interface JsonConverter<T extends Nameable>
        Parameters:
        object - The objcet to convert
        Returns:
        The JSON object
      • setMore

        protected void setMore​(org.json.simple.JSONObject json,
                               T object)
        Can be used by subclasses to set more properties on the JSON object. The default implementation does nothing.
        Parameters:
        json - The JSON object that store the converted properties
        object - The object that is being converted