* @return RepositoryPolicy
*/
private RepositoryPolicy parseRepositoryPolicy( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
RepositoryPolicy repositoryPolicy = new RepositoryPolicy();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "enabled", null, parsed ) )
{
repositoryPolicy.setEnabled( getBooleanValue( getTrimmedValue( parser.nextText() ), "enabled", parser, "true" ) );
}
else if ( checkFieldWithDuplicate( parser, "updatePolicy", null, parsed ) )
{
repositoryPolicy.setUpdatePolicy( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "checksumPolicy", null, parsed ) )
{
repositoryPolicy.setChecksumPolicy( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{