org.archiviststoolkit.importer
Class ImportUtils

java.lang.Object
  extended by org.archiviststoolkit.importer.ImportUtils

public class ImportUtils
extends java.lang.Object


Constructor Summary
ImportUtils()
           
 
Method Summary
static java.io.File chooseFile(java.awt.Component parent)
           
static java.io.File chooseFile(java.awt.Component parent, SimpleFileFilter fileFilter)
           
static java.lang.String loadFileIntoString(java.lang.String filePath)
           
static java.util.ArrayList<java.lang.String> loadFileIntoStringArray(java.io.File file)
           
static void nullSafeDateSet(DomainObject domainObject, java.lang.String propertyName, javax.xml.datatype.XMLGregorianCalendar date)
           
static void nullSafeSet(DomainObject domainObject, java.lang.String propertyName, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportUtils

public ImportUtils()
Method Detail

loadFileIntoStringArray

public static java.util.ArrayList<java.lang.String> loadFileIntoStringArray(java.io.File file)

loadFileIntoString

public static java.lang.String loadFileIntoString(java.lang.String filePath)
                                           throws java.io.IOException
Throws:
java.io.IOException

chooseFile

public static java.io.File chooseFile(java.awt.Component parent)

chooseFile

public static java.io.File chooseFile(java.awt.Component parent,
                                      SimpleFileFilter fileFilter)

nullSafeSet

public static void nullSafeSet(DomainObject domainObject,
                               java.lang.String propertyName,
                               java.lang.Object value)
                        throws java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException,
                               UnknownLookupListException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
UnknownLookupListException

nullSafeDateSet

public static void nullSafeDateSet(DomainObject domainObject,
                                   java.lang.String propertyName,
                                   javax.xml.datatype.XMLGregorianCalendar date)
                            throws java.lang.IllegalAccessException,
                                   java.lang.reflect.InvocationTargetException,
                                   UnknownLookupListException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
UnknownLookupListException