Re: [Simple-support] Reusing XML elements
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2014-09-13 04:07:55
|
Why not do this
Strategy strategy = new CycleStrategy("xxx", "ref");
Now "id" is not a special case and can be treated like anything else.
--------------------------------------------
On Fri, 12/9/14, Sobeos <so...@gm...> wrote:
Subject: Re: [Simple-support] Reusing XML elements
To: "'Niall Gallagher - Yieldbroker'" <Nia...@yi...>, sim...@li...
Received: Friday, 12 September, 2014, 10:13 PM
#yiv8167355837
#yiv8167355837 --
_filtered #yiv8167355837 {font-family:Calibri;panose-1:2 15
5 2 2 2 4 3 2 4;}
_filtered #yiv8167355837 {font-family:Tahoma;panose-1:2 11
6 4 3 5 4 4 2 4;}
_filtered #yiv8167355837 {font-family:Consolas;panose-1:2
11 6 9 2 2 4 3 2 4;}
#yiv8167355837
#yiv8167355837 p.yiv8167355837MsoNormal, #yiv8167355837
li.yiv8167355837MsoNormal, #yiv8167355837
div.yiv8167355837MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;}
#yiv8167355837 a:link, #yiv8167355837
span.yiv8167355837MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv8167355837 a:visited, #yiv8167355837
span.yiv8167355837MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv8167355837 p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}
#yiv8167355837 p.yiv8167355837MsoAcetate, #yiv8167355837
li.yiv8167355837MsoAcetate, #yiv8167355837
div.yiv8167355837MsoAcetate
{margin:0cm;margin-bottom:.0001pt;font-size:8.0pt;}
#yiv8167355837 span.yiv8167355837E-MailFormatvorlage18
{color:windowtext;}
#yiv8167355837 span.yiv8167355837E-MailFormatvorlage19
{color:#1F497D;}
#yiv8167355837 span.yiv8167355837SprechblasentextZchn
{}
#yiv8167355837 span.yiv8167355837E-MailFormatvorlage22
{color:#1F497D;}
#yiv8167355837 .yiv8167355837MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv8167355837 {margin:70.85pt 70.85pt 2.0cm
70.85pt;}
#yiv8167355837 div.yiv8167355837WordSection1
{}
#yiv8167355837 Means what? Writing my own Strategy?
I can’t see how to simply override
some implementation to get the functionality.I had a short look into the
code.As far as I can see, the logic is not
in CyclicStrategy directly. And it is not so simple to
extend the class.So I have to copy CyclicStrategy code
to change the Contract. And copy some other classes like
ReadGraph and WriteGraph…Understand all the
internals....
Sounds like a lot of hazzle to fix
some small bug in the basic CyclicStrategy
implementation.
Perhaps and hopefully I got you
wrong…
Von: Niall Gallagher - Yieldbroker
[mailto:Nia...@yi...]
Gesendet: Freitag, 12. September 2014
01:51
An: Sobeos;
sim...@li...
Betreff: RE: [Simple-support] Reusing
XML elements Yes there is, just override the
implementation and capture the “id” in that
way. From: Sobeos [mailto:so...@gm...]
Sent: 11 September 2014 19:42
To: sim...@li...
Subject: [Simple-support] Reusing XML
elements
I’m reusing
XML elements in my xml based on the id ref machanism which
is working fine. http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#reuse Now I want to unmarshall the
id attribute as a normal member variable. As result I get
always 0. Is there a
way to get the value of id in the java object when using
final
Strategy strategy
= new
CycleStrategy("id",
"ref");? Any ideas/hints? Diese E-Mail ist frei von Viren
und Malware, denn der avast!
Antivirus Schutz ist aktiv.
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist
aktiv.
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Want excitement?
Manually
upgrade your production database.
When you
want reliability, choose Perforce
Perforce
version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|