writer.endNode();
}
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
{
DataReferential referential = new DataReferential(getReview(context));
while (reader.hasMoreChildren())
{
reader.moveDown();
if ("priorities".equals(reader.getNodeName()))
{
List<IssuePriority> priorities = new ArrayList<IssuePriority>();
while (reader.hasMoreChildren())
{
reader.moveDown();
priorities.add((IssuePriority) context.convertAnother(priorities, IssuePriority.class));
reader.moveUp();
}
referential.setIssuePriorities(priorities);
}
else if ("tags".equals(reader.getNodeName()))
{
List<IssueTag> tags = new ArrayList<IssueTag>();
while (reader.hasMoreChildren())
{
reader.moveDown();
tags.add((IssueTag) context.convertAnother(tags, IssueTag.class));
reader.moveUp();
}
referential.setIssueTags(tags);
}
else if ("users".equals(reader.getNodeName()))
{
List<User> users = new ArrayList<User>();
while (reader.hasMoreChildren())
{
reader.moveDown();
users.add((User) context.convertAnother(users, User.class));
reader.moveUp();
}
referential.setUsers(users);
}
reader.moveUp();
}
return referential;