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

void org::osjava::jardiff::StreamDiffHandler::fieldChanged ( FieldInfo  oldInfo,
FieldInfo  newInfo 
) throws DiffException [inline]

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

Parameters:
oldInfo Info about the old field.
newInfo Info about the new field.
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 431 of file StreamDiffHandler.java.

References out, and writeFieldInfo().

    {
        try {
            out.write("<fieldchange><from>");
            writeFieldInfo(oldInfo);
            out.write("</from><to>");
            writeFieldInfo(newInfo);
            out.write("</to></fieldchange>");
        } catch (IOException ioe) {
            throw new DiffException(ioe);
        }
    }


Generated by  Doxygen 1.6.0   Back to index