}
}
return;
} else {
throw new ParserException(bundle.requiredElementMissing(ARCHIVE.getName(), RESOURCEADAPTER_NAME));
}
} else {
if (ResourceAdapter.Tag.forName(reader.getLocalName()) == ResourceAdapter.Tag.UNKNOWN) {
throw new ParserException(bundle.unexpectedEndTag(reader.getLocalName()));
}
}
break;
}
case START_ELEMENT: {
switch (ResourceAdapter.Tag.forName(reader.getLocalName())) {
case ADMIN_OBJECTS:
case CONNECTION_DEFINITIONS:
case BEAN_VALIDATION_GROUPS: {
//ignore it,we will parse bean-validation-group,admin_object and connection_definition directly
break;
}
case ADMIN_OBJECT: {
parseAdminObjects(reader, adminObjectsOperations, aoConfigPropertiesOperations);
break;
}
case CONNECTION_DEFINITION: {
parseConnectionDefinitions(reader, connectionDefinitionsOperations, cfConfigPropertiesOperations);
break;
}
case BEAN_VALIDATION_GROUP: {
String value = rawElementText(reader);
operation.get(BEANVALIDATIONGROUPS.getName()).add(BEANVALIDATIONGROUPS.parse(value, reader));
break;
}
case BOOTSTRAP_CONTEXT: {
String value = rawElementText(reader);
BOOTSTRAPCONTEXT.parseAndSetParameter(value, operation, reader);
break;
}
case CONFIG_PROPERTY: {
parseConfigProperties(reader, configPropertiesOperations);
break;
}
case TRANSACTION_SUPPORT: {
String value = rawElementText(reader);
TRANSACTIONSUPPORT.parseAndSetParameter(value, operation, reader);
break;
}
case ARCHIVE: {
archiveName = rawElementText(reader);
ARCHIVE.parseAndSetParameter(archiveName, operation, reader);
break;
}
default:
throw new ParserException(bundle.unexpectedElement(reader.getLocalName()));
}
break;
}
}
}
throw new ParserException(bundle.unexpectedEndOfDocument());
}