remove requires value from extension annotation and add new requires annotation instead

This commit is contained in:
Eduard Heimbuch
2020-04-07 12:49:25 +02:00
parent 3a6a41ac5b
commit 347417e247
9 changed files with 84 additions and 281 deletions

View File

@@ -101,6 +101,14 @@ public class ClassSetElement implements DescriptorElement
element.appendChild(attr);
}
if (c.requires != null) {
for (String requiresEntry : c.requires) {
Element requiresElement = doc.createElement("requires");
requiresElement.setTextContent(requiresEntry);
element.appendChild(requiresElement);
}
}
element.appendChild(classEl);
root.appendChild(element);
}
@@ -122,21 +130,24 @@ public class ClassSetElement implements DescriptorElement
/**
* Constructs ...
*
*
* @param className
* @param className
* @param description
* @param requires
* @param attributes
*/
public ClassWithAttributes(String className, String description,
Map<String, String> attributes)
String[] requires, Map<String, String> attributes)
{
this.className = className;
this.description = description;
this.requires = requires;
this.attributes = attributes;
}
//~--- fields -------------------------------------------------------------
private final String[] requires;
/** Field description */
private final Map<String, String> attributes;