*/
private LifecycleConfiguration parseLifecycleConfiguration( XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
String tagName = parser.getName();
LifecycleConfiguration lifecycleConfiguration = new LifecycleConfiguration();
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 if ( "xmlns".equals( name ) )
{
// ignore xmlns attribute in root class, which is a reserved attribute name
}
else
{
checkUnknownAttribute( parser, name, tagName, strict );
}
}
java.util.Set parsed = new java.util.HashSet();
while ( ( strict ? parser.nextTag() : nextTag( parser ) ) == XmlPullParser.START_TAG )
{
if ( "lifecycle".equals( parser.getName() ) )
{
java.util.List lifecycles = lifecycleConfiguration.getLifecycles();
if ( lifecycles == null )
{
lifecycles = new java.util.ArrayList/*<Lifecycle>*/();
lifecycleConfiguration.setLifecycles( lifecycles );
}
lifecycles.add( parseLifecycle( parser, strict ) );
}
else
{