You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Siegfried Baiz <ba...@sulzer.de> on 2006/12/08 23:06:32 UTC

how to define an interface extension for all created java-Types rsp. all schema-elements

Hi All,

I'd need some help for "Interface Extensions" via .xsdconfig:

For a given xsd-file I want to create XmlBeans with the following Property:

*each created class should implement an given Interface, say IAdaptable*

I wonder if it's possible to custumize .xsdconfig in order to get an 
"Interface Extensions"
for all created java-Types i.e. for all nodes of in the given schema-file?

Some months ago I tried something like this:

<xb:extension for="org.apache.xmlbeans.XmlObject">
 <xb:interface name="org.xxx.runtime.IAdaptable">
  <xb:staticHandler>de.baiz.beanex.aptableHandler</xb:staticHandler>
 </xb:interface>
</xb:extension>

unfortunatally without succes.

Maybe that was a stupid approch as XmlObject is not created by scomp.
But I hope at least it shows what im looking for.

Thanks for any help

Siegfried




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


Re: how to define an interface extension for all created java-Types rsp. all schema-element

Posted by Siegfried Baiz <ba...@sulzer.de>.
Hello Cazar,

thanks for your swift reply!

What ist "*" standing for - does it mean all types of all created packages?

In that sense com.abc.core.* would match on all types of
    com.abc.core.pack1
    com.abc.core.pack2
    com.abc.core.pack2.subpack3
etc. - like the import-statements in java?

Thanks for your help - I'm gonna try it soon.

Siggi

Cezar Andrei wrote:
> Have you tried using: <xb:extension for="*"> ?
>
> Cezar
>
>   
>> -----Original Message-----
>> From: Siegfried Baiz [mailto:baiz@sulzer.de]
>> Sent: Friday, December 08, 2006 4:07 PM
>> To: user@xmlbeans.apache.org
>> Subject: how to define an interface extension for all created
>>     
> java-Types
>   
>> rsp. all schema-elements
>>
>> Hi All,
>>
>> I'd need some help for "Interface Extensions" via .xsdconfig:
>>
>> For a given xsd-file I want to create XmlBeans with the following
>> Property:
>>
>> *each created class should implement an given Interface, say
>>     
> IAdaptable*
>   
>> I wonder if it's possible to custumize .xsdconfig in order to get an
>> "Interface Extensions"
>> for all created java-Types i.e. for all nodes of in the given
>>     
> schema-file?
>   
>> Some months ago I tried something like this:
>>
>> <xb:extension for="org.apache.xmlbeans.XmlObject">
>>  <xb:interface name="org.xxx.runtime.IAdaptable">
>>   <xb:staticHandler>de.baiz.beanex.aptableHandler</xb:staticHandler>
>>  </xb:interface>
>> </xb:extension>
>>
>> unfortunatally without succes.
>>
>> Maybe that was a stupid approch as XmlObject is not created by scomp.
>> But I hope at least it shows what im looking for.
>>
>> Thanks for any help
>>
>> Siegfried
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>>     
>
> _______________________________________________________________________
> Notice:  This email message, together with any attachments, may contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
> entities,  that may be confidential,  proprietary,  copyrighted  and/or
> legally privileged, and is intended solely for the use of the individual
> or entity named in this message. If you are not the intended recipient,
> and have received this message in error, please immediately return this
> by email and then delete it.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>
>   

RE: how to define an interface extension for all created java-Types rsp. all schema-elements

Posted by Cezar Andrei <ce...@bea.com>.
Have you tried using: <xb:extension for="*"> ?

Cezar

> -----Original Message-----
> From: Siegfried Baiz [mailto:baiz@sulzer.de]
> Sent: Friday, December 08, 2006 4:07 PM
> To: user@xmlbeans.apache.org
> Subject: how to define an interface extension for all created
java-Types
> rsp. all schema-elements
> 
> Hi All,
> 
> I'd need some help for "Interface Extensions" via .xsdconfig:
> 
> For a given xsd-file I want to create XmlBeans with the following
> Property:
> 
> *each created class should implement an given Interface, say
IAdaptable*
> 
> I wonder if it's possible to custumize .xsdconfig in order to get an
> "Interface Extensions"
> for all created java-Types i.e. for all nodes of in the given
schema-file?
> 
> Some months ago I tried something like this:
> 
> <xb:extension for="org.apache.xmlbeans.XmlObject">
>  <xb:interface name="org.xxx.runtime.IAdaptable">
>   <xb:staticHandler>de.baiz.beanex.aptableHandler</xb:staticHandler>
>  </xb:interface>
> </xb:extension>
> 
> unfortunatally without succes.
> 
> Maybe that was a stupid approch as XmlObject is not created by scomp.
> But I hope at least it shows what im looking for.
> 
> Thanks for any help
> 
> Siegfried
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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