* @return DeploymentRepository
*/
private DeploymentRepository parseDeploymentRepository( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
DeploymentRepository deploymentRepository = new DeploymentRepository();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "uniqueVersion", null, parsed ) )
{
deploymentRepository.setUniqueVersion( getBooleanValue( getTrimmedValue( parser.nextText() ), "uniqueVersion", parser, "true" ) );
}
else if ( checkFieldWithDuplicate( parser, "releases", null, parsed ) )
{
deploymentRepository.setReleases( parseRepositoryPolicy( "releases", parser, strict ) );
}
else if ( checkFieldWithDuplicate( parser, "snapshots", null, parsed ) )
{
deploymentRepository.setSnapshots( parseRepositoryPolicy( "snapshots", parser, strict ) );
}
else if ( checkFieldWithDuplicate( parser, "id", null, parsed ) )
{
deploymentRepository.setId( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "name", null, parsed ) )
{
deploymentRepository.setName( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "url", null, parsed ) )
{
deploymentRepository.setUrl( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "layout", null, parsed ) )
{
deploymentRepository.setLayout( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{