Class JaxrpcMappingDescriptorNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.DisplayableComponentNode<T>
-
- com.sun.enterprise.deployment.node.AbstractBundleNode
-
- com.sun.enterprise.deployment.node.JaxrpcMappingDescriptorNode
-
- All Implemented Interfaces:
BundleNode
,RootXMLNode
,XMLNode
@Service public class JaxrpcMappingDescriptorNode extends AbstractBundleNode
Root node for jaxrpc mapping deployment descriptor- Version:
- Author:
- Kenneth Saks
-
-
Field Summary
Fields Modifier and Type Field Description static XMLElement
ROOT_ELEMENT
static String
SCHEMA_ID
-
Fields inherited from class com.sun.enterprise.deployment.node.AbstractBundleNode
docType, SCHEMA_LOCATION_TAG, W3C_XML_SCHEMA, W3C_XML_SCHEMA_INSTANCE
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description JaxrpcMappingDescriptorNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getDescriptor()
String
getDocType()
protected String
getSchemaURL()
String
getSpecVersion()
String
getSystemID()
List<String>
getSystemIDs()
protected XMLElement
getXMLRootTag()
String
registerBundle(Map<String,String> publicIDToSystemIDMapping)
Registers the standard bundle node in the map.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.void
setElementValue(XMLElement element, String value)
receives notiification of the value for a particular tagvoid
startElement(XMLElement element, Attributes attributes)
SAX Parser API implementation, we don't really care for now.-
Methods inherited from class com.sun.enterprise.deployment.node.AbstractBundleNode
addBundleNodeAttributes, addPrefixMapping, appendChildNS, elementsAllowingEmptyValue, elementsPreservingWhiteSpace, getDispatchTable, setDocType, setSpecVersion, topLevelTagName, topLevelTagValue, writeDescriptor, writeMessageDestinations
-
Methods inherited from class com.sun.enterprise.deployment.node.DisplayableComponentNode
writeDisplayableComponentInfo
-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addDescriptor, addNamespaceDeclaration, addNodeDescriptor, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
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.XMLNode
addDescriptor, endElement, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix
-
-
-
-
Field Detail
-
ROOT_ELEMENT
public static final XMLElement ROOT_ELEMENT
-
SCHEMA_ID
public static final String SCHEMA_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerBundle
public String registerBundle(Map<String,String> publicIDToSystemIDMapping)
Description copied from interface:BundleNode
Registers the standard bundle node in the map.The implementation class must add to the map an entry with the key equal to the public ID of the DTD and the value the system ID.
- Parameters:
publicIDToSystemIDMapping
- map prepared by the caller- Returns:
- top-level element name for the standard descriptor
-
registerRuntimeBundle
public Map<String,Class<?>> registerRuntimeBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)
Description copied from interface:BundleNode
Registers all appropriate runtime bundle nodes for this standard node into the map.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 schema- Returns:
- map from top-level runtime descriptor element name to the corresponding runtime node class
-
getXMLRootTag
protected XMLElement getXMLRootTag()
- Overrides:
getXMLRootTag
in classDeploymentDescriptorNode
- Returns:
- the XML tag associated with this XMLNode
-
getDocType
public String getDocType()
- Returns:
- the DOCTYPE of the XML file
-
getSystemID
public String getSystemID()
- Returns:
- the SystemID of the XML file
-
getSystemIDs
public List<String> getSystemIDs()
- Returns:
- the list of SystemID of the XML schema supported
-
getSchemaURL
protected String getSchemaURL()
- Overrides:
getSchemaURL
in classAbstractBundleNode
- Returns:
- the complete URL for Jakarta EE schemas
-
getDescriptor
public Object getDescriptor()
- Specified by:
getDescriptor
in interfaceXMLNode
- Overrides:
getDescriptor
in classDeploymentDescriptorNode
- Returns:
- the descriptor instance to associate with this XMLNode
-
startElement
public void startElement(XMLElement element, Attributes attributes)
Description copied from class:DeploymentDescriptorNode
SAX Parser API implementation, we don't really care for now.- Specified by:
startElement
in interfaceXMLNode
- Overrides:
startElement
in classDeploymentDescriptorNode
- Parameters:
element
- the XML element type nameattributes
- the specified or defaultted attritutes
-
setElementValue
public void setElementValue(XMLElement element, String value)
receives notiification of the value for a particular tag- Specified by:
setElementValue
in interfaceXMLNode
- Overrides:
setElementValue
in classAbstractBundleNode
- Parameters:
element
- the xml elementvalue
- it's associated value
-
getSpecVersion
public String getSpecVersion()
- Returns:
- the default spec version level this node complies to
-
-