org.sourcejammer.client.gui.conf
Class ArchiveConf

java.lang.Object
  |
  +--org.sourcejammer.client.gui.conf.ArchiveConf

public class ArchiveConf
extends java.lang.Object

Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:

Version:
$Revision: 1.3 $
Author:
Robert MacGrogan

Field Summary
static java.lang.String ARCHIVE_CONF_FILE_NAME
           
static java.lang.String ARCHIVE_NAME_NODE
           
static java.lang.String ARCHIVE_NODE
           
static java.lang.String ARCHIVES_NODE
           
static java.lang.String ID_ATTR
           
static java.lang.String NAME_NODE
           
static java.lang.String NEXT_ID_NODE
           
static java.lang.String URL_NODE
           
 
Constructor Summary
private ArchiveConf()
           
 
Method Summary
static void addOrUpdateArchive(ArchiveBean bn)
           
static void deleteArchiveConfInfo(int iID)
           
static ArchiveBean[] getAllArchives()
           
private static org.w3c.dom.Document getArchiveConfDocument()
          Tries to read doc from filesys.
static ArchiveBean getArchiveConfInfo(int iID)
           
private static org.w3c.dom.Element getArchiveElementByID(int id, org.w3c.dom.Element elmRoot)
           
private static ArchiveBean getArchvieBeanFromArchiveElement(org.w3c.dom.Element elmArchive)
           
private static org.w3c.dom.Document readArchiveConfDocument()
          Read the archive conf file from the filesys and return it as a Document.
private static void saveArchiveConfDocument(org.w3c.dom.Document doc)
          Save the archive conf document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARCHIVE_CONF_FILE_NAME

public static final java.lang.String ARCHIVE_CONF_FILE_NAME
See Also:
Constant Field Values

ARCHIVES_NODE

public static final java.lang.String ARCHIVES_NODE
See Also:
Constant Field Values

ARCHIVE_NODE

public static final java.lang.String ARCHIVE_NODE
See Also:
Constant Field Values

NAME_NODE

public static final java.lang.String NAME_NODE
See Also:
Constant Field Values

URL_NODE

public static final java.lang.String URL_NODE
See Also:
Constant Field Values

ARCHIVE_NAME_NODE

public static final java.lang.String ARCHIVE_NAME_NODE
See Also:
Constant Field Values

NEXT_ID_NODE

public static final java.lang.String NEXT_ID_NODE
See Also:
Constant Field Values

ID_ATTR

public static final java.lang.String ID_ATTR
See Also:
Constant Field Values
Constructor Detail

ArchiveConf

private ArchiveConf()
Method Detail

readArchiveConfDocument

private static org.w3c.dom.Document readArchiveConfDocument()
                                                     throws java.io.IOException,
                                                            org.xml.sax.SAXException
Read the archive conf file from the filesys and return it as a Document.

java.io.IOException
org.xml.sax.SAXException

getArchiveConfDocument

private static org.w3c.dom.Document getArchiveConfDocument()
                                                    throws java.io.IOException,
                                                           org.xml.sax.SAXException
Tries to read doc from filesys. If doc does not exist, builds a base document and returns that.

java.io.IOException
org.xml.sax.SAXException

saveArchiveConfDocument

private static void saveArchiveConfDocument(org.w3c.dom.Document doc)
                                     throws java.io.IOException
Save the archive conf document.

java.io.IOException

addOrUpdateArchive

public static void addOrUpdateArchive(ArchiveBean bn)
                               throws java.io.IOException
java.io.IOException

deleteArchiveConfInfo

public static void deleteArchiveConfInfo(int iID)
                                  throws java.io.IOException
java.io.IOException

getAllArchives

public static ArchiveBean[] getAllArchives()
                                    throws java.io.IOException
java.io.IOException

getArchvieBeanFromArchiveElement

private static ArchiveBean getArchvieBeanFromArchiveElement(org.w3c.dom.Element elmArchive)

getArchiveElementByID

private static org.w3c.dom.Element getArchiveElementByID(int id,
                                                         org.w3c.dom.Element elmRoot)

getArchiveConfInfo

public static ArchiveBean getArchiveConfInfo(int iID)
                                      throws java.io.IOException
java.io.IOException


Copyright 2003 Soucejammer project.