Novell exteNd
Director 5.2 API

com.sssw.fw.util
Class EboXmlUtil

java.lang.Object
 |
 +--com.sssw.fw.util.EboXmlUtil

Deprecated. Use EboXmlUtil in com.novell.afw.util.

public final class EboXmlUtil
extends Object

Utilities for dealing with XML


Constructor Summary
EboXmlUtil()
          Deprecated.  
 
Method Summary
static void addDirectiveToXSL(Document xslDom, String directiveName, String attributeName, String attributeValue)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node addNodeBeforeSibling(Node siblingNode, String nodeName, Node content)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node addNodeBeforeSibling(Node siblingNode, String nodeName, Node content, boolean contentIsLocal)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node appendChildNode(Node parentNode, Node contentNode)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node appendChildNode(Node parentNode, Node contentNode, boolean contentIsLocal)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Attr createAttribute(Document doc, String attributeName, String attributeValue)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Attr createAttribute(Element el, String attributeName, String attributeValue)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createCDATANode(Node parentNode, String nodeName, String content)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createChildNode(Node parentNode, String nodeName)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createChildNode(Node parentNode, String nodeName, Node contentNode)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createChildNode(Node parentNode, String nodeName, Node contentNode, boolean contentIsLocal)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Document createDocument()
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Document createDocument(InputSource inputSrc, boolean isValidating, boolean isNamespaceAware, ErrorHandler errorHandler, EntityResolver entityResolver)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Document createDocument(InputStream stream)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Document createDocument(InputStream stream, String encoding, boolean validation, boolean namespace)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Document createDocument(String strDoc)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Document createDocument(URL documentURL)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createDocumentRootNode(Document parentDocument, String nodeName, Node contentNode)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createDocumentRootNode(Document parentDocument, String nodeName, Node contentNode, boolean contentIsLocal)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createNode(Document document, String nodeName, Node contentNode)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createNode(Document document, String nodeName, Node contentNode, boolean contentIsLocal)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createTextNode(Document doc, Node parentNode, String nodeName, String content)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Node createTextNode(Node parentNode, String nodeName, String content)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Attr getAttribute(String attributeName, Node node)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static String getAttributeValue(String attributeName, Node node)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static DocumentBuilder getBuilder()
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static DocumentBuilder getBuilder(boolean validation, boolean nameSpaceAware)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Transformer getTransformer()
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Transformer getTransformer(Document doc)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Transformer getTransformer(Properties transProps)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Transformer getTransformer(Source strSource)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static Transformer getTransformer(Templates templates)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static String serialize(Document doc)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static void serialize(Document doc, OutputStream output)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static void serialize(Document doc, OutputStream output, Transformer transformer)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static String serialize(Document doc, Transformer transformer)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static void serialize(Document doc, Writer writer)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static void serialize(Document doc, Writer writer, Transformer transformer)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
static void xslTransform(Document contentDom, Document styleDom, Writer out)
          Deprecated. See EboXmlUtil in com.novell.afw.util.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EboXmlUtil

public EboXmlUtil()
Deprecated. 
Method Detail

getBuilder

