Class WebCommonNode<T extends WebBundleDescriptorImpl>
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.DisplayableComponentNode<T>
-
- com.sun.enterprise.deployment.node.AbstractBundleNode<T>
-
- org.glassfish.web.deployment.node.WebCommonNode<T>
-
- All Implemented Interfaces:
BundleNode,RootXMLNode<T>,XMLNode<T>
- Direct Known Subclasses:
WebBundleNode,WebFragmentNode
public abstract class WebCommonNode<T extends WebBundleDescriptorImpl> extends AbstractBundleNode<T>
This node is responsible for handling the web-common xml tree- Version:
- Author:
- Shing Wai Chan
-
-
Field Summary
Fields Modifier and Type Field Description protected Tdescriptorstatic StringSPEC_VERSION-
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 Modifier Constructor Description protectedWebCommonNode()Creates new WebBundleNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescriptor(Object newDescriptor)Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNodebooleanendElement(XMLElement element)receives notification of the end of an XML element by the ParserStringgetSpecVersion()voidsetElementValue(XMLElement element, String value)receives notiification of the value for a particular tagNodewriteDescriptor(Node parent, T webBundleDesc)write the descriptor class to a DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.AbstractBundleNode
addBundleNodeAttributes, addPrefixMapping, appendChildNS, elementsAllowingEmptyValue, elementsPreservingWhiteSpace, getDispatchTable, getSchemaURL, setDocType, setSpecVersion, topLevelTagName, topLevelTagValue, 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, createDescriptor, forceAppendTextChild, getDescriptor, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, 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
-
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.BundleNode
registerBundle, registerRuntimeBundle
-
Methods inherited from interface com.sun.enterprise.deployment.node.RootXMLNode
getDocType, getSystemID, getSystemIDs
-
Methods inherited from interface com.sun.enterprise.deployment.node.XMLNode
getDescriptor, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElement
-
-
-
-
Field Detail
-
SPEC_VERSION
public static final String SPEC_VERSION
- See Also:
- Constant Field Values
-
descriptor
protected T extends WebBundleDescriptorImpl descriptor
-
-
Method Detail
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptorin interfaceXMLNode<T extends WebBundleDescriptorImpl>- Overrides:
addDescriptorin classDeploymentDescriptorNode<T extends WebBundleDescriptorImpl>- Parameters:
newDescriptor- the new descriptor
-
setElementValue
public void setElementValue(XMLElement element, String value)
receives notiification of the value for a particular tag- Specified by:
setElementValuein interfaceXMLNode<T extends WebBundleDescriptorImpl>- Overrides:
setElementValuein classAbstractBundleNode<T extends WebBundleDescriptorImpl>- Parameters:
element- the xml elementvalue- it's associated value
-
endElement
public boolean endElement(XMLElement element)
receives notification of the end of an XML element by the Parser- Specified by:
endElementin interfaceXMLNode<T extends WebBundleDescriptorImpl>- Overrides:
endElementin classDeploymentDescriptorNode<T extends WebBundleDescriptorImpl>- Parameters:
element- the xml tag identification- Returns:
- true if this node is done processing the XML sub tree
-
writeDescriptor
public Node writeDescriptor(Node parent, T webBundleDesc)
write the descriptor class to a DOM tree and return it- Specified by:
writeDescriptorin interfaceXMLNode<T extends WebBundleDescriptorImpl>- Overrides:
writeDescriptorin classAbstractBundleNode<T extends WebBundleDescriptorImpl>- Parameters:
parent- node for the DOM treewebBundleDesc- descriptor to write- Returns:
- the DOM tree top node
-
getSpecVersion
public String getSpecVersion()
- Returns:
- the default spec version level this node complies to
-
-