I am looking to build java objects
<placement_rules>
<section name="news">
<front_order>
<article_type name="article1"></article_type>
<article_type name="article2"></article_type>
</front_order>
<back_order>
<article_type name="article3"></article_type>
</back_order>
</section>
<section name="sports">
<front_order>
<article_type name="article4"></article_type>
</front_order>
<back_order>
<article_type name="article5"></article_type>
<article_type name="article6"></article_type>
</back_order>
</section>
</placement_rules>
What are the objects that i need to create?
i am starting from inside SectionRule.java
@XStreamAsAttribute
@XStreamAlias("name")
private String sectionName;
@XStreamAlias("front_order")
private List<ConfigPlacementNode> frontOrder = new ArrayList<ConfigPlacementNode>(0);
@XStreamAlias("back_order")
private List<ConfigPlacementNode> backOrder = new ArrayList<ConfigPlacementNode>(0);
how do i create other first class objects around it? any help will be highly appreciated.
Regards, Amar