cn.gtmap.estateplat.core.support.xml
类 XmlUtils<T>

java.lang.Object
  继承者 cn.gtmap.estateplat.core.support.xml.XmlUtils<T>

public class XmlUtils<T>
extends Object

p

版本:
1.0, 2015/11/25
作者:
zx

构造方法摘要
XmlUtils(Class<?>... types)
           
 
方法摘要
 Unmarshaller createUnmarshaller()
          创建UnMarshaller.
 String entityToXml(Object object)
           
 String entityToXml(Object object, String encoding)
           
<T> T
fromXml(String xml)
          Xml->Java Object.
<T> T
fromXml(String xml, boolean caseSensitive)
          Xml->Java Object, 支持大小写敏感或不敏感.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

XmlUtils

public XmlUtils(Class<?>... types)
参数:
types - 所有需要序列化的Root对象的类型.
方法详细信息

entityToXml

public String entityToXml(Object object)
参数:
object -
返回:

entityToXml

public String entityToXml(Object object,
                          String encoding)

fromXml

public <T> T fromXml(String xml,
                     boolean caseSensitive)
Xml->Java Object, 支持大小写敏感或不敏感.


createUnmarshaller

public Unmarshaller createUnmarshaller()
创建UnMarshaller.


fromXml

public <T> T fromXml(String xml)
Xml->Java Object.



Copyright © 2015–2017 cn.gtmap. All rights reserved.