|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.archiviststoolkit.importer.ImportHandler
org.archiviststoolkit.importer.XmlImportHandler
public abstract class XmlImportHandler
Base class for all CSV derived import handlers.
| Field Summary | |
|---|---|
static char |
DEFAULT_SEP
The default separator. |
protected java.lang.String |
recordTag
|
| Fields inherited from class org.archiviststoolkit.importer.ImportHandler |
|---|
file, importController |
| Constructor Summary | |
|---|---|
XmlImportHandler()
Constructor. |
|
| Method Summary | |
|---|---|
java.util.ArrayList |
getColumnList()
Get the list of columns. |
java.lang.String |
getSourceApplication()
Get the source application name. |
abstract java.lang.Object |
handleInstance(java.lang.String xmlInstanceString)
Handle a newly parsed row. |
boolean |
importFile(java.io.File file,
DomainImportController domainController,
InfiniteProgressPanel progressPanel)
Import the file. |
boolean |
importFile(java.io.File file,
DomainImportController domainController,
java.lang.String recordTag,
InfiniteProgressPanel progressPanel)
Import the file. |
boolean |
isAutoCompleteOn()
is autocomplete on. |
abstract java.util.ArrayList |
mapColumn(java.util.ArrayList dataList)
Map a column. |
java.util.List |
parse(java.lang.String line)
parse: break the input String into fields. |
void |
purify(java.util.ArrayList arrayList)
Clean the datalist. |
void |
setColumnList(java.util.ArrayList columnList)
Set the list of columns. |
void |
setSourceApplication(java.lang.String sourceApplication)
Set the source application name. |
boolean |
startImportThread(java.io.File importFile,
DomainImportController controller,
java.lang.String recordTag)
Kick off the import thread. |
| Methods inherited from class org.archiviststoolkit.importer.ImportHandler |
|---|
canImportFile, getFile, getImportController, getInitialChunk, run, startImportThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char DEFAULT_SEP
protected java.lang.String recordTag
| Constructor Detail |
|---|
public XmlImportHandler()
| Method Detail |
|---|
public abstract java.util.ArrayList mapColumn(java.util.ArrayList dataList)
dataList - the datalist
public abstract java.lang.Object handleInstance(java.lang.String xmlInstanceString)
throws UnknownLookupListException
UnknownLookupListExceptionpublic java.lang.String getSourceApplication()
public void setSourceApplication(java.lang.String sourceApplication)
sourceApplication - the name of the source applicationpublic void setColumnList(java.util.ArrayList columnList)
columnList - the list of columns.public java.util.ArrayList getColumnList()
public boolean isAutoCompleteOn()
public boolean startImportThread(java.io.File importFile,
DomainImportController controller,
java.lang.String recordTag)
importFile - the file to importcontroller - the controller to use.
public boolean importFile(java.io.File file,
DomainImportController domainController,
InfiniteProgressPanel progressPanel)
ImportHandler
importFile in class ImportHandlerfile - the file to import.domainController - the controller to use.
public boolean importFile(java.io.File file,
DomainImportController domainController,
java.lang.String recordTag,
InfiniteProgressPanel progressPanel)
file - the file to import.domainController - which controller to use.
public java.util.List parse(java.lang.String line)
line - the line to parse
public void purify(java.util.ArrayList arrayList)
arrayList - the list to be cleansed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||