Package org.apache.rat.tools
Class AntOption.ExampleGenerator
java.lang.Object
org.apache.rat.tools.AntOption.ExampleGenerator
- Enclosing class:
AntOption
An example code generator for this AntOption.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildElements
(String data, List<String> childElements) Creates a string comprising the child elements for the Ant XML report call.Gets an example Ant XML report call using ant option with the specified attributes and child elements.getExampleAttributes
(String data, Map<String, String> attributes) Creates a string comprising the attributes for the Ant XML report call.
-
Constructor Details
-
ExampleGenerator
public ExampleGenerator()The constructor.
-
-
Method Details
-
getExample
Gets an example Ant XML report call using ant option with the specified attributes and child elements.- Parameters:
data
- The data value for this option.attributes
- A map of attribute keys and values.childElements
- a list of child elements for the example- Returns:
-
getExampleAttributes
Creates a string comprising the attributes for the Ant XML report call.- Parameters:
data
- The data value for this option.attributes
- A map of attribute keys and values.- Returns:
- a string comprising all the attribute keys and values for the Ant XML report element.
-
getChildElements
Creates a string comprising the child elements for the Ant XML report call.- Parameters:
data
- the data for this option.childElements
- additional child elements.- Returns:
- A string comprising the child elements for the Ant XML report call.
-