[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Commented: (XMLBEANS-188) wrong java classes created for
From:       "Shaik Reyaz (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2006-09-18 13:33:25
Message-ID: 18379776.1158586405693.JavaMail.jira () brutus
[Download RAW message or body]

    [ http://issues.apache.org/jira/browse/XMLBEANS-188?page=comments#action_12435474 \
]   
Shaik Reyaz commented on XMLBEANS-188:
--------------------------------------

Peer i have written private method to handle this situation.. this method returns the \
way XMLBeans is returning values... Here is the code.. hope this helps you out....

	private static String postNumberBugFix(String s) {
		char[] c = s.toCharArray();
		for (int i = 0; i < c.length - 1; i++) {
			if (Character.isDigit(c[i]) && Character.isLetter(c[i + 1])) {
				c[i + 1] = Character.toUpperCase(c[i + 1]);
			}
		}
		return new String(c);
                       }

> wrong java classes created for element "AccumProfitsDividends2ndTier"
> ---------------------------------------------------------------------
> 
> Key: XMLBEANS-188
> URL: http://issues.apache.org/jira/browse/XMLBEANS-188
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 2 Beta 1
> Environment: Windows XP, Jdk 1.5_04
> Reporter: Shaik Reyaz
> 
> i have the following element in my xsd ....
> - <xsd:element name="AccumProfitsDividends2ndTier" \
>                 type="AccumProfitsDividends2ndTierType" minOccurs="0" \
>                 maxOccurs="unbounded">
> - <xsd:annotation>
> - <xsd:documentation>
> <Description>Accumulated Profits table</Description> 
> </xsd:documentation>
> </xsd:annotation>
> </xsd:element>
> When i looked at the produced Java class here is the snipped what it looked like, \
> comments have been properly given but the method name has a capital alphabet after \
> a number.... /**
> * Appends and returns a new empty value (as xml) as the last \
>                 "AccumProfitsDividends2ndTier" element
> */
> gov.irs.efile.AccumProfitsDividends2NdTierType \
> addNewAccumProfitsDividends2NdTier(); Similarly for 3rd it has generated with \
> 3Rd... here is the snippet.... /**
> * Gets ith "UndistrEarnDividends3rdTier" element
> */
> gov.irs.efile.UndistrEarnDividends3RdTierType \
> getUndistrEarnDividends3RdTierArray(int i); 
> /**
> * Returns number of "UndistrEarnDividends3rdTier" element
> */
> int sizeOfUndistrEarnDividends3RdTierArray();
> 
> /**
> * Sets array of all "UndistrEarnDividends3rdTier" element
> */
> void setUndistrEarnDividends3RdTierArray(gov.irs.efile.UndistrEarnDividends3RdTierType[] \
> undistrEarnDividends3RdTierArray); 
> /**
> * Sets ith "UndistrEarnDividends3rdTier" element
> */
> void setUndistrEarnDividends3RdTierArray(int i, \
> gov.irs.efile.UndistrEarnDividends3RdTierType undistrEarnDividends3RdTier);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: \
                http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic