public class WebBundleNode extends WebCommonNode<WebBundleDescriptorImpl>
Modifier and Type | Field and Description |
---|---|
static String |
PUBLIC_DTD_ID
The public ID for my documents.
|
static String |
PUBLIC_DTD_ID_12 |
static String |
SCHEMA_ID |
static String |
SCHEMA_ID_24 |
static String |
SCHEMA_ID_25 |
static String |
SCHEMA_ID_30 |
static String |
SCHEMA_ID_31 |
static String |
SYSTEM_ID
The system ID of my documents.
|
static String |
SYSTEM_ID_12 |
static XMLElement |
tag |
descriptor, SPEC_VERSION
docType, SCHEMA_LOCATION_TAG, W3C_XML_SCHEMA, W3C_XML_SCHEMA_INSTANCE
abstractDescriptor, habitat, handlers, localStrings, parentNode, rootNode
Constructor and Description |
---|
WebBundleNode()
Creates new WebBundleNode
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
endElement(XMLElement element)
receives notification of the end of an XML element by the Parser
|
WebBundleDescriptorImpl |
getDescriptor() |
String |
getDocType() |
String |
getSystemID() |
List<String> |
getSystemIDs() |
protected XMLElement |
getXMLRootTag() |
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.
|
void |
setElementValue(XMLElement element,
String value)
receives notiification of the value for a particular tag
|
Node |
writeDescriptor(Node parent,
WebBundleDescriptorImpl webBundleDesc)
write the descriptor class to a DOM tree and return it
|
addDescriptor, getSpecVersion
addBundleNodeAttributes, addPrefixMapping, appendChildNS, getDispatchTable, getSchemaURL, setDocType, setSpecVersion, topLevelTagName, topLevelTagValue, writeMessageDestinations
writeDisplayableComponentInfo
addNamespaceDeclaration, 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, writeSubDescriptors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElement
public static final XMLElement tag
public 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_24
public static final String SCHEMA_ID_25
public static final String SCHEMA_ID_30
public static final String SCHEMA_ID_31
public static final String SCHEMA_ID
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 Collection<String> elementsAllowingEmptyValue()
BundleNode
elementsAllowingEmptyValue
in interface BundleNode
elementsAllowingEmptyValue
in class AbstractBundleNode<WebBundleDescriptorImpl>
public Collection<String> elementsPreservingWhiteSpace()
BundleNode
elementsPreservingWhiteSpace
in interface BundleNode
elementsPreservingWhiteSpace
in class AbstractBundleNode<WebBundleDescriptorImpl>
public void setElementValue(XMLElement element, String value)
WebCommonNode
setElementValue
in interface XMLNode<WebBundleDescriptorImpl>
setElementValue
in class WebCommonNode<WebBundleDescriptorImpl>
element
- the xml elementvalue
- it's associated valuepublic boolean endElement(XMLElement element)
WebCommonNode
endElement
in interface XMLNode<WebBundleDescriptorImpl>
endElement
in class WebCommonNode<WebBundleDescriptorImpl>
element
- the xml tag identificationpublic WebBundleDescriptorImpl getDescriptor()
getDescriptor
in interface XMLNode<WebBundleDescriptorImpl>
getDescriptor
in class DeploymentDescriptorNode<WebBundleDescriptorImpl>
protected XMLElement getXMLRootTag()
getXMLRootTag
in class DeploymentDescriptorNode<WebBundleDescriptorImpl>
public String getDocType()
public String getSystemID()
public List<String> getSystemIDs()
public Node writeDescriptor(Node parent, WebBundleDescriptorImpl webBundleDesc)
writeDescriptor
in interface XMLNode<WebBundleDescriptorImpl>
writeDescriptor
in class WebCommonNode<WebBundleDescriptorImpl>
parent
- node for the DOM treethe
- descriptor to writeCopyright © 2018. All rights reserved.