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

void org::osjava::jardiff::DOMDiffHandler::writeFieldInfo ( FieldInfo  info  )  [inline, protected]

Write out information about a field. This writes out a <field> node with attributes describing the field.

Parameters:
info Info about the field.

Definition at line 564 of file DOMDiffHandler.java.

References addAccessFlags(), addTypeNode(), currentNode, doc, org::osjava::jardiff::FieldInfo::getDesc(), org::osjava::jardiff::AbstractInfo::getName(), org::osjava::jardiff::FieldInfo::getSignature(), org::osjava::jardiff::FieldInfo::getValue(), and XML_URI.

Referenced by fieldAdded(), fieldChanged(), and fieldRemoved().

                                                  {
        Node currentNode = this.currentNode;
        Element tmp = doc.createElementNS(XML_URI, "field");
        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.getValue() != null)
            tmp.setAttribute( "value",
                    info.getValue().toString());
        if (info.getDesc() != null)
            addTypeNode(info.getDesc());
        this.currentNode = currentNode;
    }


Generated by  Doxygen 1.6.0   Back to index