org.sourcejammer.project.model.filesys
Class XMLUtilFS

java.lang.Object
  |
  +--org.sourcejammer.project.model.filesys.XMLUtilFS

public class XMLUtilFS
extends java.lang.Object

Title: $FileName: XMLUtilFS.java$

Version:
$VerNum: 5$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

Static utility methods for turning FileSys node objects into XML doc objects.

Nested Class Summary
static class XMLUtilFS.Attributes
           
static class XMLUtilFS.NodeNames
           
 
Constructor Summary
private XMLUtilFS()
           
 
Method Summary
static org.w3c.dom.Document fileNodeToXML(FileNodeFS file)
          Turn a FileNodeFS object into an XML Doc for storage on file system.
static org.w3c.dom.Document labelToXML(Label label)
           
static org.w3c.dom.Document projectNodeToXML(ProjectNodeFS project)
          Turn a ProjectNodeFS object into an XML Doc for storage on file system.
static FileNodeFS xmlToFileNode(org.w3c.dom.Document doc, FileNodeFS ndFile, long lKey)
          Build a FileNodeFS from the file node's XML doc.
static Label xmlToLabel(org.w3c.dom.Document doc)
          Parses a label xml docuemnt into an org.sourcejammer.project.controller.Label.
static java.lang.String xmlToNodeName(org.w3c.dom.Document doc)
           
static ProjectNodeFS xmlToProject(org.w3c.dom.Document doc, ProjectNodeFS ndProject, long lKey, NodeLibraryFS lib)
          Builds ProjectNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtilFS

private XMLUtilFS()
Method Detail

xmlToLabel

public static Label xmlToLabel(org.w3c.dom.Document doc)
                        throws org.sourcejammer.xml.XMLNodeDoesNotExistException,
                               org.sourcejammer.util.SourceJammerVersionException
Parses a label xml docuemnt into an org.sourcejammer.project.controller.Label.

org.sourcejammer.xml.XMLNodeDoesNotExistException
org.sourcejammer.util.SourceJammerVersionException

labelToXML

public static org.w3c.dom.Document labelToXML(Label label)

xmlToNodeName

public static java.lang.String xmlToNodeName(org.w3c.dom.Document doc)
                                      throws org.sourcejammer.xml.XMLNodeDoesNotExistException
org.sourcejammer.xml.XMLNodeDoesNotExistException

xmlToProject

public static ProjectNodeFS xmlToProject(org.w3c.dom.Document doc,
                                         ProjectNodeFS ndProject,
                                         long lKey,
                                         NodeLibraryFS lib)
                                  throws org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                         SecurityException,
                                         org.sourcejammer.project.NodeDoesNotExistException,
                                         FileAccessException
Builds ProjectNode. ProjectNode should be locked and key passed in.

org.sourcejammer.xml.XMLNodeDoesNotExistException
SecurityException
org.sourcejammer.project.NodeDoesNotExistException
FileAccessException

xmlToFileNode

public static FileNodeFS xmlToFileNode(org.w3c.dom.Document doc,
                                       FileNodeFS ndFile,
                                       long lKey)
                                throws org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                       SecurityException
Build a FileNodeFS from the file node's XML doc. File node should already be locked and key should be passed in.

org.sourcejammer.xml.XMLNodeDoesNotExistException
SecurityException

projectNodeToXML

public static org.w3c.dom.Document projectNodeToXML(ProjectNodeFS project)
Turn a ProjectNodeFS object into an XML Doc for storage on file system.


fileNodeToXML

public static org.w3c.dom.Document fileNodeToXML(FileNodeFS file)
Turn a FileNodeFS object into an XML Doc for storage on file system.



Copyright 2003 Soucejammer project.