list.add(enableOperation);
}
return;
} else {
if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.UNKNOWN) {
throw new ParserException(bundle.unexpectedEndTag(reader.getLocalName()));
}
}
break;
}
case START_ELEMENT: {
switch (DataSource.Tag.forName(reader.getLocalName())) {
case CONNECTION_PROPERTY: {
String name = rawAttributeText(reader, "name");
String value = rawElementText(reader);
final ModelNode configOperation = new ModelNode();
configOperation.get(OP).set(ADD);
final ModelNode configAddress = dsAddress.clone();
configAddress.add(CONNECTION_PROPERTIES.getName(), name);
configAddress.protect();
configOperation.get(OP_ADDR).set(configAddress);
CONNECTION_PROPERTY_VALUE.parseAndSetParameter(value, configOperation, reader);
configPropertiesOperations.add(configOperation);
break;
}
case CONNECTION_URL: {
String value = rawElementText(reader);
CONNECTION_URL.parseAndSetParameter(value, operation, reader);
break;
}
case DRIVER_CLASS: {
String value = rawElementText(reader);
DRIVER_CLASS.parseAndSetParameter(value, operation, reader);
break;
}
case DATASOURCE_CLASS: {
String value = rawElementText(reader);
DATASOURCE_CLASS.parseAndSetParameter(value, operation, reader);
break;
}
case DRIVER: {
String value = rawElementText(reader);
DATASOURCE_DRIVER.parseAndSetParameter(value, operation, reader);
break;
}
case POOL: {
parsePool(reader, operation);
break;
}
case NEW_CONNECTION_SQL: {
String value = rawElementText(reader);
NEW_CONNECTION_SQL.parseAndSetParameter(value, operation, reader);
break;
}
case URL_DELIMITER: {
String value = rawElementText(reader);
URL_DELIMITER.parseAndSetParameter(value, operation, reader);
break;
}
case URL_SELECTOR_STRATEGY_CLASS_NAME: {
String value = rawElementText(reader);
URL_SELECTOR_STRATEGY_CLASS_NAME.parseAndSetParameter(value, operation, reader);
break;
}
case TRANSACTION_ISOLATION: {
String value = rawElementText(reader);
TRANSACTION_ISOLATION.parseAndSetParameter(value, operation, reader);
break;
}
case SECURITY: {
parseDsSecurity(reader, operation);
break;
}
case STATEMENT: {
parseStatementSettings(reader, operation);
break;
}
case TIMEOUT: {
parseTimeOutSettings(reader, operation);
break;
}
case VALIDATION: {
parseValidationSetting(reader, operation);
break;
}
default:
throw new ParserException(bundle.unexpectedElement(reader.getLocalName()));
}
break;
}
}
}
throw new ParserException(bundle.unexpectedEndOfDocument());
}