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

void org::osjava::jardiff::DOMDiffHandler::writeClassInfo ( ClassInfo  info  )  [inline, protected]

Write out information about a class. This writes out a <class> node, which contains information about what interfaces are implemented each in a <implements> node.

Parameters:
info Info about the class to write out.

Definition at line 500 of file DOMDiffHandler.java.

References addAccessFlags(), currentNode, doc, org::osjava::jardiff::ClassInfo::getInterfaces(), org::osjava::jardiff::AbstractInfo::getName(), org::osjava::jardiff::ClassInfo::getSignature(), org::osjava::jardiff::ClassInfo::getSupername(), and XML_URI.

Referenced by classAdded(), classChanged(), and classRemoved().

                                                  {
        Node currentNode = this.currentNode;
        Element tmp = doc.createElementNS(XML_URI, "class");
        currentNode.appendChild(tmp);
        this.currentNode = tmp;
        addAccessFlags(info);
        if (info.getName() != null)
            tmp.setAttribute( "name",
                    info.getName());
        if (info.getSignature() != null)
            tmp.setAttribute( "signature",
                    info.getSignature());
        if (info.getSupername() != null)
            tmp.setAttribute( "superclass",
                              info.getSupername());
        String[] interfaces = info.getInterfaces();
        for (int i = 0; i < interfaces.length; i++) {
            Element iface = doc.createElementNS(XML_URI, "implements");
            tmp.appendChild(iface);
            iface.setAttribute( "name", 
                    interfaces[i]);
        }
        this.currentNode = currentNode;
    }


Generated by  Doxygen 1.6.0   Back to index