public abstract class AbstractBundleNode<T extends RootDeploymentDescriptor> extends DisplayableComponentNode<T> implements BundleNode, RootXMLNode<T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
docType |
protected static String |
SCHEMA_LOCATION_TAG |
static String |
W3C_XML_SCHEMA |
static String |
W3C_XML_SCHEMA_INSTANCE |
abstractDescriptor, habitat, handlers, localStrings, parentNode, rootNode| Constructor and Description |
|---|
AbstractBundleNode() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBundleNodeAttributes(Element bundleNode,
RootDeploymentDescriptor descriptor)
write the necessary attributes for the root node of this DDs document
|
void |
addPrefixMapping(String prefix,
String uri)
notify of a new prefix mapping used in this document
|
static Element |
appendChildNS(Node parent,
String elementName,
String nameSpace) |
Collection<String> |
elementsAllowingEmptyValue()
Returns the element names related to the standard or related runtime nodes
for which the parser should allow empty values.
|
Collection<String> |
elementsPreservingWhiteSpace()
Returns the element names related to the standard or related runtime nodes
for which the parser should preserve whitespace.
|
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.
|
protected String |
getSchemaURL() |
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 String |
topLevelTagName()
Gives the element (tag) name to be used for the top-level element of
descriptors corresponding to this bundle node type.
|
protected String |
topLevelTagValue(T descriptor)
Gives the text value to be used for the top-level element in the descriptor
corresponding to this bundle node type.
|
Node |
writeDescriptor(Node parent,
T descriptor)
write the descriptor class to a DOM tree and return it
|
protected void |
writeMessageDestinations(Node parentNode,
Iterator msgDestinations) |
writeDisplayableComponentInfoaddDescriptor, addNamespaceDeclaration, addNodeDescriptor, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getDescriptor, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, 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, waitregisterBundle, registerRuntimeBundlegetDocType, getSpecVersion, getSystemID, getSystemIDsaddDescriptor, endElement, getDescriptor, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElementpublic static final String W3C_XML_SCHEMA
public static final String W3C_XML_SCHEMA_INSTANCE
protected static final String SCHEMA_LOCATION_TAG
protected String docType
public void setDocType(String docType)
setDocType in interface RootXMLNode<T extends RootDeploymentDescriptor>docType - for the xmlpublic static Element appendChildNS(Node parent, String elementName, String nameSpace)
protected Map<String,String> getDispatchTable()
getDispatchTable in class DeploymentDescriptorNode<T extends RootDeploymentDescriptor>public void setElementValue(XMLElement element, String value)
setElementValue in interface XMLNode<T extends RootDeploymentDescriptor>setElementValue in class DeploymentDescriptorNode<T extends RootDeploymentDescriptor>element - the xml elementvalue - it's associated valuepublic Node writeDescriptor(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 writeprotected String topLevelTagName()
protected String topLevelTagValue(T descriptor)
descriptor - descriptor data structure for the current nodepublic Collection<String> elementsAllowingEmptyValue()
BundleNodeelementsAllowingEmptyValue in interface BundleNodepublic Collection<String> elementsPreservingWhiteSpace()
BundleNodeelementsPreservingWhiteSpace in interface BundleNodeprotected void writeMessageDestinations(Node parentNode, Iterator msgDestinations)
protected void addBundleNodeAttributes(Element bundleNode, RootDeploymentDescriptor descriptor)
public void addPrefixMapping(String prefix, String uri)
addPrefixMapping in interface XMLNode<T extends RootDeploymentDescriptor>addPrefixMapping in class DeploymentDescriptorNode<T extends RootDeploymentDescriptor>protected String getSchemaURL()
protected void setSpecVersion()
Copyright © 2017. All rights reserved.