|
Hi, Keith,
Thanks a lot for your reply regarding the java
compilation errors. It is very helpful.
I have another question for the generated java beans according
to the complexType(s) in xsd. Please refer to the following
complexType named "Schedule" which has 3 elements.
-----------------------------------------------------------
The complexType "Schedule" in
xsd:
<s:complexType
name="Schedule">
<s:sequence> <s:element minOccurs="1" maxOccurs="1" name="PeriodType" type="s0:Type" /> <s:element minOccurs="1" maxOccurs="1" name="PercentageVesting" type="s:double" /> <s:element minOccurs="1" maxOccurs="1" name="PeriodsFromGrantDate" type="s:int" /> </s:sequence> </s:complexType> The properties of generated java bean
"Schedule.java" according to above complexType:
/**
* Field _periodType */ private generated.complextype.castor.com.xignite.www.types.Type _periodType;
/**
* Field _percentageVesting */ private double _percentageVesting;
/**
* keeps track of state for field: _percentageVesting */ private boolean _has_percentageVesting;
/**
* Field _periodsFromGrantDate */ private int _periodsFromGrantDate;
/**
* keeps track of state for field: _periodsFromGrantDate */ private boolean _has_periodsFromGrantDate; ------------------------------------ What I hope to get are the java bean
properties in the exact same names as the element names specified in xsd
file. So I hope the property name of bean is "PercentageVesting" not
"_percentageVesting". Can the generated java bean have exact same
property names as the original element names? This is very important to my
program since I need to use the original element names to do all the rest of the
work.
And I also hope the bean doesn't include
the extra properties (eg._has_percentageVesting) other than the 3 specified
in xsd. Is this also configurable?
Please let me know if you need any more
information.
Thanks,
Juan E BUSINESS ARCHITECTURE
Phone: (925) 236-4816 (O) |
