continue;
}
final KMLReferenceField kmlEntry = entry.getValue();
final JaxbJavaDoc jkje = new JaxbJavaDoc();
// the class name, should be the same-classname as the jaxb-generated classname
jkje.setClassName(entry.getValue().getNameClean());
// build the javadoc comment
final StringBuffer javaDoc = new StringBuffer();
// the kml-element-name
javaDoc.append(kmlEntry.getName() + "\n");
// the description
if (kmlEntry.getDescription().size() > 0) {
for (String docDescription : convertMapToList(kmlEntry.getDescription())) {
docDescription = makeLineBrakes(docDescription, 80);
javaDoc.append("<p>\n" + docDescription + "</p>\n");
}
javaDoc.append("\n");
}
// syntax
if (kmlEntry.getSyntax().size() > 0) {
javaDoc.append("Syntax: \n");
javaDoc.append(kmlEntry.getSyntax().get(0));
javaDoc.append("\n");
javaDoc.append("\n");
}
// extends
if (kmlEntry.getExtend().size() > 0) {
javaDoc.append("Extends: \n");
for (final String docExtends : convertMapToList(kmlEntry.getExtend())) {
javaDoc.append("@see: " + docExtends + "\n");
}
javaDoc.append("\n");
}
// extended by
if (kmlEntry.getExtendedBy().size() > 0) {
javaDoc.append("Extended By: \n");
for (final String docExtendedBy : convertMapToList(kmlEntry.getExtendedBy())) {
javaDoc.append("@see: " + docExtendedBy + "\n");
}
javaDoc.append("\n");
}
// contains
if (kmlEntry.getContains().size() > 0) {
javaDoc.append("Contains: \n");
for (final String docContains : convertMapToList(kmlEntry.getContains())) {
javaDoc.append("@see: " + docContains + "\n");
}
javaDoc.append("\n");
}
// contained by
if (kmlEntry.getContainedBy().size() > 0) {
javaDoc.append("Contained By: \n");
for (final String docContainedBy : convertMapToList(kmlEntry.getContainedBy())) {
javaDoc.append("@see: " + docContainedBy + "\n");
}
javaDoc.append("\n");
}
// see also
if (kmlEntry.getSeealso().size() > 0) {
javaDoc.append("See Also: \n");
for (final String docSeeAlso : convertMapToList(kmlEntry.getSeealso())) {
javaDoc.append(docSeeAlso + "\n");
}
javaDoc.append("\n");
}
// set the javadoc to the javadoc-element
// LOG.info(javadoc.toString());
jkje.setJavaDoc(javaDoc.toString());
// add the javadoc-element to the map of all javadoc elements
jaxbKMLJavadocs.put(kmlEntry.getNameClean(), jkje);
}
LOG.info("JavaDoc elements found: " + jaxbKMLJavadocs.size());