|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.util.ImporterPage
ch.marlovits.firstnames.MarlovitsFirstnameImporter
public class MarlovitsFirstnameImporter
class for importing data into the table ch_marlovits_firstnames inside the importer dialog.
Nested Class Summary | |
---|---|
class |
MarlovitsFirstnameImporter.HtmlParser
|
Nested classes/interfaces inherited from class ch.elexis.util.ImporterPage |
---|
ImporterPage.DBBasedImporter, ImporterPage.DirectoryBasedImporter, ImporterPage.FileBasedImporter, ImporterPage.ImporterJob, ImporterPage.ODBCBasedImporter |
Field Summary |
---|
Fields inherited from class ch.elexis.util.ImporterPage |
---|
results |
Constructor Summary | |
---|---|
MarlovitsFirstnameImporter()
|
Method Summary | |
---|---|
void |
collect()
collect data from dialog since when calling doImport the dialog has already been disposed of. |
static int |
countLines(java.io.File file)
return the number of lines in a file |
Composite |
createPage(Composite parent)
Die Dialogseite erstellen, um ggf. eine Datenquelle auszuwählen oder weitere Erläuterungen zu geben. |
IStatus |
doImport(IProgressMonitor monitor)
import data from online-databases or from a file. removes duplicates at the end of the proc |
java.lang.String |
getDescription()
Eine längere Beschreibung für den Message-Bereich des Dialogs |
static IProgressMonitor |
getSubMonitor(IProgressMonitor pMonitor,
int pMainTaskTicks)
|
java.lang.String |
getTitle()
Ein Titel, der auf der Titelzeile des Importers erscheint |
static java.lang.String |
readContent(java.lang.String urlText)
return the contents of a html page, use default encoding |
static java.lang.String |
readContent(java.lang.String urlText,
java.lang.String charSet)
return the contents of a html page |
boolean |
removeDuplicates(IProgressMonitor monitor)
remove duplicates in imported entries from the db: calc unisex genders or delete duplicates |
Methods inherited from class ch.elexis.util.ImporterPage |
---|
run, setInitializationData |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarlovitsFirstnameImporter()
Method Detail |
---|
public java.lang.String getTitle()
ImporterPage
getTitle
in class ImporterPage
public java.lang.String getDescription()
ImporterPage
getDescription
in class ImporterPage
public Composite createPage(Composite parent)
ImporterPage
createPage
in class ImporterPage
parent
- Achtung: Hat schon ein GridlLayout, darf nicht geändert werden.public void collect()
collect
in class ImporterPage
public IStatus doImport(IProgressMonitor monitor) throws java.lang.Exception
doImport
in class ImporterPage
java.lang.Exception
public boolean removeDuplicates(IProgressMonitor monitor)
public static java.lang.String readContent(java.lang.String urlText) throws java.io.IOException, java.net.MalformedURLException
urlText
- = the url from where the page should be read
java.io.IOException
java.net.MalformedURLException
public static java.lang.String readContent(java.lang.String urlText, java.lang.String charSet) throws java.io.IOException, java.net.MalformedURLException
urlText
- = the url from where the page should be readcharSet
- = the character set to be used for page-encoding
java.io.IOException
java.net.MalformedURLException
public static int countLines(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static IProgressMonitor getSubMonitor(IProgressMonitor pMonitor, int pMainTaskTicks)
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |