Author |
Message
|
PEPERO |
Posted: Sun Aug 10, 2014 10:31 pm Post subject: MbElement getValueAsString java method |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Hi all;
Apparently the getValueAsString java method in JCN trims automatically the element's value. How could it be avoided? |
|
Back to top |
|
 |
kimbert |
Posted: Mon Aug 11, 2014 2:48 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
What evidence do you have for this? _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
PEPERO |
Posted: Wed Sep 03, 2014 10:40 pm Post subject: |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
There is an element of type xsd:string within the MRM message. Whenever the value of this element ends with spaces , the parser sets the value of the element up to a non-space position. What do i have to do to get the whole value of the element with spaces included? |
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 03, 2014 11:27 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
So...what about the getValueAsString() method? Are you still claiming that it is broken?
MRM does trimming ( when parsing ) and padding ( when writing ) on fixed-length fields. It's easy to adjust the settings to avoid it. I think you need to set 'Justification' to 'None' but my memory may be faulty. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
PEPERO |
Posted: Wed Sep 03, 2014 11:54 pm Post subject: |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Quote: |
So...what about the getValueAsString() method? Are you still claiming that it is broken?
|
That's beacause of the MRM trimming.
But it cannot be set to none. I try to set justification to 'Not applicable' but it automatically changes to 'Left Justify' when i save the properties!
Last edited by PEPERO on Sat Sep 06, 2014 7:29 am; edited 2 times in total |
|
Back to top |
|
 |
PEPERO |
Posted: Sat Sep 06, 2014 7:23 am Post subject: |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Shall i replace the MRM domain with BLOB? |
|
Back to top |
|
 |
|