at.ac.tuwien.infosys.sm4all.copal.api.xml
Class Append

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.Append
All Implemented Interfaces:
AddStrategy

public class Append
extends Object
implements AddStrategy

Strategy class for appending one Element into another Element i.e. adding an Element as last child of another Element.

Author:
sanjin

Constructor Summary
Append()
           
 
Method Summary
 void add(Element parent, Element child)
          Appends specified child Element into specified parent Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Append

public Append()
Method Detail

add

public void add(Element parent,
                Element child)
Appends specified child Element into specified parent Element.

Specified by:
add in interface AddStrategy
Parameters:
parent - the parent Element.
child - the child Element.
Throws:
NullPointerException - if parent or child Element is null.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.