/** * If not already created, a new <code>authentication-mechanism</code> element will be created and returned. * Otherwise, the first existing <code>authentication-mechanism</code> element will be returned. * @return the instance defined for the element <code>authentication-mechanism</code> */ public AuthenticationMechanismType<OutboundResourceadapterType<T>> getOrCreateAuthenticationMechanism() { List<Node> nodeList = childNode.get("authentication-mechanism"); if (nodeList != null && nodeList.size() > 0) { return new AuthenticationMechanismTypeImpl<OutboundResourceadapterType<T>>(this, "authentication-mechanism", childNode, nodeList.get(0)); } return createAuthenticationMechanism(); }
/** * If not already created, a new <code>authentication-mechanism</code> element will be created and returned. * Otherwise, the first existing <code>authentication-mechanism</code> element will be returned. * @return the instance defined for the element <code>authentication-mechanism</code> */ public AuthenticationMechanismType<OutboundResourceadapterType<T>> getOrCreateAuthenticationMechanism() { List<Node> nodeList = childNode.get("authentication-mechanism"); if (nodeList != null && nodeList.size() > 0) { return new AuthenticationMechanismTypeImpl<OutboundResourceadapterType<T>>(this, "authentication-mechanism", childNode, nodeList.get(0)); } return createAuthenticationMechanism(); }
/** * If not already created, a new <code>authentication-mechanism</code> element will be created and returned. * Otherwise, the first existing <code>authentication-mechanism</code> element will be returned. * @return the instance defined for the element <code>authentication-mechanism</code> */ public AuthenticationMechanismType<OutboundResourceadapterType<T>> getOrCreateAuthenticationMechanism() { List<Node> nodeList = childNode.get("authentication-mechanism"); if (nodeList != null && nodeList.size() > 0) { return new AuthenticationMechanismTypeImpl<OutboundResourceadapterType<T>>(this, "authentication-mechanism", childNode, nodeList.get(0)); } return createAuthenticationMechanism(); }
/** * If not already created, a new <code>authentication-mechanism</code> element will be created and returned. * Otherwise, the first existing <code>authentication-mechanism</code> element will be returned. * @return the instance defined for the element <code>authentication-mechanism</code> */ public AuthenticationMechanismType<OutboundResourceadapterType<T>> getOrCreateAuthenticationMechanism() { List<Node> nodeList = childNode.get("authentication-mechanism"); if (nodeList != null && nodeList.size() > 0) { return new AuthenticationMechanismTypeImpl<OutboundResourceadapterType<T>>(this, "authentication-mechanism", childNode, nodeList.get(0)); } return createAuthenticationMechanism(); }