public class XmlDescriptorObjectMapper extends DescriptorObjectMapper
ObjectMapper that reads ObjectDescriptors
from an XML document for mapping.| Constructor and Description |
|---|
XmlDescriptorObjectMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addXmlObjectDescriptor(org.w3c.dom.Document doc)
Adds the given document configuration.
|
void |
addXmlObjectDescriptor(java.io.File file)
Adds the given document configuration.
|
void |
addXmlObjectDescriptor(java.io.InputStream inputStream)
Adds the given document configuration.
|
registerObjectDescriptormap, registerTypeConverter, unmap, unmapValuepublic void addXmlObjectDescriptor(java.io.File file)
throws javax.xml.xpath.XPathExpressionException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.lang.ClassNotFoundException
file - the Filejava.io.IOException - on errorjavax.xml.parsers.ParserConfigurationException - on errororg.xml.sax.SAXException - on errorjavax.xml.xpath.XPathExpressionException - on errorjava.lang.ClassNotFoundException - on errorpublic void addXmlObjectDescriptor(java.io.InputStream inputStream)
throws javax.xml.xpath.XPathExpressionException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.lang.ClassNotFoundException
inputStream - the InputStreamjava.io.IOException - on errorjavax.xml.parsers.ParserConfigurationException - on errororg.xml.sax.SAXException - on errorjavax.xml.xpath.XPathExpressionException - on errorjava.lang.ClassNotFoundException - on errorpublic void addXmlObjectDescriptor(org.w3c.dom.Document doc)
throws javax.xml.xpath.XPathExpressionException,
java.lang.ClassNotFoundException
doc - the documentjavax.xml.xpath.XPathExpressionException - on errorjava.lang.ClassNotFoundException - on errorCopyright © 2013. All Rights Reserved.