Generating Javadoc
Greetings everyone, Is there a way that I can generate Java docs for my own generated XMLBeans? I currently face the situation where a report designer using BIRT is consuming a .jar that contains all of my XMLBeans. The problem is, with BIRT they cannot automatically pick-up the getters on the different XMLBeans so, I have to go and manually create this documentation. Now if I had 10 or even 20 beans that would be ok but when the Ant task is run it is reporting that it compiles 118 DTO's so, this will be a very time consuming exercise. I am hoping that there is a way to get around this. Thanks! -- Kind Regards, Schalk Neethling This email and all content are subject to the following disclaimer: http://content.momentum.co.za/content/legal/disclaimer_email.htm
RE: Generating Javadoc
Can you accomplish this same task using Ant? From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 10:24 AM To: user@xmlbeans.apache.org Subject: Re: Generating Javadoc The scomp utility has a -src option to generate the Java code. You can run javadoc over this src. -Jacobd On 8/14/07, Schalk Neethling [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Greetings everyone, Is there a way that I can generate Java docs for my own generated XMLBeans? I currently face the situation where a report designer using BIRT is consuming a .jar that contains all of my XMLBeans. The problem is, with BIRT they cannot automatically pick-up the getters on the different XMLBeans so, I have to go and manually create this documentation. Now if I had 10 or even 20 beans that would be ok but when the Ant task is run it is reporting that it compiles 118 DTO's so, this will be a very time consuming exercise. I am hoping that there is a way to get around this. Thanks! -- Kind Regards, Schalk Neethling This email and all content are subject to the following disclaimer: http://content.momentum.co.za/content/legal/disclaimer_email.htm
RE: Generating Javadoc
Just saw the srcgendir on the documentation. I am trying this out now. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:28 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Can you accomplish this same task using Ant? From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 10:24 AM To: user@xmlbeans.apache.org Subject: Re: Generating Javadoc The scomp utility has a -src option to generate the Java code. You can run javadoc over this src. -Jacobd On 8/14/07, Schalk Neethling [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Greetings everyone, Is there a way that I can generate Java docs for my own generated XMLBeans? I currently face the situation where a report designer using BIRT is consuming a .jar that contains all of my XMLBeans. The problem is, with BIRT they cannot automatically pick-up the getters on the different XMLBeans so, I have to go and manually create this documentation. Now if I had 10 or even 20 beans that would be ok but when the Ant task is run it is reporting that it compiles 118 DTO's so, this will be a very time consuming exercise. I am hoping that there is a way to get around this. Thanks! -- Kind Regards, Schalk Neethling This email and all content are subject to the following disclaimer: http://content.momentum.co.za/content/legal/disclaimer_email.htm
RE: Generating Javadoc
Greetings, Would the appropriate usage of srcgendir be: xmlbean javasource=1.5 destfile=${wealthEngineEar.earContent.dir}/Statement.jar srcgendir=${model.statement.xmlbeans.src} classpath path refid=build.classpath/ path refid=was.classpath/ /classpath fileset dir=${model.src.dir}/momentum/wealth/statement/xsd includes=*.xsd / /xmlbean The reason I am asking is because I just tried this and it did not create any src files in the specified directory. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:38 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Just saw the srcgendir on the documentation. I am trying this out now. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:28 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Can you accomplish this same task using Ant? From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 10:24 AM To: user@xmlbeans.apache.org Subject: Re: Generating Javadoc The scomp utility has a -src option to generate the Java code. You can run javadoc over this src. -Jacobd On 8/14/07, Schalk Neethling [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Greetings everyone, Is there a way that I can generate Java docs for my own generated XMLBeans? I currently face the situation where a report designer using BIRT is consuming a .jar that contains all of my XMLBeans. The problem is, with BIRT they cannot automatically pick-up the getters on the different XMLBeans so, I have to go and manually create this documentation. Now if I had 10 or even 20 beans that would be ok but when the Ant task is run it is reporting that it compiles 118 DTO's so, this will be a very time consuming exercise. I am hoping that there is a way to get around this. Thanks! -- Kind Regards, Schalk Neethling This email and all content are subject to the following disclaimer: http://content.momentum.co.za/content/legal/disclaimer_email.htm
RE: Generating Javadoc
No problem, got this working and the javadoc generated from the source. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 12:01 PM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Greetings, Would the appropriate usage of srcgendir be: xmlbean javasource=1.5 destfile=${wealthEngineEar.earContent.dir}/Statement.jar srcgendir=${model.statement.xmlbeans.src} classpath path refid=build.classpath/ path refid=was.classpath/ /classpath fileset dir=${model.src.dir}/momentum/wealth/statement/xsd includes=*.xsd / /xmlbean The reason I am asking is because I just tried this and it did not create any src files in the specified directory. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:38 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Just saw the srcgendir on the documentation. I am trying this out now. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:28 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Can you accomplish this same task using Ant? From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 10:24 AM To: user@xmlbeans.apache.org Subject: Re: Generating Javadoc The scomp utility has a -src option to generate the Java code. You can run javadoc over this src. -Jacobd On 8/14/07, Schalk Neethling [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Greetings everyone, Is there a way that I can generate Java docs for my own generated XMLBeans? I currently face the situation where a report designer using BIRT is consuming a .jar that contains all of my XMLBeans. The problem is, with BIRT they cannot automatically pick-up the getters on the different XMLBeans so, I have to go and manually create this documentation. Now if I had 10 or even 20 beans that would be ok but when the Ant task is run it is reporting that it compiles 118 DTO's so, this will be a very time consuming exercise. I am hoping that there is a way to get around this. Thanks! -- Kind Regards, Schalk Neethling This email and all content are subject to the following disclaimer: http://content.momentum.co.za/content/legal/disclaimer_email.htm
How to edit data in a specific part of an XMLObject
I have and XMLObject node I find by using an XPath expression in my XMLObject root element (XMLINIDocument). It finds this XMLObject (there is only one instance) but I want to replace it with another one. How do I do this? ** XML DOCUMENT ** XMLINI CONFIG SERVICES SERVICE WIPKEYS I WANT TO REPLACE THIS DATA /WIPKEYS . /XMLINI ** CODE ** // Load entire XML document XMLINIDocument config = XMLINIDocument.Factory.parse(editor.getText(), validateOptions); // Create xpath to the node we wish to replace String wipQueryExpression = declare namespace xq='http://skywire.com/ccm/global'; + $this/xq:XMLINI/xq:CONFIG/xq:SERVICES/xq:SERVICE/xq:WIPKEYS; // XMLObject found through XPath. This is the one I want to replace with the new one. WIPKEYSDocument.WIPKEYS[] wipkeys = (WIPKEYSDocument.WIPKEYS[]) config.selectPath(wipQueryExpression); // Got XML data from server and loaded it into a WIPKEYSDocument and wish to replace the wipkeys above with this one WIPKEYSDocument keys = WIPKEYSDocument.Factory.parse(serverData, validateOptions); // This kind of substitution does not work wipkeys[0] = keys.getWIPKEYS(); // Then I save it at the end config.save(new File(war/WEB-INF/xml/global.xml)); Any ideas? Thx, Bob Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/