in log4j-docgen/src/main/java/org/apache/logging/log4j/docgen/generator/SchemaGenerator.java [172:195]
private static void writePluginType(
final TypeLookup lookup, final PluginType pluginType, final XMLStreamWriter writer)
throws XMLStreamException {
writer.writeStartElement(XSD_NAMESPACE, "complexType");
writer.writeAttribute("name", pluginType.getClassName());
writeDocumentation(pluginType.getDescription(), writer);
final boolean hasComplexContent = !pluginType.getElements().isEmpty();
if (hasComplexContent) {
writer.writeStartElement(XSD_NAMESPACE, "sequence");
for (final PluginElement element : pluginType.getElements()) {
writePluginElement(lookup, element, writer);
}
writer.writeEndElement();
}
for (final PluginAttribute attribute : pluginType.getAttributes()) {
writePluginAttribute(lookup, attribute, writer);
}
writer.writeEndElement();
}