/** * write the descriptor class to a DOM tree and return it * * @param parent node in the DOM tree * @param node name for the root element of this xml fragment * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, Role descriptor) { Node roleNode = appendChild(parent, nodeName); appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription()); appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName()); return roleNode; }
SecurityRoleNode roleNode = new SecurityRoleNode(); for (Iterator e = bundleDescriptor.getRoles().iterator();e.hasNext();) { roleNode.writeDescriptor(assemblyNode, EjbTagNames.ROLE, (Role) e.next());
SecurityRoleNode roleNode = new SecurityRoleNode(); for (Iterator e = bundleDescriptor.getRoles().iterator();e.hasNext();) { roleNode.writeDescriptor(assemblyNode, TagNames.ROLE, (Role) e.next());
@Override public Node writeDescriptor(Node parent, String nodeName, SecurityRoleDescriptor descriptor) { Node roleNode = appendChild(parent, nodeName); appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription()); appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName()); return roleNode; } }
SecurityRoleNode srNode = new SecurityRoleNode(); while (roles.hasMoreElements()) { SecurityRoleDescriptor role = (SecurityRoleDescriptor) roles.nextElement(); srNode.writeDescriptor(jarNode, WebTagNames.ROLE, role);
/** * write the descriptor class to a DOM tree and return it * * @param parent node in the DOM tree * @param node name for the root element of this xml fragment * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, SecurityRoleDescriptor descriptor) { Node roleNode = appendChild(parent, nodeName); appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription()); appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName()); return roleNode; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node in the DOM tree * @param node name for the root element of this xml fragment * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, Role descriptor) { Node roleNode = appendChild(parent, nodeName); appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription()); appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName()); return roleNode; }