I've searched the archives for a day and a half and can't figure out how to get the source generator to do the following:

I have a schema that looks like this:

<xsd:complexType name="YieldRqType">
        <xsd:sequence>
            <xsd:element name="TagNum"                    type="STRTYPE"  minOccurs="1" maxOccurs="1" />
            <xsd:element name="Quantity"                    type="QUANTYPE"  minOccurs="1" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>

QUANTYPE is defined elsewhere.

I'm looking to have the generated Java classes to look use my own Quantity object (which has a constructor which takes a String) instead of a String... like this:

public abstract class YieldRqType extends com.fbi.fbixml.FbiCastorBase
implements java.io.Serializable
{
.....<lines omitted>

   /**
     * Field _quantity
     */
    private com.evnt.util.Quantity _quantity;
}

instead of like this:


public abstract class YieldRqType extends com.fbi.fbixml.FbiCastorBase
implements java.io.Serializable
{
.....<lines omitted>

   /**
     * Field _quantity
     */
    private java.lang.String _quantity;
}


I have tried using this binding file to no avail.

<binding xmlns="http://www.castor.org/SourceGenerator/Binding"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            defaultBinding="element">

    <elementBinding name="QUANTYPE">
          <java-class name="com.evnt.util.Quantity" handler="com.fbi.fbixml.QuantityFieldHandler"/>
    </elementBinding>
</binding>


What am I missing?  Is this even possible?

I am using castor 1.0.
--

Brent Hale
Development Manager


580 E. Technology Ave., Suite 2500
Orem, Utah 84097
Toll Free: (800) 774-7085
Fax: (801) 932-1101
[EMAIL PROTECTED]
www.fishbowlinventory.com
www.fishbowlinventory.com/forums/

Reply via email to