Class ListsuffixResultSerializer


  • public class ListsuffixResultSerializer
    extends Object
    对 后缀为_$n 的 xml节点序列化
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • ListsuffixResultSerializer

        public ListsuffixResultSerializer()
    • Method Detail

      • serializeToJSON

        public static com.alibaba.fastjson.JSONObject serializeToJSON​(Object object)
        序列化为json
        Parameters:
        object -
        Returns:
        json
      • listsuffixConvertMap

        public static Map<String,​String> listsuffixConvertMap​(List<?> listsuffix)
        list对象转换为map的$n形式
        Parameters:
        listsuffix -
        Returns:
      • serializeToXML

        public static String serializeToXML​(Object object)
        序列化为xml
        Parameters:
        object -
        Returns:
        xml