com.agimatec.utility.fileimport.groovy
Class XmlSlurperSpec
java.lang.Object
com.agimatec.utility.fileimport.groovy.XmlSlurperSpec
- All Implemented Interfaces:
- ImporterSpec
public class XmlSlurperSpec
- extends Object
- implements ImporterSpec
Description: Specify how to use groovy XmlSlurper with provided Closures to
handle the import
User: roman.stumm
Date: 20.11.2007
Time: 15:24:53
Copyright: Agimatec GmbH
|
Field Summary |
protected static org.apache.log4j.Logger |
log
|
|
Constructor Summary |
XmlSlurperSpec(groovy.lang.Closure nextProcessing,
groovy.lang.Closure elementProcessing)
|
XmlSlurperSpec(groovy.lang.Closure headerProcessing,
groovy.lang.Closure gpathRetriever,
groovy.lang.Closure elementProcessing)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
XmlSlurperSpec
public XmlSlurperSpec(groovy.lang.Closure nextProcessing,
groovy.lang.Closure elementProcessing)
XmlSlurperSpec
public XmlSlurperSpec(groovy.lang.Closure headerProcessing,
groovy.lang.Closure gpathRetriever,
groovy.lang.Closure elementProcessing)
getErrorWriter
public Writer getErrorWriter()
- Description copied from interface:
ImporterSpec
- convience method -
- Specified by:
getErrorWriter in interface ImporterSpec
- Returns:
- null or a writer for data that cannot be imported
createProcessor
public ImporterProcessor createProcessor(Importer importer)
- Description copied from interface:
ImporterSpec
- factory method - create a processor capable to process the data to be imported.
- Specified by:
createProcessor in interface ImporterSpec
- Returns:
processFirst
public void processFirst(XmlImportProcessor processor)
iterator
public Iterator iterator(XmlImportProcessor processor)
processEach
public void processEach(XmlImportProcessor processor)
Copyright © 2008-2011. All Rights Reserved.