@Service public class ConnectorNode extends AbstractBundleNode<ConnectorDescriptor>
Modifier and Type | Field and Description |
---|---|
static String |
PUBLIC_DTD_ID |
static String |
PUBLIC_DTD_ID_10 |
static String |
PUBLIC_DTD_ID_15 |
static String |
PUBLIC_DTD_ID_16 |
static String |
SCHEMA_ID |
static String |
SCHEMA_ID_15 |
static String |
SCHEMA_ID_16 |
static String |
SCHEMA_ID_17 |
static String |
SPEC_VERSION |
static String |
SYSTEM_ID |
static String |
SYSTEM_ID_10 |
static String |
SYSTEM_ID_15 |
static String |
SYSTEM_ID_16 |
static XMLElement |
tag |
static String |
VERSION_10 |
static String |
VERSION_15 |
static String |
VERSION_16 |
static String |
VERSION_17 |
docType, SCHEMA_LOCATION_TAG, W3C_XML_SCHEMA, W3C_XML_SCHEMA_INSTANCE
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
Constructor and Description |
---|
ConnectorNode() |
Modifier and Type | Method and Description |
---|---|
void |
addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with
this XMLNode
|
ConnectorDescriptor |
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() |
XMLNode |
getHandlerFor(XMLElement element)
Return the XMLNode implementation respionsible for
handling the sub-element of the current node
|
protected String |
getSchemaURL() |
String |
getSpecVersion() |
String |
getSystemID() |
List<String> |
getSystemIDs() |
protected XMLElement |
getXMLRootTag() |
boolean |
handlesElement(XMLElement element)
Return true if the XMLNode is responisble for handling the
XML element
|
String |
registerBundle(Map<String,String> 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.
|
protected boolean |
setAttributeValue(XMLElement elementName,
XMLElement attributeName,
String value)
parsed an attribute of an element
|
void |
setElementValue(XMLElement element,
String value)
receives notification of the value for a particular tag
|
Node |
writeDescriptor(Node parent,
ConnectorDescriptor conDesc)
write the descriptor class to a DOM tree and return it
|
addBundleNodeAttributes, addPrefixMapping, appendChildNS, elementsAllowingEmptyValue, elementsPreservingWhiteSpace, setDocType, setSpecVersion, topLevelTagName, topLevelTagValue, writeMessageDestinations
writeDisplayableComponentInfo
addNamespaceDeclaration, addNodeDescriptor, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endElement, getParentNode, getRootNode, getXMLPath, resolvePrefix, startElement
public static final String VERSION_10
public static final String VERSION_15
public static final String VERSION_16
public static final String VERSION_17
public static final String PUBLIC_DTD_ID_10
public static final String SYSTEM_ID_10
public static final String PUBLIC_DTD_ID_15
public static final String SYSTEM_ID_15
public static final String SCHEMA_ID_15
public static final String PUBLIC_DTD_ID_16
public static final String SYSTEM_ID_16
public static final String SCHEMA_ID_16
public static final String PUBLIC_DTD_ID
public static final String SYSTEM_ID
public static final String SCHEMA_ID_17
public static final String SCHEMA_ID
public static final String SPEC_VERSION
public static final XMLElement tag
public String registerBundle(Map<String,String> publicIDToDTD)
publicIDToDTD
- is a mapping between xml Public-ID to DTDpublic Map<String,Class<?>> registerRuntimeBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)
BundleNode
The 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 schemapublic ConnectorDescriptor getDescriptor()
getDescriptor
in interface XMLNode<ConnectorDescriptor>
getDescriptor
in class DeploymentDescriptorNode<ConnectorDescriptor>
protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value)
setAttributeValue
in class DeploymentDescriptorNode<ConnectorDescriptor>
the
- element namethe
- attribute namethe
- attribute valuepublic void setElementValue(XMLElement element, String value)
setElementValue
in interface XMLNode<ConnectorDescriptor>
setElementValue
in class AbstractBundleNode<ConnectorDescriptor>
element
- the xml elementvalue
- it's associated valuepublic boolean handlesElement(XMLElement element)
XMLNode
handlesElement
in interface XMLNode<ConnectorDescriptor>
handlesElement
in class DeploymentDescriptorNode<ConnectorDescriptor>
element
- the XML element type namepublic XMLNode getHandlerFor(XMLElement element)
XMLNode
getHandlerFor
in interface XMLNode<ConnectorDescriptor>
getHandlerFor
in class DeploymentDescriptorNode<ConnectorDescriptor>
element
- the XML element type nameprotected XMLElement getXMLRootTag()
getXMLRootTag
in class DeploymentDescriptorNode<ConnectorDescriptor>
public void addDescriptor(Object newDescriptor)
addDescriptor
in interface XMLNode<ConnectorDescriptor>
addDescriptor
in class DeploymentDescriptorNode<ConnectorDescriptor>
descriptor
- the new descriptorprotected Map<String,String> getDispatchTable()
getDispatchTable
in class AbstractBundleNode<ConnectorDescriptor>
public String getDocType()
public String getSystemID()
public List<String> getSystemIDs()
public Node writeDescriptor(Node parent, ConnectorDescriptor conDesc)
writeDescriptor
in interface XMLNode<ConnectorDescriptor>
writeDescriptor
in class AbstractBundleNode<ConnectorDescriptor>
parent
- node for the DOM treethe
- descriptor to writepublic String getSpecVersion()
protected String getSchemaURL()
getSchemaURL
in class AbstractBundleNode<ConnectorDescriptor>
Copyright © 2021. All rights reserved.