insensa.XMLProperties
Class CXmlViewProperties

java.lang.Object
  extended by insensa.XMLProperties.CXmlViewProperties

public class CXmlViewProperties
extends java.lang.Object


Field Summary
private  org.jdom.Document doc
           
private  java.lang.String filename
           
(package private)  java.util.concurrent.locks.Lock lock
           
private  org.jdom.Element rootDoc
           
private  java.lang.String separator
           
private  java.io.FileOutputStream streamOut
           
private  java.io.File xmlFile
           
private  org.jdom.output.XMLOutputter xmlOut
           
 
Constructor Summary
CXmlViewProperties(java.lang.String path)
           
 
Method Summary
 void addExpandList(java.util.List<java.lang.Integer> iList)
           
 void close()
           
 boolean delete()
           
 java.util.List<java.lang.Integer> getExpandList()
           
 java.lang.String getLastImportedFilePath()
           
 java.lang.String getLastImportedFolderPath()
           
 void setLastImportedFilePath(java.lang.String path)
           
 void setLastImportedFolderPath(java.lang.String path)
           
 void writeConfig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

private java.lang.String filename

doc

private org.jdom.Document doc

rootDoc

private org.jdom.Element rootDoc

xmlOut

private org.jdom.output.XMLOutputter xmlOut

streamOut

private java.io.FileOutputStream streamOut

xmlFile

private java.io.File xmlFile

separator

private java.lang.String separator

lock

final java.util.concurrent.locks.Lock lock
Constructor Detail

CXmlViewProperties

public CXmlViewProperties(java.lang.String path)
Parameters:
path -
Method Detail

addExpandList

public void addExpandList(java.util.List<java.lang.Integer> iList)
                   throws java.io.IOException
Parameters:
iList -
Throws:
java.io.IOException

close

public void close()

delete

public boolean delete()
Returns:

getExpandList

public java.util.List<java.lang.Integer> getExpandList()
Returns:

getLastImportedFilePath

public java.lang.String getLastImportedFilePath()
                                         throws java.io.IOException
Returns:
Throws:
java.io.IOException

getLastImportedFolderPath

public java.lang.String getLastImportedFolderPath()
                                           throws java.io.IOException
Returns:
path of the last imported folder or an empty String if this there is no property available
Throws:
java.io.IOException

setLastImportedFilePath

public void setLastImportedFilePath(java.lang.String path)
                             throws java.io.IOException
Parameters:
path -
Throws:
java.io.IOException

setLastImportedFolderPath

public void setLastImportedFolderPath(java.lang.String path)
                               throws java.io.IOException
Parameters:
path -
Throws:
java.io.IOException

writeConfig

public void writeConfig()
                 throws java.io.IOException
Throws:
java.io.IOException