[jira] Commented: (XMLBEANS-188) wrong java classes created for element AccumProfitsDividends2ndTier

2006-09-18 Thread Shaik Reyaz (JIRA)
[ 
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
   DescriptionAccumulated 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [VOTE] xmlbeanscxx proposal (resubmitted)

2006-09-18 Thread Cezar Andrei
+1

Cezar

 -Original Message-
 From: Cliff Schmidt [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 15, 2006 1:35 AM
 To: dev@xmlbeans.apache.org
 Subject: [VOTE] xmlbeanscxx proposal (resubmitted)
 
 Please vote on the proposal below.  As a reminder, this is a
 resubmission of the original xmlbeanscxx project proposed last year by
 a somewhat different set of committers and a different initial code
 base (which started to happen after it was originally accepted but
 before the project actually got started at Apache).  I have agreed to
 mentor this project with the unofficial help of Ken Tam and David
 Waite
 
 The vote will close on Monday at 23:59 PDT / Tuesday at 06:59 UTC.
 
 Cliff
 
 
 On 7/18/06, Allen Brookes [EMAIL PROTECTED] wrote:
  I've included the proposal below.  It hasn't changed but I have
  confirmed with people at Touk that the initial committers are
correct.
 
  --
 
 
  This is a proposal for an xmlbeans subproject which should be
discussed
  here
  and voted on at the xmlbeans PMC.  This is a modification of an
earlier
  proposal (May 15, 2005).  This proposal is being resubmitted on the
  advice
  of Cliff Schmidt.  The nature of the proposal changed when the
company
  Touk
  offered to submit their xmlbeansxx code base as the initial code.
In
  order
  to move the project along as quickly as possible, we have elected to
  take
  full advantage of the Touk existing code and resources.  One result
of
  these
  changes is the need for developers at Touk to act as committers.
  Because
  adding committers is done on the basis of merit, and because there
is no
  basis yet for judging merit on this project, Cliff has advised us to
  start
  over with a new proposal.
 
 
  Proposal to create a C++ version of the Apache XMLBeans project
 
  Submission date: ?? March 2006, Allen Brookes, (abrookes @ RogueWave
  dot-com)
 
  (0) rationale
 
  Apache currently maintains the XMLBeans/Java project, a tool that
uses
  XML Schema as a basis for generating Java classes used to easily
access
  XML instance data. The goal of the XMLBeans/C++ project is to
provide a
  very similar user experience for C++ developers as that provided by
the
  XMLBeans/Java version. This includes generating strongly-typed C++
  classes for the XML binding as well as providing low-level C++ APIs
  enabling access to the raw, underlying XML content. Where possible,
the
  XMLBeans/C++ project will provide a nearly identical API and
parallel
  architecture to that provided by the Java counterpart, and will
closely
  mimic both features and schedule.
 
  The project will be jump started with the contribution of
xmlbeansxx, a
  partial C++ implementation of XMLBeans from Touk
  (http://touk.pl/web/en/index.html).  Rogue Wave Software will help
jump
  start this project by contributing considerable expertise in the
area of
  XML data bindings in C++ and C++ expertise in general.
 
 
  (0.1) criteria
 
  Meritocracy: The C++ version of the project should adhere to the
same
  open, merit-based community standards as other Apache projects.
 
  Contributions and Core Developers: Code being contributed is an open
  source partial implementation of XMLBeans in C++ created by Touk.
 
  The community should be able to immediately jump in and begin work,
  along side dedicated Touk and Rogue Wave personnel, to turn the
initial
  contribution into a feature-compatible version of XMLBeans for C++.
 
  Community: The community around the Java version of XMLBeans is
already
  vibrant and growing. There is every reason to believe many of those
  within the existing community have experience and/or general
interest in
  a successful, compatible C++ implementation of the toolset. This
should
  ensure an immediately active and vocal community, even if the
primary
  interest is in ensuring a similar experience between versions. The
  original contribution for this project has been around for some time
and
  has generated some interest already.
 
  Additionally, at least one member of an existing Apache project has
  expressed interest in a project like XMLBeans/C++ to aid in his
current
  work. Higher-level projects such as Axis for C++ seem to be natural
  beneficiaries of this work.
 
 
  (0.2) known risks
 
  Orphaned Products: The xmlbeansxx project has been around for some
time
  now and development has been active throughout this time.  There is
  every reason to expect that this commitment will continue after the
  transition to Apache.
 
  Inexperience with Open Source: Rogue Wave has been gaining
experience
  with open source through the cxx standard library project.  Touk has
had
  experience with open source through the xmlbeanscxx project.
 
  Initial Reliance on Salaried Workers: Due to the rapid process of
  transitioning to work on the open source XMLBeans/C++ project, the
  listed contributors are all inside the commercial realm. We expect
this
  list of external volunteers to grow