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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyListmarshal(Map<String, ICustomProperty> v) unmarshal(de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList v)
-
Constructor Details
-
CustomPropertyAdapter
public CustomPropertyAdapter()
-
-
Method Details
-
unmarshal
public Map<String, ICustomProperty> unmarshal(de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList v) - Specified by:
unmarshalin classjakarta.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:
marshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyAdapter.PropertyList, Map<String, ICustomProperty>>
-