public class XmlFileSystemResource extends FileSystemResource implements XmlDataSource
FileSystemResource
class to support XML file as a DataProvider to be used by
XmlDataProviderImpl
.Constructor and Description |
---|
XmlFileSystemResource(String fileName,
Class<?> cls)
Constructor to accept full path of XML file, and declared type indicated by
cls represented by the XML
data. |
XmlFileSystemResource(String fileName,
Map<String,Class<?>> xpathMap)
Constructor to accept full path of XML file, and multiple declared types at multiple XPaths represented by the
XML data.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Class<?>> |
getXpathMap()
Gets the map of
String representing XPath and the type represented by the node evaluated by the XPath. |
getCls, getInputStream, getType, setCls, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCls, getInputStream, getType, setCls
public XmlFileSystemResource(String fileName, Class<?> cls)
cls
represented by the XML
data.fileName
- The complete path of the file resource including the file name.cls
- The declared type modeled by the XML content in the file at fileName
.public XmlFileSystemResource(String fileName, Map<String,Class<?>> xpathMap)
fileName
- The complete path of the file resource including the file name.xpathMap
- The map containing the XPath string and the type represented by the node evaluated using the XPath.public Map<String,Class<?>> getXpathMap()
String
representing XPath and the type represented by the node evaluated by the XPath.getXpathMap
in interface XmlDataSource
Map<String, Class<?>>
map. Returns null if the instance was not initialized using
XmlFileSystemResource(String, Map)
or
XmlFileSystemResource(String, Class)
constructors.Copyright © 2016 PayPal Open Source. All rights reserved.