}
else
{
if (IronJacamar.Tag.forName(reader.getLocalName()) == IronJacamar.Tag.UNKNOWN)
{
throw new ParserException(bundle.unexpectedEndTag(reader.getLocalName()));
}
}
break;
}
case START_ELEMENT : {
switch (IronJacamar.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 : {
if (adminObjects == null)
adminObjects = new ArrayList<CommonAdminObject>();
adminObjects.add(parseAdminObjects(reader));
break;
}
case CONNECTION_DEFINITION : {
if (connectionDefinitions == null)
connectionDefinitions = new ArrayList<CommonConnDef>();
connectionDefinitions.add(parseConnectionDefinitions(reader));
break;
}
case BEAN_VALIDATION_GROUP : {
if (beanValidationGroups == null)
beanValidationGroups = new ArrayList<String>();
beanValidationGroups.add(elementAsString(reader));
break;
}
case BOOTSTRAP_CONTEXT : {
bootstrapContext = elementAsString(reader);
break;
}
case CONFIG_PROPERTY : {
if (configProperties == null)
configProperties = new HashMap<String, String>();
String n = attributeAsString(reader, "name");
if (n == null || n.trim().equals(""))
throw new ParserException(bundle.requiredAttributeMissing("name", reader.getLocalName()));
else
configProperties.put(n, elementAsString(reader));
break;
}
case TRANSACTION_SUPPORT : {
transactionSupport = TransactionSupportEnum.valueOf(elementAsString(reader));
break;
}
default :
throw new ParserException(bundle.unexpectedElement(reader.getLocalName()));
}
break;
}
}
}
throw new ParserException(bundle.unexpectedEndOfDocument());
}