Converting from AtomicValue to XdmAtomicValue ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Converting from AtomicValue to XdmAtomicValue ?

cmarchand
Hello !

how do we convert a AtomicValue to a XdmAtomicValue ?
XdmAtomicValue(AtomicValue) is protected...

Best,
Christophe


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Converting from AtomicValue to XdmAtomicValue ?

Patrik.Stellmann
Hi Christophe,

the static method
XdmValue.wrap(Sequence value)
might work for you.

Regards,
Patrik


------------------------------------------------------------------
Systemarchitektur & IT-Projekte
Tel: +49 40 33449-1142
Fax: +49 40 33449-1400
E-Mail: mailto:[hidden email]

-----Ursprüngliche Nachricht-----
Von: Christophe Marchand [mailto:[hidden email]]
Gesendet: Mittwoch, 29. März 2017 18:48
An: [hidden email]
Betreff: [saxon] Converting from AtomicValue to XdmAtomicValue ?

Hello !

how do we convert a AtomicValue to a XdmAtomicValue ?
XdmAtomicValue(AtomicValue) is protected...

Best,
Christophe


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help

GDV Dienstleistungs-GmbH
Glockengießerwall 1
D-20095 Hamburg
www.gdv-dl.de

Sitz und Registergericht: Hamburg
HRB 145291
USt.-IdNr : DE 205183123

Geschäftsführer:
Dr. Jens Bartenwerfer
Michael Bathke
Fred di Giuseppe Chiachiarella
Thomas Fischer

Aufsichtsratsvorsitzender: Werner Schmidt

------------------------------------------------------------------
Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail and any attached files may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Converting from AtomicValue to XdmAtomicValue ?

cmarchand
Thanks a lot !
Christophe

Le 2017-03-30 06:27, Dr. Patrik Stellmann a écrit :

> Hi Christophe,
>
> the static method
> XdmValue.wrap(Sequence value)
> might work for you.
>
> Regards,
> Patrik
>
>
> ------------------------------------------------------------------
> Systemarchitektur & IT-Projekte
> Tel: +49 40 33449-1142
> Fax: +49 40 33449-1400
> E-Mail: mailto:[hidden email]
>
> -----Ursprüngliche Nachricht-----
> Von: Christophe Marchand [mailto:[hidden email]]
> Gesendet: Mittwoch, 29. März 2017 18:48
> An: [hidden email]
> Betreff: [saxon] Converting from AtomicValue to XdmAtomicValue ?
>
> Hello !
>
> how do we convert a AtomicValue to a XdmAtomicValue ?
> XdmAtomicValue(AtomicValue) is protected...
>
> Best,
> Christophe
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
> GDV Dienstleistungs-GmbH
> Glockengießerwall 1
> D-20095 Hamburg
> www.gdv-dl.de
>
> Sitz und Registergericht: Hamburg
> HRB 145291
> USt.-IdNr : DE 205183123
>
> Geschäftsführer:
> Dr. Jens Bartenwerfer
> Michael Bathke
> Fred di Giuseppe Chiachiarella
> Thomas Fischer
>
> Aufsichtsratsvorsitzender: Werner Schmidt
>
> ------------------------------------------------------------------
> Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder
> rechtlich geschützte Informationen. Wenn Sie nicht der richtige
> Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren
> Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das
> unerlaubte Kopieren sowie die unbefugte Weitergabe der E-Mail ist
> nicht gestattet.
>
> This e-mail and any attached files may contain confidential and/or
> privileged information. If you are not the intended recipient (or have
> received this e-mail in error) please notify the sender immediately
> and destroy this e-mail. Any unauthorised copying, disclosure or
> distribution of the material in this e-mail is strictly forbidden.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Converting from AtomicValue to XdmAtomicValue ?

Michael Kay
In reply to this post by Patrik.Stellmann

> On 30 Mar 2017, at 05:27, Dr. Patrik Stellmann <[hidden email]> wrote:
>
> Hi Christophe,
>
> the static method
> XdmValue.wrap(Sequence value)
> might work for you.
>
> Regards,
> Patrik

Yes indeed, that's the way to do it.

I was trying to remember why we made the constructor protected and I think it was to keep open the option of making XdmAtomicValue abstract and introducing subclasses for the primitive atomic types.

Michael Kay
Saxonica
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help