Youssef,

This changes the Java produced, not the schema or XML.

--Keith


[EMAIL PROTECTED] wrote:
> 
> Hi Keith, Hi kalpesh,
> 
> my problem is that the name of the tag (cardRecord) in the XML schema is
> fixed :-((
> I can not change it in the schema.
> 
> That's why I tried to assign an other class name (cardRecords) to this tag.
> Is it possible?
> have any idea?? Thanks!
> 
> -Youssef
> 
> |---------+--------------------------->
> |         |           Keith Visco     |
> |         |           <[EMAIL PROTECTED]|
> |         |           com>            |
> |         |                           |
> |         |           28.07.04 21:49  |
> |         |           Bitte antworten |
> |         |           an castor-dev   |
> |---------+--------------------------->
>   
> >---------------------------------------------------------------------------------------------------------------|
>   |                                                                                  
>                              |
>   |        An:      [EMAIL PROTECTED]                                                
>                          |
>   |        Kopie:                                                                    
>                              |
>   |        Thema:   Re: [castor-dev] getter/setter, can anyone help me?              
>                              |
>   
> >---------------------------------------------------------------------------------------------------------------|
> 
> Hi Youssef,
> 
> I think for you case, you want to be renaming the fields, not the
> classes:
> 
>       <cbf:elementBinding name="/DataContainer/cardRecord">
>            <cbf:member name="cardRecords"/>
>       </cbf:elementBinding>
> 
> --Keith
> 
> [EMAIL PROTECTED] wrote:
> >
> > Thanks Keith,
> >
> > I used this :
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <cbf:binding xmlns:cbf="http://www.castor.org/SourceGenerator/Binding";
> >              defaultBindingType='element'>
> >
> >      <cbf:elementBinding name="/DataContainer/cardRecord">
> >                <cbf:java-class name="cardRecords"/>
> >      </cbf:elementBinding>
> >
> > </cbf:binding>
> >
> > to rename Class 'cardRecord' to 'cardRecords'. But it still does not work
> > :-(((((((
> >
> > any idea?
> > Many thanks.
> > -Youssef
> >
> >
> >                       Keith Visco
> >                       <[EMAIL PROTECTED]         An:
> [EMAIL PROTECTED]
> >                       com>                     Kopie:
> >                                                Thema:   Re: [castor-dev]
> getter/setter, can anyone help me?
> >                       27.07.04 23:19
> >                       Bitte antworten
> >                       an castor-dev
> >
> >
> > You need to use a binding file to do this. You can see a sample of
> > binding file here:
> >
> > http://castor.exolab.org/phpBB2/viewtopic.php?t=9
> >
> > And there is more information here:
> >
> > http://castor.exolab.org/sourcegen.html#Binding-File
> >
> > --Keith
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hello Bruce and all,
> > >
> > > is it possible to predefine the names of getter/setter methods for the
> > > castor generator??
> > >
> > > I have the following Problem:
> > > I defined an attribute  'cardRecordCount' and a tag 'cardRecord'.
> > > Castor creates the same method for both getter Methods which leads to
> an
> > > error.
> > >
> > > public java.lang.String getCardRecordCount()
> > >     {
> > >         return this._cardRecordCount;
> > >     } //-- java.lang.String getCardRecordCount()
> > >
> > >     /**
> > >      * Method getCardRecordCount
> > >      */
> > >     public int getCardRecordCount()
> > >  {
> > >         return _cardRecordList.size();
> > >     } //-- int getCardRecordCount()
> > >
> > > Thanks!!
> > > -Youssef
> > >
> > > -----------------------------------------------------------
> > > If you wish to unsubscribe from this mailing, send mail to
> > > [EMAIL PROTECTED] with a subject of:
> > >         unsubscribe castor-dev
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-dev
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-dev
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to