/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for the descriptor * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ConnectorDescriptor connector) { Node connectorNode = super.writeDescriptor(parent, nodeName, connector); // resource-adapter SunConnector sunDesc = connector.getSunDescriptor(); if (sunDesc!=null) { ResourceAdapterNode ran = new ResourceAdapterNode(); ran.writeDescriptor(connectorNode, RuntimeTagNames.RESOURCE_ADAPTER, sunDesc.getResourceAdapter()); // role-map ? if (sunDesc.getRoleMap()!=null) { RoleMapNode rmn = new RoleMapNode(); rmn.writeDescriptor(connectorNode, RuntimeTagNames.ROLE_MAP, sunDesc.getRoleMap()); } } return connectorNode; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for the descriptor * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ConnectorDescriptor connector) { Node connectorNode = super.writeDescriptor(parent, nodeName, connector); // resource-adapter SunConnector sunDesc = connector.getSunDescriptor(); if (sunDesc!=null) { ResourceAdapterNode ran = new ResourceAdapterNode(); ran.writeDescriptor(connectorNode, RuntimeTagNames.RESOURCE_ADAPTER, sunDesc.getResourceAdapter()); // role-map ? if (sunDesc.getRoleMap()!=null) { RoleMapNode rmn = new RoleMapNode(); rmn.writeDescriptor(connectorNode, RuntimeTagNames.ROLE_MAP, sunDesc.getRoleMap()); } } return connectorNode; } }