Can I put an unmarshaller on a value?

<structure name="details">
<value style="element" name="Detail-A" field="detail"
unmarshaller="com.xxxx.model.UnMarshall"/>
</structure>

I tried the above but nothing got called... I put print statements in the
unmarshall....



On Tue, May 14, 2013 at 3:13 PM, Archie Cobbs <arc...@dellroad.org> wrote:

> Don't think that's possible without writing a custom unmarshaller.
>
> -Archie
>
>
> On Tue, May 14, 2013 at 1:53 PM, John Smith <java.dev....@gmail.com>wrote:
>
>> Can i get the name of a tag and set it as a value on my pojo?
>>
>>
>> On Tue, May 14, 2013 at 2:18 PM, Archie Cobbs <arc...@dellroad.org>wrote:
>>
>>> You could create a bunch of fake bean properties with corresponding
>>> names that all set the underlying "real" property accordingly.
>>>
>>> Alternately, insert an XSL transform in the pipeline that would get
>>> applied prior to JiBX seeing the XML.
>>>
>>> -Archie
>>>
>>> On Tue, May 14, 2013 at 12:00 PM, John Smith <java.dev....@gmail.com>wrote:
>>>
>>>> This is the DTD I'm trying to accommodate
>>>>
>>>> <!ELEMENT someNode  ( (ABC | DEF | GHI | JKL | MNO | <----- There's
>>>> about twenty of these which represent pretty much the same object. No clue
>>>> why this was done, but I'm stuck with it. I wish I could just ignore but I
>>>> need to remember this value.
>>>>
>>>>                              (cardNumber, expiryDate, cardHolderName,
>>>>                                  (cvc | issueNumber | startDate)?,
>>>>                                  xxxx?) |
>>>>
>>>>                              (xxxx, xxxx?)
>>>>                             ), xxxx?, xxxx?, xxxx? )>
>>>>
>>>>
>>>> On Tue, May 14, 2013 at 9:44 AM, John Smith <java.dev....@gmail.com>wrote:
>>>>
>>>>> So I'm in the process of painfully taking one XML format
>>>>> and basically flatening it to have one main root node and all the elements
>>>>> under it.
>>>>>
>>>>> I have the following fragment....
>>>>>
>>>>>
>>>>> <parent-mc>
>>>>>     <cardNumber>1234567890</cardNumber>
>>>>> </parent-mc>
>>>>>
>>>>> <parent-vi>
>>>>>     <cardNumber>1234567890</cardNumber>
>>>>> </parent-vi>
>>>>>
>>>>>
>>>>>
>>>>> What this tells us is that the cardNumber is of type mc or of type vi
>>>>>
>>>>> The resulting model would
>>>>>
>>>>> <root>
>>>>>     <type>credit card</type>
>>>>>     <acctNumber>12354567890</acctNumber>
>>>>> </root>
>>>>>
>>>>> I suspect more unmarshaller stuff right? :P
>>>>>
>>>>> How would the binding for this look? I mean I know how to declare the
>>>>> unmarshaller based on your example. But how would I deal with declaring 
>>>>> the
>>>>> different parent tags?
>>>>>
>>>>> I also realized that I need to keep parent-mc and parent-vi in a
>>>>> separate field so when I return back to the client I return back the right
>>>>> tag.
>>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> AlienVault Unified Security Management (USM) platform delivers complete
>>>> security visibility with the essential security capabilities. Easily and
>>>> efficiently configure, manage, and operate all of your security controls
>>>> from a single console and one unified framework. Download a free trial.
>>>> http://p.sf.net/sfu/alienvault_d2d
>>>> _______________________________________________
>>>> jibx-users mailing list
>>>> jibx-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Archie L. Cobbs
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> AlienVault Unified Security Management (USM) platform delivers complete
>>> security visibility with the essential security capabilities. Easily and
>>> efficiently configure, manage, and operate all of your security controls
>>> from a single console and one unified framework. Download a free trial.
>>> http://p.sf.net/sfu/alienvault_d2d
>>> _______________________________________________
>>> jibx-users mailing list
>>> jibx-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> jibx-users mailing list
>> jibx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>
>>
>
>
> --
> Archie L. Cobbs
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to