writer.writeAttribute(org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(CONNECTION_LISTENER_CLASS.getName()).asString()); writer.writeStartElement(DsSecurity.Tag.REAUTH_PLUGIN.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(REAUTH_PLUGIN_CLASSNAME.getName()).asString()); writer.writeStartElement(Recovery.Tag.RECOVER_PLUGIN.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(RECOVER_PLUGIN_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(RECOVER_PLUGIN_PROPERTIES.getName())) { writer.writeStartElement(Validation.Tag.VALID_CONNECTION_CHECKER.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(VALID_CONNECTION_CHECKER_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(STALE_CONNECTION_CHECKER_CLASSNAME.getName())) { writer.writeStartElement(Validation.Tag.STALE_CONNECTION_CHECKER.getLocalName()); writer.writeAttribute(org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(STALE_CONNECTION_CHECKER_CLASSNAME.getName()).asString()); writer.writeStartElement(Validation.Tag.EXCEPTION_SORTER.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(EXCEPTION_SORTER_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(EXCEPTION_SORTER_PROPERTIES.getName())) {
throws XMLStreamException, ParserException, ValidateException { for (Extension.Attribute attribute : Extension.Attribute.values()) { switch (attribute) { case CLASS_NAME: { requireSingleAttribute(reader, attribute.getLocalName()); final String value = reader.getAttributeValue(0); extensionClassName.parseAndSetParameter(value, operation, reader);
writer.writeAttribute(org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(CONNECTION_LISTENER_CLASS.getName()).asString()); writer.writeStartElement(DsSecurity.Tag.REAUTH_PLUGIN.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(REAUTH_PLUGIN_CLASSNAME.getName()).asString()); writer.writeStartElement(Recovery.Tag.RECOVER_PLUGIN.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(RECOVER_PLUGIN_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(RECOVER_PLUGIN_PROPERTIES.getName())) { writer.writeStartElement(Validation.Tag.VALID_CONNECTION_CHECKER.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(VALID_CONNECTION_CHECKER_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(STALE_CONNECTION_CHECKER_CLASSNAME.getName())) { writer.writeStartElement(Validation.Tag.STALE_CONNECTION_CHECKER.getLocalName()); writer.writeAttribute(org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(STALE_CONNECTION_CHECKER_CLASSNAME.getName()).asString()); writer.writeStartElement(Validation.Tag.EXCEPTION_SORTER.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(EXCEPTION_SORTER_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(EXCEPTION_SORTER_PROPERTIES.getName())) {
writer.writeStartElement(DsSecurity.Tag.REAUTH_PLUGIN.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(REAUTH_PLUGIN_CLASSNAME.getName()).asString()); writer.writeStartElement(Recovery.Tag.RECOVER_PLUGIN.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(RECOVER_PLUGIN_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(RECOVER_PLUGIN_PROPERTIES.getName())) { writer.writeStartElement(Validation.Tag.VALID_CONNECTION_CHECKER.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(VALID_CONNECTION_CHECKER_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(STALE_CONNECTION_CHECKER_CLASSNAME.getName())) { writer.writeStartElement(Validation.Tag.STALE_CONNECTION_CHECKER.getLocalName()); writer.writeAttribute(org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(STALE_CONNECTION_CHECKER_CLASSNAME.getName()).asString()); writer.writeStartElement(Validation.Tag.EXCEPTION_SORTER.getLocalName()); writer.writeAttribute( org.jboss.jca.common.api.metadata.common.Extension.Attribute.CLASS_NAME.getLocalName(), dataSourceNode.get(EXCEPTION_SORTER_CLASSNAME.getName()).asString()); if (dataSourceNode.hasDefined(EXCEPTION_SORTER_PROPERTIES.getName())) {
Map<String, String> properties = null; for (Extension.Attribute attribute : Extension.Attribute.values()) className = attributeAsString(reader, attribute.getLocalName()); break;
throws XMLStreamException, ParserException, ValidateException { for (Extension.Attribute attribute : Extension.Attribute.values()) { switch (attribute) { case CLASS_NAME: { requireSingleAttribute(reader, attribute.getLocalName()); final String value = reader.getAttributeValue(0); extensionClassName.parseAndSetParameter(value, operation, reader);
throws XMLStreamException, ParserException, ValidateException { for (Extension.Attribute attribute : Extension.Attribute.values()) { switch (attribute) { case CLASS_NAME: { requireSingleAttribute(reader, attribute.getLocalName()); final String value = reader.getAttributeValue(0); extensionClassName.parseAndSetParameter(value, operation, reader);
/** * * Static method to get enum instance given localName XsdString * * @param localName a XsdString used as localname (typically tag name as defined in xsd) * @return the enum instance */ public static Attribute forName(String localName) { final Attribute element = MAP.get(localName); return element == null ? UNKNOWN.value(localName) : element; } }