org.xworker.thingManagers.xml
类 XmlCoder

java.lang.Object
  继承者 org.xworker.thingManagers.xml.XmlCoder

public class XmlCoder
extends java.lang.Object

XML格式的事物编码。

作者:
zyx

构造方法摘要
XmlCoder()
           
 
方法摘要
static Thing parse(org.w3c.dom.Element element, java.util.List<Thing> descriptors)
          使用一个描述者来分析XML的元素。
static Thing parse(java.lang.String content, java.util.List<Thing> descriptors)
          分析XML字符串并返回事物。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

XmlCoder

public XmlCoder()
方法详细信息

parse

public static Thing parse(java.lang.String content,
                          java.util.List<Thing> descriptors)
                   throws javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXException,
                          java.io.IOException
分析XML字符串并返回事物。

参数:
content - XML字符串
descripotrs - 用来分析XML的描述者
返回:
事物
抛出:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException

parse

public static Thing parse(org.w3c.dom.Element element,
                          java.util.List<Thing> descriptors)
使用一个描述者来分析XML的元素。

参数:
element - xml元素
descriptor - 描述者
返回:
分析后的事物