@Service public class WebFragmentNode extends WebCommonNode<WebFragmentDescriptor>
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_ID
The system ID of my documents.
|
static XMLElement |
tag |
descriptor, SPEC_VERSIONdocType, SCHEMA_LOCATION_TAG, W3C_XML_SCHEMA, W3C_XML_SCHEMA_INSTANCEabstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator| Constructor and Description |
|---|
WebFragmentNode()
Creates new WebBundleNode
|
| Modifier and Type | Method and Description |
|---|---|
WebFragmentDescriptor |
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.
|
String |
getDocType() |
String |
getSystemID() |
List<String> |
getSystemIDs() |
protected XMLElement |
getXMLRootTag() |
String |
registerBundle(Map publicIDToDTD)
Register this node as a root node capable of loading entire DD files
|
Map<String,Class<?>> |
registerRuntimeBundle(Map<String,String> publicIDToDTD,
Map<String,List<Class<?>>> versionUpgrades)
Registers all appropriate runtime bundle nodes for this standard node into the map.
|
Node |
writeDescriptor(Node parent,
WebFragmentDescriptor webFragmentDesc)
Write the descriptor class to a DOM tree and return it
|
addDescriptor, endElement, getSpecVersion, setElementValueaddBundleNodeAttributes, addPrefixMapping, appendChildNS, elementsAllowingEmptyValue, elementsPreservingWhiteSpace, getSchemaURL, setDocType, setSpecVersion, topLevelTagName, topLevelTagValue, writeMessageDestinationswriteDisplayableComponentInfoaddNamespaceDeclaration, addNodeDescriptor, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, 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, waitgetHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElementpublic static final XMLElement tag
public static final String SCHEMA_ID
public String registerBundle(Map publicIDToDTD)
publicIDToDTD - is a mapping between xml Public-ID to DTDpublic Map<String,Class<?>> registerRuntimeBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)
BundleNodeThe implementation class must add to the map one entry for each associated runtime descriptor node, with the entry key equal to the public ID of the runtime DTD and the value the system ID of the runtime DTD. The implementation must also return a map containing one entry for each associated runtime node, with the entry key equal to the top-level element name for the runtime descriptor and the entry value equal to the class of the runtime node.
versionUpgrades - The list of upgrades from older versions to the latest schemaprotected Map<String,String> getDispatchTable()
getDispatchTable in class AbstractBundleNode<WebFragmentDescriptor>protected XMLElement getXMLRootTag()
getXMLRootTag in class DeploymentDescriptorNode<WebFragmentDescriptor>public String getDocType()
public String getSystemID()
public List<String> getSystemIDs()
public WebFragmentDescriptor getDescriptor()
getDescriptor in interface XMLNode<WebFragmentDescriptor>getDescriptor in class DeploymentDescriptorNode<WebFragmentDescriptor>public Node writeDescriptor(Node parent, WebFragmentDescriptor webFragmentDesc)
writeDescriptor in interface XMLNode<WebFragmentDescriptor>writeDescriptor in class WebCommonNode<WebFragmentDescriptor>parent - node for the DOM treewebFragmentDesc - the descriptor to writeCopyright © 2019. All rights reserved.