public abstract class RuntimeBundleNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor> extends DeploymentDescriptorNode<T> implements RootXMLNode<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
descriptor |
protected HashMap<String,LinkedHashMap<String,Class>> |
elementToNodeMappings |
abstractDescriptor, habitat, handlers, localStrings, parentNode, rootNode| Constructor and Description |
|---|
RuntimeBundleNode() |
RuntimeBundleNode(T descriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptor(Object descriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with
this XMLNode
|
static Element |
appendChildNS(Node parent,
String elementName,
String nameSpace) |
T |
getDescriptor() |
protected Map<String,String> |
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.
|
LinkedHashMap<String,Class> |
getNodeMappings(String currentElementName) |
String |
getSpecVersion() |
protected void |
init()
Initializes the child handler;
|
void |
recordNodeMapping(String currentElementName,
String subElementName,
Class subElementHandler)
record mapping of sub element to node class for the current element
|
protected static boolean |
restrictDTDDeclarations() |
void |
setDocType(String docType)
set the DOCTYPE as read in the input XML File
|
void |
setElementValue(XMLElement element,
String value)
receives notiification of the value for a particular tag
|
protected void |
setSpecVersion()
Sets the specVersion for this descriptor depending on the docType
|
protected void |
writeMessageDestinationInfo(Node parent,
BundleDescriptor descriptor)
writes the message destination references runtime information
|
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocType, getSystemID, getSystemIDsaddPrefixMapping, endElement, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElement, writeDescriptorprotected T extends org.glassfish.deployment.common.RootDeploymentDescriptor descriptor
protected HashMap<String,LinkedHashMap<String,Class>> elementToNodeMappings
public RuntimeBundleNode(T descriptor)
public RuntimeBundleNode()
protected void init()
public void addDescriptor(Object descriptor)
addDescriptor in interface XMLNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>addDescriptor in class DeploymentDescriptorNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>descriptor - the new descriptorpublic T getDescriptor()
getDescriptor in interface XMLNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>getDescriptor in class DeploymentDescriptorNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>public String getSpecVersion()
getSpecVersion in interface RootXMLNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>public void setDocType(String docType)
setDocType in interface RootXMLNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>DOCTYPE - protected void setSpecVersion()
protected void writeMessageDestinationInfo(Node parent, BundleDescriptor descriptor)
protected static final boolean restrictDTDDeclarations()
public static Element appendChildNS(Node parent, String elementName, String nameSpace)
public void recordNodeMapping(String currentElementName, String subElementName, Class subElementHandler)
public LinkedHashMap<String,Class> getNodeMappings(String currentElementName)
public void setElementValue(XMLElement element, String value)
setElementValue in interface XMLNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>setElementValue in class DeploymentDescriptorNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>element - the xml elementvalue - it's associated valueprotected Map<String,String> getDispatchTable()
getDispatchTable in class DeploymentDescriptorNode<T extends org.glassfish.deployment.common.RootDeploymentDescriptor>Copyright © 2013. All Rights Reserved.