org.sourcejammer.project.model.filesys
Class FileNodeDeserializer

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

public class FileNodeDeserializer
extends NodeDeserializer

Title: $FileName: FileNodeDeserializer.java$

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

$Description: Deserializes FileNode objects from XML.$
$KeyWordsOff: $


Field Summary
private  org.w3c.dom.Document doc
           
private  FileNodeFS file
           
private  long key
           
 
Constructor Summary
FileNodeDeserializer(org.w3c.dom.Document doc)
           
 
Method Summary
 NodeFS deserialize()
           
private  void initializeFile()
           
private  void setBasicFileInfo(FileNodeFS file, long key, org.w3c.dom.Element elmInfo)
           
private  void setCheckOutInfo(FileNodeFS file, long key, org.w3c.dom.Element elmInfo)
           
 void setFile(FileNodeFS file)
          Sets the file.
 void setKey(long key)
          Sets the key.
private  void setParentList(FileNodeFS file, long key, org.w3c.dom.Element elmRoot)
           
private  void setRemovedParentList(FileNodeFS file, long key, org.w3c.dom.Element elmRoot)
           
private  void setVersionChildren(FileNodeFS file, long key, org.w3c.dom.Element elmRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.w3c.dom.Document doc

file

private FileNodeFS file

key

private long key
Constructor Detail

FileNodeDeserializer

public FileNodeDeserializer(org.w3c.dom.Document doc)
Method Detail

initializeFile

private void initializeFile()
                     throws SecurityException
SecurityException

setBasicFileInfo

private void setBasicFileInfo(FileNodeFS file,
                              long key,
                              org.w3c.dom.Element elmInfo)

setCheckOutInfo

private void setCheckOutInfo(FileNodeFS file,
                             long key,
                             org.w3c.dom.Element elmInfo)

setVersionChildren

private void setVersionChildren(FileNodeFS file,
                                long key,
                                org.w3c.dom.Element elmRoot)
                         throws org.sourcejammer.xml.XMLNodeDoesNotExistException
org.sourcejammer.xml.XMLNodeDoesNotExistException

setParentList

private void setParentList(FileNodeFS file,
                           long key,
                           org.w3c.dom.Element elmRoot)
                    throws org.sourcejammer.xml.XMLNodeDoesNotExistException,
                           SecurityException
org.sourcejammer.xml.XMLNodeDoesNotExistException
SecurityException

setRemovedParentList

private void setRemovedParentList(FileNodeFS file,
                                  long key,
                                  org.w3c.dom.Element elmRoot)
                           throws org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                  SecurityException
org.sourcejammer.xml.XMLNodeDoesNotExistException
SecurityException

deserialize

public NodeFS deserialize()
                   throws SecurityException,
                          org.sourcejammer.xml.XMLNodeDoesNotExistException
Specified by:
deserialize in class NodeDeserializer
SecurityException
org.sourcejammer.xml.XMLNodeDoesNotExistException
See Also:
org.sourcejammer.project.model.filesys.NodeDeserializer#deserialize(Document)

setFile

public void setFile(FileNodeFS file)
Sets the file.

Parameters:
file - The file to set

setKey

public void setKey(long key)
Sets the key.

Parameters:
key - The key to set


Copyright 2003 Soucejammer project.