Package com.atlassian.jira.util
Interface XmlConverter
- All Known Implementing Classes:
DefaultXmlConverter
public interface XmlConverter
Responsible for serializing/deserializing java objects to/from xml.
-
Method Summary
-
Method Details
-
toXml
Serializes object to xml.- Parameters:
obj
- instance of any class. Can be null.- Returns:
- String with serialized object. If obj is null, returns null.
-
fromXml
Deserializes object from xml.- Parameters:
xml
- java object serialized to xml. Can be null.- Returns:
- Deserialized object. If xml is null or empty, returns null.
-