*/
private CiManagement parseCiManagement( XmlPullParser parser, boolean strict, InputSource source )
throws IOException, XmlPullParserException
{
String tagName = parser.getName();
CiManagement ciManagement = new CiManagement();
InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
ciManagement.setLocation( "", _location );
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
{
String name = parser.getAttributeName( i );
String value = parser.getAttributeValue( i );
if ( name.indexOf( ':' ) >= 0 )
{
// just ignore attributes with non-default namespace (for example: xmlns:xsi)
}
else
{
checkUnknownAttribute( parser, name, tagName, strict );
}
}
java.util.Set parsed = new java.util.HashSet();
while ( ( strict ? parser.nextTag() : nextTag( parser ) ) == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "system", null, parsed ) )
{
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
ciManagement.setLocation( "system", _location );
ciManagement.setSystem( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "url", null, parsed ) )
{
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
ciManagement.setLocation( "url", _location );
ciManagement.setUrl( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "notifiers", null, parsed ) )
{
java.util.List notifiers = new java.util.ArrayList/*<Notifier>*/();
ciManagement.setNotifiers( notifiers );
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( "notifier".equals( parser.getName() ) )
{
notifiers.add( parseNotifier( parser, strict, source ) );