private void _addDocletElements( Element parentElement, AbstractJavaEntity abstractJavaEntity, String name) { DocletTag[] docletTags = abstractJavaEntity.getTagsByName(name); for (DocletTag docletTag : docletTags) { String value = docletTag.getValue(); if (name.equals("author") || name.equals("see") || name.equals("since") || name.equals("version")) { /*if (value.startsWith("Raymond Aug")) { value = "Raymond Aug\u00c3\u00a9"; }*/ DocUtil.add(parentElement, name, value); } else { Element element = parentElement.addElement(name); element.addCDATA(value); } } }
private boolean _hasPublicModifier(AbstractJavaEntity abstractJavaEntity) { String[] modifiers = abstractJavaEntity.getModifiers(); if (modifiers == null) { return false; } for (String modifier : modifiers) { if (modifier.equals("public")) { return true; } } return false; }
private void _addDocletElements( Element parentElement, AbstractJavaEntity abstractJavaEntity, String name) throws Exception { DocletTag[] docletTags = abstractJavaEntity.getTagsByName(name); for (DocletTag docletTag : docletTags) { String value = docletTag.getValue(); value = _trimMultilineText(value); value = StringUtil.replace(value, " </", "</"); Element element = parentElement.addElement(name); element.addCDATA(value); } if ((docletTags.length == 0) && name.equals("author")) { Element element = parentElement.addElement(name); element.addCDATA(ServiceBuilder.AUTHOR); } }
private String _getCDATA(AbstractJavaEntity abstractJavaEntity) { return _getCDATA(abstractJavaEntity.getComment()); }