You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NIFI-14374 Set Deterministic Order for Manifest Documentation
- Sorted Relationship documentation elements based on name field
- Sorted Resource Type documentation elements based on enumeration name method
- Sorted Property Dependencies based on dependent Property Name
- Sorted Dependent Values based on natural String ordering
Signed-off-by: Pierre Villard <[email protected]>
This closes#4.
Copy file name to clipboardExpand all lines: src/main/java/org/apache/nifi/documentation/xml/XmlDocumentationWriter.java
+27-17Lines changed: 27 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,12 @@
21
21
importjava.util.Arrays;
22
22
importjava.util.Collection;
23
23
importjava.util.Collections;
24
+
importjava.util.Comparator;
24
25
importjava.util.LinkedHashSet;
25
26
importjava.util.List;
26
27
importjava.util.Map;
27
28
importjava.util.Set;
29
+
importjava.util.TreeSet;
28
30
importjava.util.function.Function;
29
31
importjavax.xml.stream.XMLOutputFactory;
30
32
importjavax.xml.stream.XMLStreamException;
@@ -65,13 +67,11 @@
65
67
importorg.apache.nifi.processor.Relationship;
66
68
67
69
/**
68
-
* XML-based implementation of DocumentationWriter
69
-
*
70
+
* XML-based implementation of DocumentationWriter.
70
71
* Please note that while this class lives within the nifi-api, it is provided primarily as a means for documentation components within
71
72
* the NiFi NAR Maven Plugin. Its home is the nifi-api, however, because the API is needed in order to extract the relevant information and
72
73
* the NAR Maven Plugin cannot have a direct dependency on nifi-api (doing so would cause a circular dependency). By having this homed within
73
74
* the nifi-api, the Maven plugin is able to discover the class dynamically and invoke the one or two methods necessary to create the documentation.
74
-
*
75
75
* This is a new capability in 1.9.0 in preparation for the Extension Registry and therefore, you should
76
76
* <b>NOTE WELL:</b> At this time, while this class is part of nifi-api, it is still evolving and may change in a non-backward-compatible manner or even be
77
77
* removed from one incremental release to the next. Use at your own risk!
0 commit comments