[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-users
Subject:    Re: [jibx-users] custom mapping to Properties
From:       Archie Cobbs <archie () dellroad ! org>
Date:       2015-05-22 12:49:56
Message-ID: CANSoFxuBUQdSgMgsXbr2qhftP1-qvBXAx2-F+EnwUrJKNF4TFg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Since Properties is a Map you could use my MapEntry
<http://dellroad-stuff.googlecode.com/svn/trunk/publish/reports/javadoc/index.html?org/dellroad/stuff/jibx/MapEntry.html>
 class or some variant thereof.

-Archie

On Thu, May 21, 2015 at 10:14 PM, Marvin Wolfthal <maw@weichi.com> wrote:

> Given a name-value pair element:
> 
> 
> 
> <*xs**:complexType **name**="NVP"*>
> <*xs**:attribute **name**="name" **type**="xs:string" **use*
> *="required"*/>
> <*xs**:attribute **name**="value" **type**="xs:string" **use*
> *="required"*/>
> </*xs**:complexType*>
> 
> 
> 
> and a collection:
> 
> 
> <*xs:complexType name="Variables"*>
> <*xs:sequence*>
> <*xs:element name="Variable" type="NVP" maxOccurs="unbounded"*/>
> </*xs:sequence*>
> </*xs:complexType*>
> 
> 
> 
> How would one map the collection to java.util.Properties?
> 
> 
> 
> Thanks,
> 
> Marvin Wolfthal
> 
> email: maw@weichi.com
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
> 
> 


-- 
Archie L. Cobbs


[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr"><div>Since Properties is a Map you could use my <a \
href="http://dellroad-stuff.googlecode.com/svn/trunk/publish/reports/javadoc/index.html?org/dellroad/stuff/jibx/MapEntry.html" \
target="_blank">MapEntry</a> class or some variant \
thereof.<br><br></div>-Archie<br></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Thu, May 21, 2015 at 10:14 PM, Marvin Wolfthal <span \
dir="ltr">&lt;<a href="mailto:maw@weichi.com" \
target="_blank">maw@weichi.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p \
class="MsoNormal">Given a name-value pair element:<u></u><u></u></p><p \
class="MsoNormal"><u></u>  <u></u></p><p class="MsoNormal" \
style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:black;background:#efefef">&lt;</span><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#660e7a">xs</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:navy">:complexType<span style="background:#efefef"> \
</span></span></b><b><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">name</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;NVP&quot;</span></b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:black;background:#efefef">&gt;</span><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><br>       \
<span style="background:#efefef">&lt;</span></span><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#660e7a">xs</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:navy">:attribute<span style="background:#efefef"> \
</span></span></b><b><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">name</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;name&quot; </span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">type</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;xs:string&quot; </span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">use</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;required&quot;</span></b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:black;background:#efefef">/&gt;</span><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><br>       \
<span style="background:#efefef">&lt;</span></span><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#660e7a">xs</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:navy">:attribute<span style="background:#efefef"> \
</span></span></b><b><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">name</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;value&quot; </span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">type</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;xs:string&quot; </span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:blue;background:#efefef">use</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:green;background:#efefef">=&quot;required&quot;</span></b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:black;background:#efefef">/&gt;</span><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><br><span \
style="background:#efefef">&lt;/</span></span><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#660e7a">xs</span></b><b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:navy">:complexType</span></b><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:black;background:#efefef">&gt;</span><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span \
style="font-size:10.0pt"><u></u>  <u></u></span></p><p class="MsoNormal"><span \
style="font-size:10.0pt">and a collection:<u></u><u></u></span></p><pre \
style="background:white"><span style="font-size:11.5pt;color:black"><br></span><span \
style="color:black;background:#efefef">&lt;</span><b><span \
style="color:#660e7a">xs</span><span style="color:navy">:complexType<span \
style="background:#efefef"> </span></span><span \
style="color:blue;background:#efefef">name</span><span \
style="color:green;background:#efefef">=&quot;Variables&quot;</span></b><span \
style="color:black;background:#efefef">&gt;</span><span style="color:black"><br>      \
<span style="background:#efefef">&lt;</span></span><b><span \
style="color:#660e7a">xs</span><span style="color:navy">:sequence</span></b><span \
style="color:black;background:#efefef">&gt;</span><span style="color:black"><br>      \
<span style="background:#efefef">&lt;</span></span><b><span \
style="color:#660e7a">xs</span><span style="color:navy">:element<span \
style="background:#efefef"> </span></span><span \
style="color:blue;background:#efefef">name</span><span \
style="color:green;background:#efefef">=&quot;Variable&quot; </span><span \
style="color:blue;background:#efefef">type</span><span \
style="color:green;background:#efefef">=&quot;NVP&quot; </span><span \
style="color:blue;background:#efefef">maxOccurs</span><span \
style="color:green;background:#efefef">=&quot;unbounded&quot;</span></b><span \
style="color:black;background:#efefef">/&gt;</span><span style="color:black"><br>     \
<span style="background:#efefef">&lt;/</span></span><b><span \
style="color:#660e7a">xs</span><span style="color:navy">:sequence</span></b><span \
style="color:black;background:#efefef">&gt;</span><span style="color:black"><br><span \
style="background:#efefef">&lt;/</span></span><b><span \
style="color:#660e7a">xs</span><span style="color:navy">:complexType</span></b><span \
style="color:black;background:#efefef">&gt;</span><span \
style="color:black"><u></u><u></u></span></pre><p class="MsoNormal"><span \
style="font-size:9.0pt"><u></u>  <u></u></span></p><p class="MsoNormal"><span \
style="font-size:10.0pt">How would one map the collection to </span><span \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;">java.util.Properties</span><span \
style="font-size:10.0pt">?<u></u><u></u></span></p><p class="MsoNormal"><span \
style="font-size:9.0pt"><u></u>  <u></u></span></p><p class="MsoNormal"><span \
style="font-size:10.0pt">Thanks,<u></u><u></u></span></p><p class="MsoNormal">Marvin \
Wolfthal<u></u><u></u></p><p class="MsoNormal">email: <a href="mailto:maw@weichi.com" \
target="_blank">maw@weichi.com</a><u></u><u></u></p><p class="MsoNormal"><u></u>  \
<u></u></p></div></div><br>------------------------------------------------------------------------------<br>
 One dashboard for servers and applications across Physical-Virtual-Cloud<br>
Widest out-of-the-box monitoring support with 50+ applications<br>
Performance metrics, stats and reports that give you Actionable Insights<br>
Deep dive visibility with transaction tracing using APM Insight.<br>
<a href="http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" \
target="_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a><br>_______________________________________________<br>
 jibx-users mailing list<br>
<a href="mailto:jibx-users@lists.sourceforge.net">jibx-users@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/jibx-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/jibx-users</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br><div \
class="gmail_signature"><div dir="ltr">Archie L. Cobbs<br></div></div> </div>



------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic