[
https://issues.apache.org/jira/browse/XMLBEANS-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429002#comment-17429002
]
PJ Fanning commented on XMLBEANS-574:
-------------------------------------
[~mcosta_ISPRA] One possibility is try out the scomp option to configure what
type of methods get added to the generated class - see
[http://xmlbeans.apache.org/guide/Maven.html] (partialMethods section) - this
should be usable in scomp bin too. The example values may be what you need:
Example: "ALL,-GET_LIST,-XGET_LIST" excludes GET_LIST and XGET_LIST methods
You'd still have the generated methods that expose the collection of items as
an Array.
I wasn't involved in adding this support - see
https://issues.apache.org/jira/browse/XMLBEANS-555
> SCOMP bin not able to generate source code
> ------------------------------------------
>
> Key: XMLBEANS-574
> URL: https://issues.apache.org/jira/browse/XMLBEANS-574
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: Version 5.0.1
> Environment: Ubuntu 20.04 LTS, jdk 11
> Reporter: Marco C.
> Priority: Major
> Fix For: unspecified
>
>
> SCENARIO: Using scomp bin to generate xml model, it goes on error due to xsd
> node label.
> DETAIL: if there are a node labeled "dummyList" and its child is an array of
> "dummy", scomp will try to build two methods labeled "dummyList" generating a
> java error.
> To try this bug, it's possibile to use this command:
> scomp -out airquality.jar
> [http://dd.eionet.europa.eu/schemas/id2011850eu-1.0/AirQualityReporting.xsd]
>
> The XSD is public and free to access
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]