Hello Castor community!
Is it possible to do the following:
Imagine I have the following XML, that I wish to unmarshall:
<component id="scanner" name="Scanner">
<model id="1" name="Foo" forecastMaintHours="80"
hourPrice="90" partsPrice="2800" />
<model id="2" name="Bar" forecastMaintHours="150"
hourPrice="90" partsPrice="14000"/>
</component>
I have a component class:
public class Component {
private String id;
private String name;
private List<Model> models;
...
}
A model class:
public class Model {
private String id;
private List<ModelAttribute> attributes;
...}
and finally a ModelAttribute class (basically it's purpose it to be an hashmap:
public class ModelAttribute {
public String name;
public String value;
...}
Now my question is, how can I map a custom name of a model attribute
to the ModelAttribute.name and its value to ModelAttribute.value?
Best regards,
Daniel Garrido
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email