* @return ReportSet
*/
private ReportSet parseReportSet( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
ReportSet reportSet = new ReportSet();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "id", null, parsed ) )
{
reportSet.setId( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "configuration", null, parsed ) )
{
reportSet.setConfiguration( Xpp3DomBuilder.build( parser ) );
}
else if ( checkFieldWithDuplicate( parser, "inherited", null, parsed ) )
{
reportSet.setInherited( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "reports", null, parsed ) )
{
java.util.List reports = new java.util.ArrayList/*<String>*/();
reportSet.setReports( reports );
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( parser.getName().equals( "report" ) )
{
reports.add( getTrimmedValue( parser.nextText() ) );