org.sourcejammer.project.model.filesys
Class FileNodeSerializer

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

public class FileNodeSerializer
extends NodeSerializer

Title: $FileName: FileNodeSerializer.java$

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

$Description: Serializes FileNode objects to XML.$
$KeyWordsOff: $

Given a FileNodeFS, generates the serialized XML.

Nested Class Summary
 
Nested classes inherited from class org.sourcejammer.project.model.filesys.NodeSerializer
NodeSerializer.Attributes, NodeSerializer.NodeNames
 
Field Summary
private  FileNodeFS node
           
 
Constructor Summary
FileNodeSerializer(FileNodeFS node)
          Default constructor.
 
Method Summary
 void addBasicFileInfo(FileNodeFS file, org.w3c.dom.Element elmInfo)
          Adds all basic info to info section of XML doc.
private  void addCheckOutInfo(FileNodeFS file, org.w3c.dom.Element elmInfo)
          Adds check out info to XML doc.
private  void addParentList(FileNodeFS file, org.w3c.dom.Element elmRoot)
          Adds list of parent ids to XML doc.
private  void addRemovedParentList(FileNodeFS file, org.w3c.dom.Element elmRoot)
          Adds list of removed parent ids to XML doc.
private  void addVersionChildren(FileNodeFS file, org.w3c.dom.Element elmRoot)
          Adds list of versions to XML doc.
 org.w3c.dom.Document serialize()
          Turn a FileNodeFS object into an XML Doc for storage on file system.
 
Methods inherited from class org.sourcejammer.project.model.filesys.NodeSerializer
buildBasicNodeDocument, childToElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

private FileNodeFS node
Constructor Detail

FileNodeSerializer

public FileNodeSerializer(FileNodeFS node)
Default constructor. Pass in node to be serialized and call serialize.

Method Detail

addBasicFileInfo

public void addBasicFileInfo(FileNodeFS file,
                             org.w3c.dom.Element elmInfo)
Adds all basic info to info section of XML doc.


addCheckOutInfo

private void addCheckOutInfo(FileNodeFS file,
                             org.w3c.dom.Element elmInfo)
Adds check out info to XML doc.


addVersionChildren

private void addVersionChildren(FileNodeFS file,
                                org.w3c.dom.Element elmRoot)
Adds list of versions to XML doc.


addParentList

private void addParentList(FileNodeFS file,
                           org.w3c.dom.Element elmRoot)
Adds list of parent ids to XML doc.


addRemovedParentList

private void addRemovedParentList(FileNodeFS file,
                                  org.w3c.dom.Element elmRoot)
Adds list of removed parent ids to XML doc.


serialize

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

Specified by:
serialize in class NodeSerializer


Copyright 2003 Soucejammer project.