* @param parser
*/
private Prerequisites parsePrerequisites(String tagName, XmlPullParser parser, boolean strict, String encoding)
throws IOException, XmlPullParserException
{
Prerequisites prerequisites = new Prerequisites();
prerequisites.setModelEncoding( encoding );
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( parser.getName().equals( "maven" ) )
{
if ( parsed.contains( "maven" ) )
{
throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
}
parsed.add( "maven" );
prerequisites.setMaven( getTrimmedValue( parser.nextText()) );
}
else
{
if ( strict )
{