Class AbstractTagImporter
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.importexport.AbstractTagImporter
-
- All Implemented Interfaces:
TagImporter
- Direct Known Subclasses:
TagCSVImporter
,TagXMLImporter
public abstract class AbstractTagImporter extends java.lang.Object implements TagImporter
Created by colby.clegg on 12/24/2014.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractTagImporter.TagPrototype
-
Field Summary
Fields Modifier and Type Field Description protected java.io.File
file
protected java.util.Locale
fileLocale
protected TagPath
selectedTarget
-
Constructor Summary
Constructors Constructor Description AbstractTagImporter(java.io.File file, TagPath selectedTarget)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LoggerEx
getLogger()
protected abstract java.lang.String
getLoggerName()
abstract java.util.List<TagConfiguration>
importFromString(java.lang.String importStr, TaskProgressListener listener)
protected java.util.List<TagConfiguration>
processTagsElement(java.util.List<AbstractTagImporter.TagPrototype> tags, TaskProgressListener progress)
This takes the imported data and loads it into the objects in the super type that will then be used to build the final results.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.importexport.TagImporter
runImport
-
-
-
-
Field Detail
-
selectedTarget
protected TagPath selectedTarget
-
file
protected java.io.File file
-
fileLocale
protected java.util.Locale fileLocale
-
-
Constructor Detail
-
AbstractTagImporter
public AbstractTagImporter(java.io.File file, TagPath selectedTarget)
-
-
Method Detail
-
getLoggerName
protected abstract java.lang.String getLoggerName()
-
getLogger
public LoggerEx getLogger()
-
importFromString
public abstract java.util.List<TagConfiguration> importFromString(java.lang.String importStr, TaskProgressListener listener) throws java.lang.Exception
- Throws:
java.lang.Exception
-
processTagsElement
protected java.util.List<TagConfiguration> processTagsElement(java.util.List<AbstractTagImporter.TagPrototype> tags, TaskProgressListener progress)
This takes the imported data and loads it into the objects in the super type that will then be used to build the final results.
-
-