com.sun.enterprise.deployment.node.web
Class WebBundleNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
      extended by com.sun.enterprise.deployment.node.DisplayableComponentNode<T>
          extended by com.sun.enterprise.deployment.node.BundleNode<T>
              extended by com.sun.enterprise.deployment.node.web.WebCommonNode<WebBundleDescriptor>
                  extended by com.sun.enterprise.deployment.node.web.WebBundleNode
All Implemented Interfaces:
RootXMLNode<WebBundleDescriptor>, XMLNode<WebBundleDescriptor>

public class WebBundleNode
extends WebCommonNode<WebBundleDescriptor>

This node is responsible for handling the web-app xml tree

Version:
Author:
Jerome Dochez

Field Summary
static java.lang.String PUBLIC_DTD_ID
          The public ID for my documents.
static java.lang.String PUBLIC_DTD_ID_12
           
static java.lang.String SCHEMA_ID
           
static java.lang.String SCHEMA_ID_24
           
static java.lang.String SCHEMA_ID_25
           
static java.lang.String SYSTEM_ID
          The system ID of my documents.
static java.lang.String SYSTEM_ID_12
           
static XMLElement tag
           
 
Fields inherited from class com.sun.enterprise.deployment.node.web.WebCommonNode
descriptor, SPEC_VERSION
 
Fields inherited from class com.sun.enterprise.deployment.node.BundleNode
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
 
Constructor Summary
WebBundleNode()
          Creates new WebBundleNode
 
Method Summary
 WebBundleDescriptor getDescriptor()
           
 java.lang.String getDocType()
           
 java.lang.String getSystemID()
           
 java.util.List<java.lang.String> getSystemIDs()
           
protected  XMLElement getXMLRootTag()
           
static java.lang.String registerBundle(java.util.Map publicIDToDTD)
          register this node as a root node capable of loading entire DD files
 void setElementValue(XMLElement element, java.lang.String value)
          receives notiification of the value for a particular tag
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, WebBundleDescriptor webBundleDesc)
          write the descriptor class to a DOM tree and return it
 
Methods inherited from class com.sun.enterprise.deployment.node.web.WebCommonNode
addDescriptor, endElement, getSpecVersion
 
Methods inherited from class com.sun.enterprise.deployment.node.BundleNode
addBundleNodeAttributes, addPrefixMapping, appendChildNS, getDispatchTable, getSchemaURL, setDocType, setSpecVersion, writeMessageDestinations
 
Methods inherited from class com.sun.enterprise.deployment.node.DisplayableComponentNode
writeDisplayableComponentInfo
 
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeAroundInvokeDescriptors, writeAroundTimeoutDescriptors, writeDataSourceDefinitionDescriptors, writeDescriptor, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writePostActivateDescriptors, writePostConstructDescriptors, writePreDestroyDescriptors, writePrePassivateDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors
 
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
getHandlerFor, getParentNode, getXMLPath, handlesElement, resolvePrefix, startElement
 

Field Detail

tag

public static final XMLElement tag

PUBLIC_DTD_ID

public static final java.lang.String PUBLIC_DTD_ID
The public ID for my documents.

See Also:
Constant Field Values

PUBLIC_DTD_ID_12

public static final java.lang.String PUBLIC_DTD_ID_12
See Also:
Constant Field Values

SYSTEM_ID

public static final java.lang.String SYSTEM_ID
The system ID of my documents.

See Also:
Constant Field Values

SYSTEM_ID_12

public static final java.lang.String SYSTEM_ID_12
See Also:
Constant Field Values

SCHEMA_ID_24

public static final java.lang.String SCHEMA_ID_24
See Also:
Constant Field Values

SCHEMA_ID_25

public static final java.lang.String SCHEMA_ID_25
See Also:
Constant Field Values

SCHEMA_ID

public static final java.lang.String SCHEMA_ID
See Also:
Constant Field Values
Constructor Detail

WebBundleNode

public WebBundleNode()
Creates new WebBundleNode

Method Detail

registerBundle

public static java.lang.String registerBundle(java.util.Map publicIDToDTD)
register this node as a root node capable of loading entire DD files

Parameters:
publicIDToDTD - is a mapping between xml Public-ID to DTD
Returns:
the doctype tag name

setElementValue

public void setElementValue(XMLElement element,
                            java.lang.String value)
Description copied from class: WebCommonNode
receives notiification of the value for a particular tag

Specified by:
setElementValue in interface XMLNode<WebBundleDescriptor>
Overrides:
setElementValue in class WebCommonNode<WebBundleDescriptor>
Parameters:
element - the xml element
value - it's associated value

getDescriptor

public WebBundleDescriptor getDescriptor()
Specified by:
getDescriptor in interface XMLNode<WebBundleDescriptor>
Overrides:
getDescriptor in class DeploymentDescriptorNode<WebBundleDescriptor>
Returns:
the descriptor instance to associate with this XMLNode

getXMLRootTag

protected XMLElement getXMLRootTag()
Overrides:
getXMLRootTag in class DeploymentDescriptorNode<WebBundleDescriptor>
Returns:
the XML tag associated with this XMLNode

getDocType

public java.lang.String getDocType()
Returns:
the DOCTYPE of the XML file

getSystemID

public java.lang.String getSystemID()
Returns:
the SystemID of the XML file

getSystemIDs

public java.util.List<java.lang.String> getSystemIDs()
Returns:
the list of SystemID of the XML schema supported

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        WebBundleDescriptor webBundleDesc)
write the descriptor class to a DOM tree and return it

Specified by:
writeDescriptor in interface XMLNode<WebBundleDescriptor>
Overrides:
writeDescriptor in class WebCommonNode<WebBundleDescriptor>
Parameters:
parent - node for the DOM tree
the - descriptor to write
Returns:
the DOM tree top node


Copyright © 2012 GlassFish Community. All Rights Reserved.