Methods Summary |
---|
public void | addDescriptor(java.lang.Object descriptor)Adds a new DOL descriptor instance to the descriptor
instance associated with this XMLNode
WebServicesDescriptor webServicesDesc =
bundleDescriptor.getWebServices();
WebService webService = (WebService) descriptor;
webServicesDesc.addWebService(webService);
for(Iterator iter = webService.getEndpoints().iterator();
iter.hasNext();) {
WebServiceEndpoint next = (WebServiceEndpoint) iter.next();
if( !next.resolveComponentLink() ) {
DOLUtils.getDefaultLogger().info("Warning: Web service endpoint " + next.getEndpointName() + " component link " + next.getLinkName() + " is not valid");
}
}
|
public java.lang.Object | getDescriptor()
return bundleDescriptor;
|
public java.lang.String | getDocType()
return null;
|
protected java.lang.String | getSchemaURL()
return WebServicesTagNames.IBM_NAMESPACE + "/" + getSystemID();
|
public java.lang.String | getSpecVersion()
return SPEC_VERSION;
|
public java.lang.String | getSystemID()
return SCHEMA_ID;
|
public java.util.List | getSystemIDs()
return systemIDs;
|
protected com.sun.enterprise.deployment.node.XMLElement | getXMLRootTag()
return ROOT_ELEMENT;
|
private static final java.util.List | initSystemIDs()
List<String> systemIDs = new ArrayList<String>();
systemIDs.add(SCHEMA_ID);
return Collections.unmodifiableList(systemIDs);
|
public void | setElementValue(com.sun.enterprise.deployment.node.XMLElement element, java.lang.String value)receives notiification of the value for a particular tag
if (TagNames.VERSION.equals(element.getQName())) {
bundleDescriptor.getWebServices().setSpecVersion(value);
} else super.setElementValue(element, value);
|
public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, com.sun.enterprise.deployment.Descriptor descriptor)write the descriptor class to a DOM tree and return it
Node topNode = parent;
if (parent instanceof Document) {
BundleDescriptor bundleDesc = (BundleDescriptor) descriptor;
WebServicesDescriptor webServicesDesc = bundleDesc.getWebServices();
topNode = super.writeDescriptor(parent, webServicesDesc);
WebServiceNode wsNode = new WebServiceNode();
for(WebService next : webServicesDesc.getWebServices()) {
wsNode.writeDescriptor(topNode, WebServicesTagNames.WEB_SERVICE,
next);
}
}
return parent;
|