Search in sources :

Example 6 with ClassExtensionDoc

use of org.gradle.build.docs.dsl.docbook.model.ClassExtensionDoc in project gradle by gradle.

the class PropertiesRenderer method renderDetailsTo.

public void renderDetailsTo(ClassDoc classDoc, Element parent) {
    if (hasProperties(classDoc)) {
        Document document = parent.getOwnerDocument();
        Element detailsSection = document.createElement("section");
        parent.appendChild(detailsSection);
        Element title = document.createElement("title");
        detailsSection.appendChild(title);
        title.appendChild(document.createTextNode("Property details"));
        for (PropertyDoc classProperty : classDoc.getClassProperties()) {
            propertiesDetailRenderer.renderTo(classProperty, detailsSection);
        }
        for (ClassExtensionDoc extensionDoc : classDoc.getClassExtensions()) {
            for (PropertyDoc propertyDoc : extensionDoc.getExtensionProperties()) {
                propertiesDetailRenderer.renderTo(propertyDoc, detailsSection);
            }
        }
    }
}
Also used : ClassExtensionDoc(org.gradle.build.docs.dsl.docbook.model.ClassExtensionDoc) Element(org.w3c.dom.Element) PropertyDoc(org.gradle.build.docs.dsl.docbook.model.PropertyDoc) Document(org.w3c.dom.Document)

Aggregations

ClassExtensionDoc (org.gradle.build.docs.dsl.docbook.model.ClassExtensionDoc)6 Document (org.w3c.dom.Document)6 Element (org.w3c.dom.Element)6 BlockDoc (org.gradle.build.docs.dsl.docbook.model.BlockDoc)2 MethodDoc (org.gradle.build.docs.dsl.docbook.model.MethodDoc)2 PropertyDoc (org.gradle.build.docs.dsl.docbook.model.PropertyDoc)2