-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce @ff.reintroduce and @Reintroduce #131
Introduce @ff.reintroduce and @Reintroduce #131
Conversation
TODO:
|
And this is how the XSD will be become for SenderPipe:
|
To use the @Reintroduce annotation, please merge the following F!F PR: frankframework/frankframework#3529 |
The webapp page does not look correct, the SenderPipe has messageLog, inputWrapper, inputValidator, sender, listener but no outputValidator and outputWrapper. I also think that it will confuse people if nested elements are repeated on the page, now the SenderPipe has a list of nested elements, and the MessageSendingPipe from which it inherits has a different list of nested elements. If I look at it as a Frank!Developer, I should not have to care about inheritance, I just want to know for an element which nested elements, attributes and parameters I can set, and ideally each list should be together and only once on the page, but your current print screen makes it look like it will be all over the page with this PR. |
I had a phone call with @nielsm5. We decided that we will ignore @Reintroduce for the JSON. This will address Ricardo's comment. The @Reintroduce annotation will still have its effect on the XSDs. |
I agree with @ricardovh that the screen shot above is confusing for developers, BUT this is in the 'show inheritance' view. The default 'hide inheritance' view is what the developer normally wants to see. There the child elements should be displayed in the right order. |
Ik heb Gerrit's opmerking verwerkt. |
ElementChild may be improved by merging isReintroduced tests with technical override. I will try it out. |
@@ -272,3 +272,7 @@ The default value is `nl.nn.adapterframework.pipes.SenderPipe` in this example. | |||
**@Optional:** Java annotation that does the same as JavaDoc tag `@ff.optional`. | |||
|
|||
**@ff.tag:** Add tag to Java class that is shown in the Frank!Doc webapplication. Add the `@ff.tag` JavaDoc tag in the JavaDoc comment above a class. There are two arguments. The first argument is the tag name and the second argument is the tag value. | |||
|
|||
**@Reintroduce:** Java annotation meant to change the order of config children or attributes in the XSD. The default order is that inherited element children go after declared element children. To have a different order, override an inherited config child setter or attribute setter and add this annotation. The inherited element child is then sorted with the declared element children. Please note that an inherited element child is also sorted with the declared element children if the setter is overridden with a new JavaDoc comment. This annotation is needed if and only if the only modification of the element child is the sort order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
het sorteren van attributen en config-children is iets interns van de FrankDoc code. Voor de gebruiker is het de volgorde waar in de elementen getoond worden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nu snap ik het punt. Ik heb je voorgestelde verandering gecommit. De tekst die hier gewijzigd wordt is test code; een kopie van de @Reintroduce annotatie die nodig is voor de unit tests. Ik zal kijken of deze verandering ook toegepast kan worden op het origineel in het iaf project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ik heb dit naar het iaf project gekopiëerd maar daarna zag ik geen wijziging in de @Reintroduce Java class. Blijkbaar stond de voorgestelde tekst daar al.
Co-authored-by: Gerrit van Brakel <g.vanbrakel@flux-it.nl>
No description provided.