com.sun.enterprise.deployment.node
Class J2EEDocumentBuilder

java.lang.Object
  extended by com.sun.enterprise.deployment.node.J2EEDocumentBuilder

public class J2EEDocumentBuilder
extends java.lang.Object

This class is responsible for producing DOM document instances from the descriptor classes

Version:
Author:
Jerome Dochez

Constructor Summary
J2EEDocumentBuilder()
          Creates new J2EEDocumentBuilder
 
Method Summary
static java.lang.String descriptorToString(Descriptor descriptor, DeploymentDescriptorFile ddFile)
           
static org.w3c.dom.Document getDocument(Descriptor descriptor, XMLNode node)
          Return a document containing a result node based on the given result descriptor.
static org.w3c.dom.Document newDocument()
          Creates and Return a new DOM document based on the current configuration
static void write(Descriptor descriptor, RootXMLNode node, java.io.File resultFile)
           
static void write(Descriptor descriptor, RootXMLNode node, java.io.OutputStream os)
           
static void write(Descriptor descriptor, RootXMLNode node, javax.xml.transform.Result output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2EEDocumentBuilder

public J2EEDocumentBuilder()
Creates new J2EEDocumentBuilder

Method Detail

newDocument

public static org.w3c.dom.Document newDocument()
Creates and Return a new DOM document based on the current configuration

Returns:
the new DOM Document object

getDocument

public static org.w3c.dom.Document getDocument(Descriptor descriptor,
                                               XMLNode node)
Return a document containing a result node based on the given result descriptor.


write

public static void write(Descriptor descriptor,
                         RootXMLNode node,
                         java.io.File resultFile)
                  throws java.lang.Exception
Throws:
java.lang.Exception

write

public static void write(Descriptor descriptor,
                         RootXMLNode node,
                         java.io.OutputStream os)
                  throws java.lang.Exception
Throws:
java.lang.Exception

write

public static void write(Descriptor descriptor,
                         RootXMLNode node,
                         javax.xml.transform.Result output)
                  throws java.lang.Exception
Throws:
java.lang.Exception

descriptorToString

public static java.lang.String descriptorToString(Descriptor descriptor,
                                                  DeploymentDescriptorFile ddFile)
                                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.