JavaWebStartAccessNodepublic class JavaWebStartAccessNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode
Fields Summary |
---|
protected com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor | descriptor |
Constructors Summary |
---|
public JavaWebStartAccessNode()Creates a new instance of JavaWebStartAccessNode
|
Methods Summary |
---|
public java.lang.Object | getDescriptor()
if (descriptor==null) {
descriptor = new JavaWebStartAccessDescriptor();
XMLNode parentNode = getParentNode();
if (parentNode != null && (parentNode instanceof AppClientRuntimeNode)) {
Object parentDescriptor = parentNode.getDescriptor();
if (parentDescriptor != null && (parentDescriptor instanceof ApplicationClientDescriptor) ) {
ApplicationClientDescriptor acDescriptor = (ApplicationClientDescriptor) parentDescriptor;
acDescriptor.setJavaWebStartAccessDescriptor(descriptor);
}
}
}
return descriptor;
| protected java.util.Map | getDispatchTable()all sub-implementation of this class can use a dispatch table to map xml element to
method name on the descriptor class for setting the element value.
Map table = super.getDispatchTable();
table.put(RuntimeTagNames.CONTEXT_ROOT, "setContextRoot");
table.put(RuntimeTagNames.ELIGIBLE, "setEligible");
table.put(RuntimeTagNames.VENDOR, "setVendor");
return table;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor descr)write the descriptor class to a DOM tree and return it
Node accessNode = super.writeDescriptor(parent, nodeName, descr);
appendTextChild(accessNode, RuntimeTagNames.CONTEXT_ROOT, descr.getContextRoot());
appendTextChild(accessNode, RuntimeTagNames.ELIGIBLE, Boolean.toString(descr.isEligible()));
appendTextChild(accessNode, RuntimeTagNames.VENDOR, descr.getVendor());
return accessNode;
| public static void | writeJavaWebStartInfo(org.w3c.dom.Node parent, com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor descr)
if (descr != null) {
JavaWebStartAccessNode newNode = new JavaWebStartAccessNode();
newNode.writeDescriptor(parent, RuntimeTagNames.JAVA_WEB_START_ACCESS, descr);
}
|
|