PrincipalNameNodepublic class PrincipalNameNode extends com.sun.enterprise.deployment.node.runtime.RuntimeDescriptorNode This node handles principal-name information |
Methods Summary |
---|
protected boolean | setAttributeValue(com.sun.enterprise.deployment.node.XMLElement element, com.sun.enterprise.deployment.node.XMLElement attribute, java.lang.String value)parsed an attribute of an element
PrincipalNameDescriptor principal =
(PrincipalNameDescriptor) getDescriptor();
if (attribute.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
principal.setClassName(value);
return true;
}
return false;
| public void | setElementValue(com.sun.enterprise.deployment.node.XMLElement element, java.lang.String value)receives notiification of the value for a particular tag
PrincipalNameDescriptor principal =
(PrincipalNameDescriptor) getDescriptor();
if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) {
principal.setName(value);
} else super.setElementValue(element, value);
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor descriptor)write the descriptor class to a DOM tree and return it
//principal-name
Element principal = (Element) appendTextChild(
parent, RuntimeTagNames.PRINCIPAL_NAME, descriptor.getName());
// class-name
setAttribute(principal, RuntimeTagNames.CLASS_NAME, descriptor.getClassName());
return principal;
|
|