Logo Search packages:      
Sourcecode: jardiff version File versions  Download package

void org::osjava::jardiff::DOMDiffHandler::classChanged ( ClassInfo  oldInfo,
ClassInfo  newInfo 
) throws DiffException [inline]

Write out info aboout a changed class. This writes out a <classchange> node, followed by a <from> node, with the old information about the class followed by a <to> node with the new information about the class.

Parameters:
oldInfo Info about the old class.
newInfo Info about the new class.
Exceptions:
DiffException when there is an underlying exception, e.g. writing to a file caused an IOException

Implements org::osjava::jardiff::DiffHandler.

Definition at line 380 of file DOMDiffHandler.java.

References currentNode, doc, writeClassInfo(), and XML_URI.

    {
        Node currentNode = this.currentNode;
        Element tmp = doc.createElementNS(XML_URI, "classchange");
        Element from = doc.createElementNS(XML_URI, "from");
        Element to = doc.createElementNS(XML_URI, "to");
        tmp.appendChild(from);
        tmp.appendChild(to);
        currentNode.appendChild(tmp);
        this.currentNode = from;
        writeClassInfo(oldInfo);
        this.currentNode = to;
        writeClassInfo(newInfo);
        this.currentNode = currentNode;
    }


Generated by  Doxygen 1.6.0   Back to index