-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fill in fixed values in DefaultValuePlugin #15
Comments
I'll review XJC plugin code generation for XML Schema attribute and simple element fixed values before the next release. An example schema for experimentation is ... schema.xsd
The XJC command line tool can be invoked to demonstrate the current behavior (no extended plugins).
Current Behavior (no plugin)Currently when
Currently when
Currently, regardless of the
Proposed Plugin BehaviorWhen When |
I have added FixedValuePlugin to generate When these constants are generated, their corresponding The plugin will be included in the next release (no ETA). |
The FixedValuePlugin has been released to Maven Central. |
When schemas define a fixed value, it would be useful to set those values during code generation too, alongside default values. Not as simple as it first appears, but how about that?
The text was updated successfully, but these errors were encountered: