@Service public class ApplicationNode extends AbstractBundleNode<Application>
| Modifier and Type | Field and Description |
|---|---|
static String |
PUBLIC_DTD_ID
The public ID.
|
static String |
PUBLIC_DTD_ID_12 |
static String |
SCHEMA_ID |
static String |
SCHEMA_ID_14 |
static String |
SCHEMA_ID_15 |
static String |
SCHEMA_ID_16 |
static String |
SCHEMA_ID_17 |
static String |
SPEC_VERSION |
static String |
SYSTEM_ID
The system ID.
|
static String |
SYSTEM_ID_12 |
static XMLElement |
tag |
docType, SCHEMA_LOCATION_TAG, W3C_XML_SCHEMA, W3C_XML_SCHEMA_INSTANCEabstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator| Constructor and Description |
|---|
ApplicationNode()
Creates new ApplicationNode
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with
this XMLNode
|
Collection<String> |
elementsAllowingEmptyValue()
Returns the element names related to the standard or related runtime nodes for which the parser should allow empty
values.
|
Application |
getDescriptor() |
String |
getDocType() |
String |
getSpecVersion() |
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.
|
void |
setElementValue(XMLElement element,
String value)
receives notiification of the value for a particular tag
|
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(Application 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,
Application application)
write the descriptor class to a DOM tree and return it
|
addBundleNodeAttributes, addPrefixMapping, appendChildNS, elementsPreservingWhiteSpace, getDispatchTable, getSchemaURL, setDocType, setSpecVersion, writeMessageDestinationswriteDisplayableComponentInfoaddNamespaceDeclaration, 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, 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, waitendElement, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElementpublic static final String PUBLIC_DTD_ID
public static final String PUBLIC_DTD_ID_12
public static final String SYSTEM_ID
public static final String SYSTEM_ID_12
public static final String SCHEMA_ID_14
public static final String SCHEMA_ID_15
public static final String SCHEMA_ID_16
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 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 schemapublic Collection<String> elementsAllowingEmptyValue()
BundleNodeelementsAllowingEmptyValue in interface BundleNodeelementsAllowingEmptyValue in class AbstractBundleNode<Application>protected String topLevelTagName()
AbstractBundleNodetopLevelTagName in class AbstractBundleNode<Application>protected String topLevelTagValue(Application descriptor)
AbstractBundleNodetopLevelTagValue in class AbstractBundleNode<Application>descriptor - descriptor data structure for the current nodeprotected XMLElement getXMLRootTag()
getXMLRootTag in class DeploymentDescriptorNode<Application>public void setElementValue(XMLElement element, String value)
setElementValue in interface XMLNode<Application>setElementValue in class AbstractBundleNode<Application>element - the xml elementvalue - it's associated valuepublic void addDescriptor(Object newDescriptor)
addDescriptor in interface XMLNode<Application>addDescriptor in class DeploymentDescriptorNode<Application>newDescriptor - the new descriptorpublic Application getDescriptor()
getDescriptor in interface XMLNode<Application>getDescriptor in class DeploymentDescriptorNode<Application>public String getDocType()
public String getSystemID()
public List<String> getSystemIDs()
public Node writeDescriptor(Node parent, Application application)
writeDescriptor in interface XMLNode<Application>writeDescriptor in class AbstractBundleNode<Application>parent - parent nodeapplication - to writepublic String getSpecVersion()
Copyright © 2019. All rights reserved.