Class CustomPropertyAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList, Map<String, ICustomProperty>>
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter

public class CustomPropertyAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList, Map<String, ICustomProperty>>

The CustomPropertyAdapter class is an implementation of the XmlAdapter that facilitates the conversion between a CustomPropertyAdapter.PropertyList and a Map of custom properties.

This adapter is used for XML serialization and deserialization of custom properties, ensuring proper handling of property types, values, and locations.

  • Constructor Details

    • CustomPropertyAdapter

      public CustomPropertyAdapter()
  • Method Details

    • unmarshal

      public Map<String, ICustomProperty> unmarshal(de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList v)
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList, Map<String, ICustomProperty>>
    • marshal

      public de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList marshal(Map<String, ICustomProperty> v)
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList, Map<String, ICustomProperty>>