|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
com.sun.enterprise.deployment.node.DisplayableComponentNode<T>
com.sun.enterprise.deployment.node.BundleNode<T>
public abstract class BundleNode<T extends RootDeploymentDescriptor>
This class defines all the common behaviour among nodes responsibles for handling bundles
| Field Summary | |
|---|---|
protected java.lang.String |
docType
|
protected static java.lang.String |
SCHEMA_LOCATION_TAG
|
static java.lang.String |
W3C_XML_SCHEMA
|
static java.lang.String |
W3C_XML_SCHEMA_INSTANCE
|
| Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode |
|---|
abstractDescriptor, handlers, localStrings, parentNode |
| Constructor Summary | |
|---|---|
BundleNode()
|
|
| Method Summary | |
|---|---|
protected void |
addBundleNodeAttributes(org.w3c.dom.Element bundleNode,
RootDeploymentDescriptor descriptor)
write the necessary attributes for the root node of this DDs document |
void |
addPrefixMapping(java.lang.String prefix,
java.lang.String uri)
notify of a new prefix mapping used in this document |
static org.w3c.dom.Element |
appendChildNS(org.w3c.dom.Node parent,
java.lang.String elementName,
java.lang.String nameSpace)
|
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. |
protected java.lang.String |
getSchemaURL()
|
void |
setDocType(java.lang.String docType)
set the DOCTYPE as read in the input XML File |
void |
setElementValue(XMLElement element,
java.lang.String value)
receives notiification of the value for a particular tag |
protected void |
setSpecVersion()
Sets the specVersion for this descriptor depending on the docType |
org.w3c.dom.Node |
writeDescriptor(org.w3c.dom.Node parent,
T descriptor)
write the descriptor class to a DOM tree and return it |
protected void |
writeMessageDestinations(org.w3c.dom.Node parentNode,
java.util.Iterator msgDestinations)
|
| Methods inherited from class com.sun.enterprise.deployment.node.DisplayableComponentNode |
|---|
writeDisplayableComponentInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.deployment.node.RootXMLNode |
|---|
getDocType, getSpecVersion, getSystemID, getSystemIDs |
| Methods inherited from interface com.sun.enterprise.deployment.node.XMLNode |
|---|
addDescriptor, endElement, getDescriptor, getHandlerFor, getParentNode, getXMLPath, handlesElement, resolvePrefix, startElement |
| Field Detail |
|---|
public static final java.lang.String W3C_XML_SCHEMA
public static final java.lang.String W3C_XML_SCHEMA_INSTANCE
protected static final java.lang.String SCHEMA_LOCATION_TAG
protected java.lang.String docType
| Constructor Detail |
|---|
public BundleNode()
| Method Detail |
|---|
public void setDocType(java.lang.String docType)
setDocType in interface RootXMLNode<T extends RootDeploymentDescriptor>docType - for the xml
public static org.w3c.dom.Element appendChildNS(org.w3c.dom.Node parent,
java.lang.String elementName,
java.lang.String nameSpace)
protected java.util.Map getDispatchTable()
getDispatchTable in class DeploymentDescriptorNode<T extends RootDeploymentDescriptor>
public void setElementValue(XMLElement element,
java.lang.String value)
setElementValue in interface XMLNode<T extends RootDeploymentDescriptor>setElementValue in class DeploymentDescriptorNode<T extends RootDeploymentDescriptor>element - the xml elementvalue - it's associated value
public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
T descriptor)
writeDescriptor in interface XMLNode<T extends RootDeploymentDescriptor>writeDescriptor in class DisplayableComponentNode<T extends RootDeploymentDescriptor>parent - node for the DOM treedescriptor - the descriptor to write
protected void writeMessageDestinations(org.w3c.dom.Node parentNode,
java.util.Iterator msgDestinations)
protected void addBundleNodeAttributes(org.w3c.dom.Element bundleNode,
RootDeploymentDescriptor descriptor)
public void addPrefixMapping(java.lang.String prefix,
java.lang.String uri)
addPrefixMapping in interface XMLNode<T extends RootDeploymentDescriptor>addPrefixMapping in class DeploymentDescriptorNode<T extends RootDeploymentDescriptor>protected java.lang.String getSchemaURL()
protected void setSpecVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||