com.sun.enterprise.deployment.node.ws
Class WLWebServicesDescriptorNode

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
              extended by com.sun.enterprise.deployment.node.ws.WLWebServicesDescriptorNode
All Implemented Interfaces:
RootXMLNode, XMLNode

public class WLWebServicesDescriptorNode
extends BundleNode
implements RootXMLNode

Node representing weblogic-webservices root element in weblogic-webservices.xml

Author:
Rama Pulavarthi

Field Summary
 
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
WLWebServicesDescriptorNode(WebServicesDescriptor descriptor)
           
 
Method Summary
protected  void addBundleNodeAttributes(org.w3c.dom.Element bundleNode, RootDeploymentDescriptor descriptor)
          write the necessary attributes for the root node of this DDs document
 void addDescriptor(java.lang.Object descriptor)
          Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode
 WebServicesDescriptor getDescriptor()
           
 java.lang.String getDocType()
           
 XMLNode getHandlerFor(XMLElement element)
          Return the XMLNode implementation respionsible for handling the sub-element of the current node
protected  java.lang.String getSchemaURL()
           
 java.lang.String getSpecVersion()
           
 java.lang.String getSystemID()
           
 java.util.List<java.lang.String> getSystemIDs()
           
protected  XMLElement getXMLRootTag()
           
protected  boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, java.lang.String value)
          parsed an attribute of an element
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, RootDeploymentDescriptor descriptor)
          write the descriptor class to a DOM tree and return it
 
Methods inherited from class com.sun.enterprise.deployment.node.BundleNode
addPrefixMapping, appendChildNS, getDispatchTable, setDocType, setElementValue, 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, endElement, forceAppendTextChild, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, 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.RootXMLNode
setDocType
 
Methods inherited from interface com.sun.enterprise.deployment.node.XMLNode
addPrefixMapping, endElement, getParentNode, getXMLPath, handlesElement, resolvePrefix, setElementValue, startElement, writeDescriptor
 

Constructor Detail

WLWebServicesDescriptorNode

public WLWebServicesDescriptorNode(WebServicesDescriptor descriptor)
Method Detail

getDocType

public java.lang.String getDocType()
Specified by:
getDocType in interface RootXMLNode
Returns:
the DOCTYPE of the XML file

getSystemID

public java.lang.String getSystemID()
Specified by:
getSystemID in interface RootXMLNode
Returns:
the SystemID of the XML file

getSystemIDs

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

getSchemaURL

protected java.lang.String getSchemaURL()
Overrides:
getSchemaURL in class BundleNode
Returns:
the complete URL for J2EE schemas

getXMLRootTag

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

setAttributeValue

protected boolean setAttributeValue(XMLElement elementName,
                                    XMLElement attributeName,
                                    java.lang.String value)
Description copied from class: DeploymentDescriptorNode
parsed an attribute of an element

Overrides:
setAttributeValue in class DeploymentDescriptorNode
Parameters:
elementName - the element name
attributeName - the attribute name
value - the attribute value
Returns:
true if the attribute was processed

getHandlerFor

public XMLNode getHandlerFor(XMLElement element)
Description copied from interface: XMLNode
Return the XMLNode implementation respionsible for handling the sub-element of the current node

Specified by:
getHandlerFor in interface XMLNode
Overrides:
getHandlerFor in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
Returns:
the handler registered for the subtag element of the curent XMLNode

addDescriptor

public void addDescriptor(java.lang.Object descriptor)
Description copied from class: DeploymentDescriptorNode
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode

Specified by:
addDescriptor in interface XMLNode
Overrides:
addDescriptor in class DeploymentDescriptorNode
Parameters:
descriptor - the new descriptor

getDescriptor

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

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        RootDeploymentDescriptor descriptor)
Description copied from class: BundleNode
write the descriptor class to a DOM tree and return it

Overrides:
writeDescriptor in class BundleNode
Parameters:
parent - node for the DOM tree
descriptor - the descriptor to write
Returns:
the DOM tree top node

addBundleNodeAttributes

protected void addBundleNodeAttributes(org.w3c.dom.Element bundleNode,
                                       RootDeploymentDescriptor descriptor)
Description copied from class: BundleNode
write the necessary attributes for the root node of this DDs document

Overrides:
addBundleNodeAttributes in class BundleNode

getSpecVersion

public java.lang.String getSpecVersion()
Specified by:
getSpecVersion in interface RootXMLNode
Returns:
the default spec version level this node complies to


Copyright © 2012 GlassFish Community. All Rights Reserved.