/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor( Node parent, String nodeName, PrincipalNameDescriptor descriptor) { //principal-name Element principal = (Element) appendTextChild( parent, RuntimeTagNames.PRINCIPAL_NAME, descriptor.getName()); // class-name setAttribute(principal, RuntimeTagNames.CLASS_NAME, descriptor.getClassName()); return principal; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor( Node parent, String nodeName, PrincipalNameDescriptor descriptor) { //principal-name Element principal = (Element) appendTextChild( parent, RuntimeTagNames.PRINCIPAL_NAME, descriptor.getName()); // class-name setAttribute(principal, RuntimeTagNames.CLASS_NAME, descriptor.getClassName()); return principal; } }