org.apache.muse.tools.generator.util
Class DeploymentDescriptorHelper

java.lang.Object
  extended by org.apache.muse.tools.generator.util.DeploymentDescriptorHelper

public class DeploymentDescriptorHelper
extends Object

Helps the projectizes create and analyze deployment (muse.xml) descriptors. This really comes into play when we are passed a deployment descriptor for code generation that has multiple resource types. This class figured out which WSDL goes with which resource type.

Author:
Andrew Eberbach (aeberbac)

Constructor Summary
DeploymentDescriptorHelper(Document descriptorDocument, Document wsdlDocument, int resourceIndex)
          Given a descriptor, wsdl and resource index as XML look through the document, find the resourceIndex'th resource and attach to it.
 
Method Summary
 void addCapability(Capability capability)
           
 Capability[] getCapabilities()
           
static File[] getWsdls(File deploymentDescriptorFile, Document deploymentDescriptorDocument)
           
 void setContextPath(String contextPathName)
           
 void setJavaResourceClass(String name)
           
 void setWsdlFile(String wsdlFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentDescriptorHelper

public DeploymentDescriptorHelper(Document descriptorDocument,
                                  Document wsdlDocument,
                                  int resourceIndex)
                           throws Exception
Given a descriptor, wsdl and resource index as XML look through the document, find the resourceIndex'th resource and attach to it.

Parameters:
descriptorDocument -
wsdlDocument -
resourceIndex -
Throws:
Exception
Method Detail

getCapabilities

public Capability[] getCapabilities()

setWsdlFile

public void setWsdlFile(String wsdlFileName)

setContextPath

public void setContextPath(String contextPathName)

setJavaResourceClass

public void setJavaResourceClass(String name)

addCapability

public void addCapability(Capability capability)

getWsdls

public static File[] getWsdls(File deploymentDescriptorFile,
                              Document deploymentDescriptorDocument)
                       throws Exception
Throws:
Exception


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.