
| Key: |
XSTR-210
|
| Type: |
New Feature
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Matthew Inger
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
XStream
Created: 29/Mar/05 12:30 PM
Updated: 24/May/07 12:38 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
1.2.2
|
|
| JDK version and platform: |
1.5.0_01
|
|
It would be very helpful if you could configure XStream to ignore certain fields and certain classes when outputing xml.
For example
public class X {
private int v;
}
public class Y {
private int w;
private int z;
private X x;
}
would generally create something like:
<Y>
<w>0</w>
<z>0</z>
<x>
<v>0</v>
</x>
</Y>
putting in the following:
xstream.ignoreClass(X.class);
xstream.ignoreField(Y.class, "z");
would yield:
<Y>
<w>0</w>
</Y>
|
|
Description
|
It would be very helpful if you could configure XStream to ignore certain fields and certain classes when outputing xml.
For example
public class X {
private int v;
}
public class Y {
private int w;
private int z;
private X x;
}
would generally create something like:
<Y>
<w>0</w>
<z>0</z>
<x>
<v>0</v>
</x>
</Y>
putting in the following:
xstream.ignoreClass(X.class);
xstream.ignoreField(Y.class, "z");
would yield:
<Y>
<w>0</w>
</Y>
|
Show » |
|