textbender.a.u.transfer.clipboard
Class Replacer

java.lang.Object
  extended by Replacer

public final class Replacer
extends Object

A clip-gene replacer.


Constructor Summary
Replacer(Element gg, List<Element> gList, StringBuilder b, DOMImplementationLS domLS, MutantAbstractor mutantAbstractor, LSParser parser, TransformerFactory transformerFactory, UUIDStringifier uuidStringifier)
          Creates a Replacer for a document.
 
Method Summary
 void replaceRecursively(Node node)
          Transforms a node into a proper gene, if it is a clip gene; and likewise transforms all of its descendants.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replacer

public Replacer(Element gg,
                List<Element> gList,
                StringBuilder b,
                DOMImplementationLS domLS,
                MutantAbstractor mutantAbstractor,
                LSParser parser,
                TransformerFactory transformerFactory,
                UUIDStringifier uuidStringifier)
         throws IOException,
                TransformerConfigurationException
Creates a Replacer for a document.

Parameters:
gg - the 'g' list ('gg') element of the document
gList - live list of gene meta-data ('g') elements in 'gg' (e.g. backed by a NodeList)
domLS - DOM implementation to use
mutantAbstractor - to use
parser - to use
b - string builder to use, overwriting its existing content
transformerFactory - to use
uuidStringifier - UUID stringifier to use
Throws:
IOException
TransformerConfigurationException
Method Detail

replaceRecursively

public void replaceRecursively(Node node)
                        throws TransformerException
Transforms a node into a proper gene, if it is a clip gene; and likewise transforms all of its descendants.

Throws:
TransformerException