Class WSDDDocument


  • public class WSDDDocument
    extends WSDDConstants
    represents a WSDD Document (this is the top level object in this object model) Only one of deployment and undeployment should be valid.
    • Field Detail

      • log

        protected static org.apache.commons.logging.Log log
    • Constructor Detail

      • WSDDDocument

        public WSDDDocument()
        empty constructor
      • WSDDDocument

        public WSDDDocument​(org.w3c.dom.Document document)
                     throws WSDDException
        create and bind to a document
        Parameters:
        document - (Document) XXX
        Throws:
        WSDDException
      • WSDDDocument

        public WSDDDocument​(org.w3c.dom.Element e)
                     throws WSDDException
        bind to a sub-element in a document.
        Parameters:
        e - (Element) XXX
        Throws:
        WSDDException
    • Method Detail

      • getDeployment

        public WSDDDeployment getDeployment()
        Get the deployment. If there is no deployment, create an empty one
        Returns:
        the deployment document
      • getDOMDocument

        public org.w3c.dom.Document getDOMDocument()
                                            throws ConfigurationException
        get the deployment as a DOM. Requires that the deployment member variable is not null.
        Returns:
        Throws:
        ConfigurationException
      • writeToContext

        public void writeToContext​(SerializationContext context)
                            throws java.io.IOException
        write the deployment to the supplied serialization context.
        Parameters:
        context -
        Throws:
        java.io.IOException
      • setDocument

        public void setDocument​(org.w3c.dom.Document document)
                         throws WSDDException
        Bind to a new document, setting the undeployment nodes if it is an undeployment, the deployment tree if it is anything else.
        Parameters:
        document - XXX
        Throws:
        WSDDException