|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.node.DeploymentDescriptorNode
com.sun.enterprise.deployment.node.ExtensionElementNode
public class ExtensionElementNode
This node is responsible for loading and saving any type of xml node and store them in a DeploymentExtensionElement
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode |
|---|
abstractDescriptor, handlers, localStrings, parentNode |
| Constructor Summary | |
|---|---|
ExtensionElementNode()
Creates a new instance of DynamicDescriptorNode |
|
| Method Summary | |
|---|---|
protected void |
addNodeDescriptor(DeploymentDescriptorNode node)
Adds a new DOL descriptor instance to the descriptor associated with this XMLNode |
org.w3c.dom.Element |
appendChildNS(org.w3c.dom.Node parent,
java.lang.String elementName,
Descriptor descriptor)
Append a new element child to the current node |
org.w3c.dom.Node |
appendTextChildNS(org.w3c.dom.Node parent,
java.lang.String elementName,
java.lang.String text,
Descriptor descriptor)
Append a new text child |
boolean |
endElement(XMLElement element)
receives notification of the end of an XML element by the Parser |
java.lang.Object |
getDescriptor()
|
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. |
XMLNode |
getHandlerFor(XMLElement element)
Return the XMLNode implementation respionsible for handling the sub-element of the current node |
boolean |
handlesElement(XMLElement element)
Return true if the XMLNode is responisble for handling the XML element |
void |
setElementValue(XMLElement element,
java.lang.String value)
receives notification of the value for a particular tag |
void |
startElement(XMLElement element,
org.xml.sax.Attributes attributes)
SAX Parser API implementation, we don't really care for now. |
protected void |
writeDescriptor(org.w3c.dom.Node parentNode,
java.lang.String tagName,
ExtensionElementDescriptor descriptor)
write the deployment extensions nodes associated with this node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionElementNode()
| Method Detail |
|---|
protected java.util.Map getDispatchTable()
getDispatchTable in class DeploymentDescriptorNodeprotected void addNodeDescriptor(DeploymentDescriptorNode node)
addNodeDescriptor in class DeploymentDescriptorNodeXMLNode - the sub-node adding the descriptor;descriptor - the new descriptorpublic java.lang.Object getDescriptor()
getDescriptor in interface XMLNodegetDescriptor in class DeploymentDescriptorNodepublic boolean handlesElement(XMLElement element)
XMLNode
handlesElement in interface XMLNodehandlesElement in class DeploymentDescriptorNodeelement - the XML element type name
public XMLNode getHandlerFor(XMLElement element)
XMLNode
getHandlerFor in interface XMLNodegetHandlerFor in class DeploymentDescriptorNodeelement - the XML element type name
public void startElement(XMLElement element,
org.xml.sax.Attributes attributes)
startElement in interface XMLNodestartElement in class DeploymentDescriptorNodeelement - the XML element type nameattributes - the specified or defaultted attritutes
public void setElementValue(XMLElement element,
java.lang.String value)
setElementValue in interface XMLNodesetElementValue in class DeploymentDescriptorNodeelement - the xml elementvalue - it's associated valuepublic boolean endElement(XMLElement element)
endElement in interface XMLNodeendElement in class DeploymentDescriptorNodeelement - the xml tag identification
protected void writeDescriptor(org.w3c.dom.Node parentNode,
java.lang.String tagName,
ExtensionElementDescriptor descriptor)
parent - node for the DOM treedeployment - extension element
public org.w3c.dom.Element appendChildNS(org.w3c.dom.Node parent,
java.lang.String elementName,
Descriptor descriptor)
Append a new element child to the current node
parentNode - is the parent node for the new child elementelementName - is new element tag name
public org.w3c.dom.Node appendTextChildNS(org.w3c.dom.Node parent,
java.lang.String elementName,
java.lang.String text,
Descriptor descriptor)
Append a new text child
parent - for the new child elementelementName - is the new element tag nametext - the text for the new element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||