FileDocCategorySizeDatePackage
PrincipalNode.javaAPI DocGlassfish v2 API3570Fri May 04 22:31:42 BST 2007com.sun.enterprise.deployment.node.runtime

PrincipalNode

public class PrincipalNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode
This mode handles the principal definition in the runtine DDs
author
Jerome Dochez
version

Fields Summary
com.sun.enterprise.deployment.PrincipalImpl
principal
Constructors Summary
Methods Summary
public java.lang.ObjectgetDescriptor()

return
the descriptor instance to associate with this XMLNode

        
                    
       
        return principal;
    
public voidsetElementValue(com.sun.enterprise.deployment.node.XMLElement element, java.lang.String value)
receives notification of the value for a particular tag

param
element the xml element
param
value it's associated value

        
        if (RuntimeTagNames.NAME.equals(element.getQName())) {
            principal = new PrincipalImpl(value);
        } else super.setElementValue(element, value);
    
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.PrincipalImpl descriptor)
write the descriptor class to a DOM tree and return it

param
parent node for the DOM tree
param
node name
param
the descriptor to write
return
the DOM tree top node

      
        Node principal = appendChild(parent, nodeName);     
	appendTextChild(principal, RuntimeTagNames.NAME, descriptor.getName());
        return principal;