public static DocumentBuilder getBuilder()
                                  throws ParserConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a javax.xml.parsers.DocumentBuilder from the javax.xml.parsers.DocumentBuilderFactory validation turned off and name space awareness turned on if you need a DocumentBuilder with different features, use the getBuilder(boolean validation, boolean nameSpaceAware) method (this method will cache the DocumentBuilder after the fist hit
Returns:
javax.xml.parsers.DocumentBuilder
Throws:
ParserConfigurationException -  

getBuilder

public static DocumentBuilder getBuilder(boolean validation,
                                         boolean nameSpaceAware)
                                  throws ParserConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a javax.xml.parsers.DocumentBuilder from the javax.xml.parsers.DocumentBuilderFactory
Parameters:
validation - true if validation should be turned on, otherwise use false
nameSpaceAware - true if name space awareness should be turned on, otherwise use false
Returns:
a DocumentBuilder to create Documents
Throws:
ParserConfigurationException -  

createDocument

public static Document createDocument()
                               throws DOMException,
                                      ParserConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a new org.w3c.dom.Document with validation turned off and name space awareness turned on
Returns:
the created org.w3c.dom.Document
Throws:
DOMException -  
ParserConfigurationException -  

createDocument

public static Document createDocument(String strDoc)
                               throws DOMException,
                                      IOException,
                                      SAXException,
                                      ParserConfigurationException,
                                      IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

Creates a Document from a String representing a valid XML document (no validation, but name space aware)
Parameters:
strDoc - the string representing the xml
Returns:
the created Document
Throws:
DOMException -  
com.sssw.fw.util.IOException -  
SAXException -  
ParserConfigurationException -  
IllegalArgumentException -  

createDocument

public static Document createDocument(InputStream stream)
                               throws DOMException,
                                      IOException,
                                      SAXException,
                                      ParserConfigurationException,
                                      IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a Document from a String representation (reading the stream with UTF-8, with name space awareness on and validation off)
Parameters:
stream - the InputStream that represents the XML Content
Returns:
a Document representing the same content
Throws:
DOMException -  
com.sssw.fw.util.IOException -  
SAXException -  
ParserConfigurationException -  
IllegalArgumentException -  

createDocument

public static Document createDocument(InputStream stream,
                                      String encoding,
                                      boolean validation,
                                      boolean namespace)
                               throws DOMException,
                                      IOException,
                                      SAXException,
                                      ParserConfigurationException,
                                      IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a Document from a stream representation of the XML content use the requested char-set encoding, validation and name space awareness
Parameters:
stream - the stream (InputStream,...) to represent the XML
encoding - the Char encoding that should be used to read from the stream
namespace - use namespace awareness (true) , or not (false)
validation - use validation (true), or not (false)
Returns:
a Document representing the same XML content in form of a DOM
Throws:
DOMException -  
com.sssw.fw.util.IOException -  
SAXException -  
ParserConfigurationException -  
IllegalArgumentException -  

createDocument

public static Document createDocument(URL documentURL)
                               throws IOException,
                                      SAXException,
                                      ParserConfigurationException,
                                      IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a Document from a URL (get the content from the URL); name space aware, but no validation
Parameters:
documentURL - the URL pointing to the Document
Returns:
a Document representing the document content
Throws:
com.sssw.fw.util.IOException -  
SAXException -  
ParserConfigurationException -  
IllegalArgumentException -  

createDocument

public static Document createDocument(InputSource inputSrc,
                                      boolean isValidating,
                                      boolean isNamespaceAware,
                                      ErrorHandler errorHandler,
                                      EntityResolver entityResolver)
                               throws DOMException,
                                      IOException,
                                      SAXException,
                                      ParserConfigurationException,
                                      IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

Creates a new Document from an InputSource allowing the validation, namespace, error handler and entity resolver to be set.
Parameters:
inputSrc - the InputSource representing the xml
isValidating - the boolean determining if validating is used against the xml
isNamespaceAware - the boolean determining if the NameSpaceAware feature is set
errorHandler - the ErrorHandler to be used if supplied
entityResolver - the entityResolver to be used if supplied
Returns:
a Document
Throws:
DOMException -  
com.sssw.fw.util.IOException -  
SAXException -  
ParserConfigurationException -  
IllegalArgumentException -  

createDocumentRootNode

public static Node createDocumentRootNode(Document parentDocument,
                                          String nodeName,
                                          Node contentNode)
                                   throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a child node (to parentDocument) and populate it with the delivered content (if != null)
Parameters:
parentDocument - the Document that will receive the new Element and the content
nodeName - the name of the Element to create
contentNode - the Node that will be appended as a child to the created Element
Returns:
the created Node
Throws:
IllegalArgumentException -  

createDocumentRootNode

public static Node createDocumentRootNode(Document parentDocument,
                                          String nodeName,
                                          Node contentNode,
                                          boolean contentIsLocal)
                                   throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a child node (to parentDocument) and populate it with the delivered content (if != null)
Parameters:
parentDocument - the Document that will receive the new Element and the content
nodeName - the name of the Element to create
contentNode - the Node that will be imported (if external) or appended (if local) as a child to the created Element (incl. subtree)
contentIsLocal - a boolean indicating wether the contentNode is external to the document and has to be imported (false), or if it can be appended (true)
Returns:
the created Element
Throws:
IllegalArgumentException -  

createNode

public static Node createNode(Document document,
                              String nodeName,
                              Node contentNode)
                       throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a Node standalone (not added to any parent)
Parameters:
document - Document used to create the Element (not null!)
nodeName - name of the node to be created (not null!)
contentNode - content in form of a Node to be appended as child (if not null) ; including the subtree
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createNode

public static Node createNode(Document document,
                              String nodeName,
                              Node contentNode,
                              boolean contentIsLocal)
                       throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a Node standalone (not added to any parent)
Parameters:
document - Document used to create the Element (not null!)
nodeName - name of the node to be created (not null!)
contentNode - content in form of a Node to be imported or appended as child (if not null)
contentIsLocal - a boolean indicating wether the contentNode is external to the document and has to be imported (false), or if it can be appended (true)
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createChildNode

public static Node createChildNode(Node parentNode,
                                   String nodeName,
                                   Node contentNode)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a child node (to parentNode) and populate it with the delivered content (if != null)
Parameters:
parentNode - the parent Node (not null!)
nodeName - the name for the new Element (not null!)
contentNode - org.w3c.dom.Node that contains the content to be appended (incl. subtree) to the parent Document (or null)
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createChildNode

public static Node createChildNode(Node parentNode,
                                   String nodeName,
                                   Node contentNode,
                                   boolean contentIsLocal)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a child node (to parentNode) and populate it with the delivered content (if != null)
Parameters:
parentNode - the parent Node (not null!)
nodeName - the name for the new Element (not null!)
contentNode - org.w3c.dom.Node that contains the content to be imported (incl. subtree) or appended (if local) to the parent Document (or null)
contentIsLocal - a boolean indicating wether the contentNode is external to the document and has to be imported (false), or if it can be appended (true)
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createChildNode

public static Node createChildNode(Node parentNode,
                                   String nodeName)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

Create a child node and append it to the provided parent node
Parameters:
nodeName - the name for the new node
parentNode - the parent org.w3c.dom.Node that will receive the child
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createTextNode

public static Node createTextNode(Document doc,
                                  Node parentNode,
                                  String nodeName,
                                  String content)
                           throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a text node
Parameters:
doc - the Document to contain the new text node (not null!)
parentNode - the Node under which the new text node should be placed (or null)
nodeName - the name of the new text node (not null!)
content - the text itself
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createTextNode

public static Node createTextNode(Node parentNode,
                                  String nodeName,
                                  String content)
                           throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a text node
Parameters:
parentNode - the Node under which the new text node should be placed (not null!)
nodeName - the name of the new text node (not null!)
content - the text itself
Returns:
the newly created Node
Throws:
IllegalArgumentException -  

createAttribute

public static Attr createAttribute(Element el,
                                   String attributeName,
                                   String attributeValue)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create an attribute and add it to the Node provided
Parameters:
el - the element that will receive the attribute (not null!)
attributeName - name of the attribute to be created (not null!)
attributeValue - value of the attribute to be created
Returns:
the created attribute as Attr
Throws:
IllegalArgumentException -  

createAttribute

public static Attr createAttribute(Document doc,
                                   String attributeName,
                                   String attributeValue)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create an attribute standalone (not added to any node)
Parameters:
doc - the Document used to create the attribute
attributeName - name of the attribute to be created
attributeValue - value of the attribute to be created
Returns:
the Attribute as org.w3c.dom.Attr
Throws:
IllegalArgumentException -  

getAttributeValue

public static String getAttributeValue(String attributeName,
                                       Node node)
                                throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get the value of an attribute of a node (if present)
Parameters:
attributeName - the name of the attribute you want to get
node - the Node where the attribute lives
Returns:
the value of the attribute, or null if not present
Throws:
IllegalArgumentException -  

getAttribute

public static Attr getAttribute(String attributeName,
                                Node node)
                         throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get an attribute of a node (if present)
Parameters:
attributeName - the name of the attribute you want to get
node - the Node where the attribute lives
Returns:
the attribute, or null if not present on the node
Throws:
IllegalArgumentException -  

createCDATANode

public static Node createCDATANode(Node parentNode,
                                   String nodeName,
                                   String content)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a CDATA section as a child to the provided parentNode
Parameters:
parentNode - Node (parent) of the element to be created (not null!)
nodeName - the name you want to give your Node (or null if the textnode should be appended to the parent node directly)
content - the content of the node (the text)
Returns:
the org.w3c.dom.Node that was created
Throws:
IllegalArgumentException -  

addNodeBeforeSibling

public static Node addNodeBeforeSibling(Node siblingNode,
                                        String nodeName,
                                        Node content)
                                 throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a new Element with nodeName and insert it before the siblingNode (same level)
Parameters:
siblingNode - the node that will be used as reference; the new element will be inserted before this node
nodeName - the name of the element to create
content - any subtree that will be appended as child of the new element (if != null)
Returns:
the newly created element as a Node
Throws:
IllegalArgumentException -  

addNodeBeforeSibling

public static Node addNodeBeforeSibling(Node siblingNode,
                                        String nodeName,
                                        Node content,
                                        boolean contentIsLocal)
                                 throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

create a new Element with nodeName and insert it before the siblingNode (same level)
Parameters:
siblingNode - the node that will be used as reference; the new element will be inserted before this node
nodeName - the name of the element to create
content - any subtree that will be imported or appended (if local) as child of the new element (if != null)
contentIsLocal - a boolean indicating wether the contentNode is external to the document and has to be imported (false), or if it can be appended (true)
Returns:
the newly created element as a Node
Throws:
IllegalArgumentException -  

appendChildNode

public static Node appendChildNode(Node parentNode,
                                   Node contentNode)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

import a node into the current document directly under the passed parent Node
Parameters:
parentNode - the Node under which the content should be placed (not null!)
contentNode - the Node (not null!) that will be imported as a child to the created Node (incl. subtree)
Returns:
the Node representing the imported content in the current dom
Throws:
IllegalArgumentException -  

appendChildNode

public static Node appendChildNode(Node parentNode,
                                   Node contentNode,
                                   boolean contentIsLocal)
                            throws IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

import a node into the current document directly under the passed parent Node
Parameters:
parentNode - the Node under which the content should be placed (not null!)
contentNode - the Node (not null!) that will be imported as a child to the created Node (incl. subtree)
contentIsLocal - a boolean indicating wether the contentNode is external to the document and has to be imported (false), or if it can be appended (true)
Returns:
the Node representing the imported content in the current dom (or the passed in contentNode if it's local)
Throws:
IllegalArgumentException -  

serialize

public static void serialize(Document doc,
                             OutputStream output)
                      throws IOException,
                             TransformerConfigurationException,
                             TransformerException,
                             IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

serialize a Document to the provided OutputStream (using a Transformer)
Parameters:
doc - the Document to be serialized
output - the OutputStream to write to
Throws:
com.sssw.fw.util.IOException -  
TransformerConfigurationException -  
TransformerException -  
IllegalArgumentException -  

serialize

public static void serialize(Document doc,
                             OutputStream output,
                             Transformer transformer)
                      throws IOException,
                             TransformerConfigurationException,
                             TransformerException,
                             IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

serialize a Document to the provided OutputStream (using the passed Transformer)
Parameters:
doc - the Document to be serialized
output - the OutputStream to write to
transformer - the transformer to use
Throws:
com.sssw.fw.util.IOException -  
TransformerConfigurationException -  
TransformerException -  
IllegalArgumentException -  

serialize

public static void serialize(Document doc,
                             Writer writer)
                      throws IOException,
                             TransformerConfigurationException,
                             TransformerException,
                             IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

serialize a Document to the provided Writer (using a Transformer)
Parameters:
doc - Document to be serialized
writer - the writer to write to
Throws:
com.sssw.fw.util.IOException -  
TransformerConfigurationException -  
TransformerException -  
IllegalArgumentException -  

serialize

public static void serialize(Document doc,
                             Writer writer,
                             Transformer transformer)
                      throws IOException,
                             TransformerConfigurationException,
                             TransformerException,
                             IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

serialize a Document to the provided Writer (using a Transformer)
Parameters:
doc - Document to be serialized
writer - the writer to write to
transformer - the transformer to use
Throws:
com.sssw.fw.util.IOException -  
TransformerConfigurationException -  
TransformerException -  
IllegalArgumentException -  

serialize

public static String serialize(Document doc)
                        throws IOException,
                               TransformerConfigurationException,
                               TransformerException,
                               IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

serialize a Document to String (using a Transformer)
Parameters:
doc - Document to be serialized
Returns:
the String representation of the Document
Throws:
com.sssw.fw.util.IOException -  
TransformerConfigurationException -  
TransformerException -  
IllegalArgumentException -  

serialize

public static String serialize(Document doc,
                               Transformer transformer)
                        throws IOException,
                               TransformerConfigurationException,
                               TransformerException,
                               IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

serialize a Document to String (using the passed Transformer)
Parameters:
doc - Document to be serialized
transformer - the transformer to use
Returns:
the String representation of the Document
Throws:
com.sssw.fw.util.IOException -  
TransformerConfigurationException -  
TransformerException -  
IllegalArgumentException -  

addDirectiveToXSL

public static void addDirectiveToXSL(Document xslDom,
                                     String directiveName,
                                     String attributeName,
                                     String attributeValue)
                              throws TransformerException,
                                     IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

Add an xsl:import or xsl:include etc. node to an existing xsl style sheet (represented as DOM)
Parameters:
xslDom - the DOM representation of the XSL style sheet
directiveName - the tag name (like xsl:import)
attributeName - the
attributeValue -  
Throws:
TransformerException -  
IllegalArgumentException -  

xslTransform

public static void xslTransform(Document contentDom,
                                Document styleDom,
                                Writer out)
                         throws TransformerException,
                                TransformerConfigurationException,
                                FileNotFoundException,
                                IOException,
                                IllegalArgumentException
Deprecated. See EboXmlUtil in com.novell.afw.util.

Transforms an xml with the provided xsl document and writes it to the writer.
Parameters:
contentDom - the document to be transformed
styleDom - the style to apply to the content
out - the writer to write the result to
Throws:
TransformerException -  
TransformerConfigurationException -  
FileNotFoundException -  
com.sssw.fw.util.IOException -  
IllegalArgumentException -  

getTransformer

public static Transformer getTransformer()
                                  throws TransformerConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a new Transformer from the TransformerFactory with indent turned on
Returns:
the new Transformer
Throws:
TransformerConfigurationException -  

getTransformer

public static Transformer getTransformer(Properties transProps)
                                  throws TransformerConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a new Transformer from the TransformerFactory with the passed output properties
Parameters:
transProps - a Porperties file containing the desired Output properties
Returns:
the new Transformer
Throws:
TransformerConfigurationException -  

getTransformer

public static Transformer getTransformer(Source strSource)
                                  throws TransformerConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a new Transformer for the passed Source (the xsl) from the TransformerFactory with indent turned on
Parameters:
strSource - a Source (StreamSource, DOMSource, SAXSource) representing the style we need the Transformer for
Returns:
the new Transformer
Throws:
TransformerConfigurationException -  

getTransformer

public static Transformer getTransformer(Templates templates)
                                  throws TransformerConfigurationException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a new Transformer for the passed compiled xsl template (with indent turned on)
Parameters:
templates - the pre compile xsl style sheet
Returns:
the new Transformer
Throws:
TransformerConfigurationException -  

getTransformer

public static Transformer getTransformer(Document doc)
                                  throws TransformerException,
                                         IOException
Deprecated. See EboXmlUtil in com.novell.afw.util.

get a new Transformer for the passed Document (the xsl) from the TransformerFactory with indent turned on
Parameters:
doc - a document representing the style we need the Transformer for
Returns:
the new Transformer (compiled xsl style sheet)
Throws:
TransformerException -  
com.sssw.fw.util.IOException -  

Novell exteNd
Director 5.2 API