org.sourcejammer.project.model.filesys
Class ProjectNodeSerializer

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

public class ProjectNodeSerializer
extends NodeSerializer

Title: $FileName: ProjectNodeSerializer.java$

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

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


Nested Class Summary
 
Nested classes inherited from class org.sourcejammer.project.model.filesys.NodeSerializer
NodeSerializer.Attributes, NodeSerializer.NodeNames
 
Field Summary
(package private)  ProjectNodeFS node
           
 
Constructor Summary
ProjectNodeSerializer(ProjectNodeFS node)
           
 
Method Summary
private  void addBasicProjectInfo(ProjectNodeFS proj, org.w3c.dom.Element elmInfo)
           
private  void addChildren(ProjectNodeFS proj, org.w3c.dom.Element elmRoot)
           
private  void addRemovedChildren(ProjectNodeFS proj, org.w3c.dom.Element elmRoot)
           
private  org.w3c.dom.Element projectChildToElement(java.lang.String childNumber, org.w3c.dom.Element parent, ProjectChild ndChild)
          Builds an element for a project child or removed child.
 org.w3c.dom.Document serialize()
           
 
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

ProjectNodeFS node
Constructor Detail

ProjectNodeSerializer

public ProjectNodeSerializer(ProjectNodeFS node)
Method Detail

addBasicProjectInfo

private void addBasicProjectInfo(ProjectNodeFS proj,
                                 org.w3c.dom.Element elmInfo)

addChildren

private void addChildren(ProjectNodeFS proj,
                         org.w3c.dom.Element elmRoot)

projectChildToElement

private org.w3c.dom.Element projectChildToElement(java.lang.String childNumber,
                                                  org.w3c.dom.Element parent,
                                                  ProjectChild ndChild)
Builds an element for a project child or removed child.


addRemovedChildren

private void addRemovedChildren(ProjectNodeFS proj,
                                org.w3c.dom.Element elmRoot)

serialize

public org.w3c.dom.Document serialize()
Specified by:
serialize in class NodeSerializer
See Also:
NodeSerializer.serialize()


Copyright 2003 Soucejammer project.