com.sri.emo.controller
Class NodeCloner

java.lang.Object
  extended by com.sri.emo.controller.NodeCloner

public class NodeCloner
extends Object

Version:
1.0
Author:
Michael Rimov

Field Summary
(package private)  Node src
           
(package private)  String title
           
 
Constructor Summary
NodeCloner(Node sourceNode, String newTitle)
           
 
Method Summary
 Node cloneAsOrphan(ErrorCollection validationErrors)
           
 Node cloneAsSibling(ErrorCollection validationErrors)
           
protected  void validate(ErrorCollection toPopulate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

final Node src

title

final String title
Constructor Detail

NodeCloner

public NodeCloner(Node sourceNode,
                  String newTitle)
Method Detail

cloneAsOrphan

public Node cloneAsOrphan(ErrorCollection validationErrors)
                   throws DBException
Throws:
DBException

cloneAsSibling

public Node cloneAsSibling(ErrorCollection validationErrors)
                    throws DBException
Throws:
DBException

validate

protected void validate(ErrorCollection toPopulate)
                 throws DBException
Throws:
DBException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.