* @return ReportPlugin
*/
private ReportPlugin parseReportPlugin( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
ReportPlugin reportPlugin = new ReportPlugin();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "groupId", null, parsed ) )
{
reportPlugin.setGroupId( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "artifactId", null, parsed ) )
{
reportPlugin.setArtifactId( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "version", null, parsed ) )
{
reportPlugin.setVersion( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "inherited", null, parsed ) )
{
reportPlugin.setInherited( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "configuration", null, parsed ) )
{
reportPlugin.setConfiguration( Xpp3DomBuilder.build( parser ) );
}
else if ( checkFieldWithDuplicate( parser, "reportSets", null, parsed ) )
{
java.util.List reportSets = new java.util.ArrayList/*<ReportSet>*/();
reportPlugin.setReportSets( reportSets );
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( parser.getName().equals( "reportSet" ) )
{
reportSets.add( parseReportSet( "reportSet", parser, strict ) );