org.eclipse.datatools.connectivity.drivers
Class XMLFileManager

java.lang.Object
  extended by org.eclipse.datatools.connectivity.drivers.XMLFileManager

public class XMLFileManager
extends java.lang.Object

Basic XML file manager

Author:
brianf

Constructor Summary
XMLFileManager()
          Constructor
 
Method Summary
static java.lang.String getFileDateTimeStamp()
          Returns date last the file was last modified
static java.lang.String getFileName()
          Return the file name
static org.eclipse.core.runtime.IPath getStorageLocation()
          Get property set storage location
static IPropertySet[] loadPropertySets()
          Load all property sets from storage
static void saveNamedPropertySet(IPropertySet[] pss)
          Save property sets
static void setFileName(java.lang.String name)
          Set the file name
static void setStorageLocation(org.eclipse.core.runtime.IPath location)
          Set property set storage location
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFileManager

public XMLFileManager()
Constructor

Method Detail

saveNamedPropertySet

public static void saveNamedPropertySet(IPropertySet[] pss)
                                 throws org.eclipse.core.runtime.CoreException
Save property sets

Parameters:
pss - To be saved property sets
Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

loadPropertySets

public static IPropertySet[] loadPropertySets()
                                       throws org.eclipse.core.runtime.CoreException
Load all property sets from storage

Returns:
property sets
Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

getStorageLocation

public static org.eclipse.core.runtime.IPath getStorageLocation()
Get property set storage location

Returns:
location of the connection profiles

setStorageLocation

public static void setStorageLocation(org.eclipse.core.runtime.IPath location)
Set property set storage location

Parameters:
location - where connection profiles storage is put

getFileName

public static java.lang.String getFileName()
Return the file name

Returns:
String

setFileName

public static void setFileName(java.lang.String name)
Set the file name

Parameters:
name -

getFileDateTimeStamp

public static java.lang.String getFileDateTimeStamp()
Returns date last the file was last modified

Returns:
String