@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; } }
/** * 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; }
/** * 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; }
/** * 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; } }