|
Novell exteNd Director 5.0 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.util.EboXmlUtil
EboXmlUtil
in com.novell.afw.util.
Utilities for dealing with XML
Constructor Summary | |
EboXmlUtil()
Deprecated. |
Method Summary | |
static void |
addDirectiveToXSL(org.w3c.dom.Document xslDom,
String directiveName,
String attributeName,
String attributeValue)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
addNodeBeforeSibling(org.w3c.dom.Node siblingNode,
String nodeName,
org.w3c.dom.Node content)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
addNodeBeforeSibling(org.w3c.dom.Node siblingNode,
String nodeName,
org.w3c.dom.Node content,
boolean contentIsLocal)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
appendChildNode(org.w3c.dom.Node parentNode,
org.w3c.dom.Node contentNode)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
appendChildNode(org.w3c.dom.Node parentNode,
org.w3c.dom.Node contentNode,
boolean contentIsLocal)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Attr |
createAttribute(org.w3c.dom.Document doc,
String attributeName,
String attributeValue)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Attr |
createAttribute(org.w3c.dom.Element el,
String attributeName,
String attributeValue)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createCDATANode(org.w3c.dom.Node parentNode,
String nodeName,
String content)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createChildNode(org.w3c.dom.Node parentNode,
String nodeName)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createChildNode(org.w3c.dom.Node parentNode,
String nodeName,
org.w3c.dom.Node contentNode)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createChildNode(org.w3c.dom.Node parentNode,
String nodeName,
org.w3c.dom.Node contentNode,
boolean contentIsLocal)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Document |
createDocument()
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Document |
createDocument(org.xml.sax.InputSource inputSrc,
boolean isValidating,
boolean isNamespaceAware,
org.xml.sax.ErrorHandler errorHandler,
org.xml.sax.EntityResolver entityResolver)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Document |
createDocument(InputStream stream)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Document |
createDocument(InputStream stream,
String encoding,
boolean validation,
boolean namespace)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Document |
createDocument(String strDoc)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Document |
createDocument(URL documentURL)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createDocumentRootNode(org.w3c.dom.Document parentDocument,
String nodeName,
org.w3c.dom.Node contentNode)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createDocumentRootNode(org.w3c.dom.Document parentDocument,
String nodeName,
org.w3c.dom.Node contentNode,
boolean contentIsLocal)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createNode(org.w3c.dom.Document document,
String nodeName,
org.w3c.dom.Node contentNode)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createNode(org.w3c.dom.Document document,
String nodeName,
org.w3c.dom.Node contentNode,
boolean contentIsLocal)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createTextNode(org.w3c.dom.Document doc,
org.w3c.dom.Node parentNode,
String nodeName,
String content)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Node |
createTextNode(org.w3c.dom.Node parentNode,
String nodeName,
String content)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static org.w3c.dom.Attr |
getAttribute(String attributeName,
org.w3c.dom.Node node)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static String |
getAttributeValue(String attributeName,
org.w3c.dom.Node node)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.parsers.DocumentBuilder |
getBuilder()
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.parsers.DocumentBuilder |
getBuilder(boolean validation,
boolean nameSpaceAware)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.transform.Transformer |
getTransformer()
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.transform.Transformer |
getTransformer(org.w3c.dom.Document doc)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.transform.Transformer |
getTransformer(Properties transProps)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.transform.Transformer |
getTransformer(javax.xml.transform.Source strSource)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static javax.xml.transform.Transformer |
getTransformer(javax.xml.transform.Templates templates)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static String |
serialize(org.w3c.dom.Document doc)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static void |
serialize(org.w3c.dom.Document doc,
OutputStream output)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static void |
serialize(org.w3c.dom.Document doc,
OutputStream output,
javax.xml.transform.Transformer transformer)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static String |
serialize(org.w3c.dom.Document doc,
javax.xml.transform.Transformer transformer)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static void |
serialize(org.w3c.dom.Document doc,
Writer writer)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static void |
serialize(org.w3c.dom.Document doc,
Writer writer,
javax.xml.transform.Transformer transformer)
Deprecated. See EboXmlUtil in com.novell.afw.util. |
static void |
xslTransform(org.w3c.dom.Document contentDom,
org.w3c.dom.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 |
public EboXmlUtil()
Method Detail |
public static javax.xml.parsers.DocumentBuilder getBuilder() throws javax.xml.parsers.ParserConfigurationException
EboXmlUtil
in com.novell.afw.util.
public static javax.xml.parsers.DocumentBuilder getBuilder(boolean validation, boolean nameSpaceAware) throws javax.xml.parsers.ParserConfigurationException
EboXmlUtil
in com.novell.afw.util.
validation
- true if validation should be turned on, otherwise use falsenameSpaceAware
- true if name space awareness should be turned on, otherwise use falsepublic static org.w3c.dom.Document createDocument() throws org.w3c.dom.DOMException, javax.xml.parsers.ParserConfigurationException
EboXmlUtil
in com.novell.afw.util.
public static org.w3c.dom.Document createDocument(String strDoc) throws org.w3c.dom.DOMException, IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
strDoc
- the string representing the xmlpublic static org.w3c.dom.Document createDocument(InputStream stream) throws org.w3c.dom.DOMException, IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
stream
- the InputStream that represents the XML Contentpublic static org.w3c.dom.Document createDocument(InputStream stream, String encoding, boolean validation, boolean namespace) throws org.w3c.dom.DOMException, IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
stream
- the stream (InputStream,...) to represent the XMLencoding
- the Char encoding that should be used to read from the streamnamespace
- use namespace awareness (true) , or not (false)validation
- use validation (true), or not (false)public static org.w3c.dom.Document createDocument(URL documentURL) throws IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
documentURL
- the URL pointing to the Documentpublic static org.w3c.dom.Document createDocument(org.xml.sax.InputSource inputSrc, boolean isValidating, boolean isNamespaceAware, org.xml.sax.ErrorHandler errorHandler, org.xml.sax.EntityResolver entityResolver) throws org.w3c.dom.DOMException, IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
inputSrc
- the InputSource representing the xmlisValidating
- the boolean determining if validating is used against the xmlisNamespaceAware
- the boolean determining if the NameSpaceAware feature is seterrorHandler
- the ErrorHandler to be used if suppliedentityResolver
- the entityResolver to be used if suppliedpublic static org.w3c.dom.Node createDocumentRootNode(org.w3c.dom.Document parentDocument, String nodeName, org.w3c.dom.Node contentNode) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
parentDocument
- the Document that will receive the new Element and the contentnodeName
- the name of the Element to createcontentNode
- the Node that will be appended as a child to the created Elementpublic static org.w3c.dom.Node createDocumentRootNode(org.w3c.dom.Document parentDocument, String nodeName, org.w3c.dom.Node contentNode, boolean contentIsLocal) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
parentDocument
- the Document that will receive the new Element and the contentnodeName
- the name of the Element to createcontentNode
- 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)public static org.w3c.dom.Node createNode(org.w3c.dom.Document document, String nodeName, org.w3c.dom.Node contentNode) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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 subtreepublic static org.w3c.dom.Node createNode(org.w3c.dom.Document document, String nodeName, org.w3c.dom.Node contentNode, boolean contentIsLocal) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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)public static org.w3c.dom.Node createChildNode(org.w3c.dom.Node parentNode, String nodeName, org.w3c.dom.Node contentNode) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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)public static org.w3c.dom.Node createChildNode(org.w3c.dom.Node parentNode, String nodeName, org.w3c.dom.Node contentNode, boolean contentIsLocal) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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)public static org.w3c.dom.Node createChildNode(org.w3c.dom.Node parentNode, String nodeName) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
nodeName
- the name for the new nodeparentNode
- the parent org.w3c.dom.Node that will receive the childpublic static org.w3c.dom.Node createTextNode(org.w3c.dom.Document doc, org.w3c.dom.Node parentNode, String nodeName, String content) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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 itselfpublic static org.w3c.dom.Node createTextNode(org.w3c.dom.Node parentNode, String nodeName, String content) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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 itselfpublic static org.w3c.dom.Attr createAttribute(org.w3c.dom.Element el, String attributeName, String attributeValue) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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 createdpublic static org.w3c.dom.Attr createAttribute(org.w3c.dom.Document doc, String attributeName, String attributeValue) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- the Document used to create the attributeattributeName
- name of the attribute to be createdattributeValue
- value of the attribute to be createdpublic static String getAttributeValue(String attributeName, org.w3c.dom.Node node) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
attributeName
- the name of the attribute you want to getnode
- the Node where the attribute livespublic static org.w3c.dom.Attr getAttribute(String attributeName, org.w3c.dom.Node node) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
attributeName
- the name of the attribute you want to getnode
- the Node where the attribute livespublic static org.w3c.dom.Node createCDATANode(org.w3c.dom.Node parentNode, String nodeName, String content) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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)public static org.w3c.dom.Node addNodeBeforeSibling(org.w3c.dom.Node siblingNode, String nodeName, org.w3c.dom.Node content) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
siblingNode
- the node that will be used as reference; the new element will be inserted before this nodenodeName
- the name of the element to createcontent
- any subtree that will be appended as child of the new element (if != null)public static org.w3c.dom.Node addNodeBeforeSibling(org.w3c.dom.Node siblingNode, String nodeName, org.w3c.dom.Node content, boolean contentIsLocal) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
siblingNode
- the node that will be used as reference; the new element will be inserted before this nodenodeName
- the name of the element to createcontent
- 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)public static org.w3c.dom.Node appendChildNode(org.w3c.dom.Node parentNode, org.w3c.dom.Node contentNode) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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)public static org.w3c.dom.Node appendChildNode(org.w3c.dom.Node parentNode, org.w3c.dom.Node contentNode, boolean contentIsLocal) throws IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
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)public static void serialize(org.w3c.dom.Document doc, OutputStream output) throws IOException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- the Document to be serializedoutput
- the OutputStream to write topublic static void serialize(org.w3c.dom.Document doc, OutputStream output, javax.xml.transform.Transformer transformer) throws IOException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- the Document to be serializedoutput
- the OutputStream to write totransformer
- the transformer to usepublic static void serialize(org.w3c.dom.Document doc, Writer writer) throws IOException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- Document to be serializedwriter
- the writer to write topublic static void serialize(org.w3c.dom.Document doc, Writer writer, javax.xml.transform.Transformer transformer) throws IOException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- Document to be serializedwriter
- the writer to write totransformer
- the transformer to usepublic static String serialize(org.w3c.dom.Document doc) throws IOException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- Document to be serializedpublic static String serialize(org.w3c.dom.Document doc, javax.xml.transform.Transformer transformer) throws IOException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
doc
- Document to be serializedtransformer
- the transformer to usepublic static void addDirectiveToXSL(org.w3c.dom.Document xslDom, String directiveName, String attributeName, String attributeValue) throws javax.xml.transform.TransformerException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
xslDom
- the DOM representation of the XSL style sheetdirectiveName
- the tag name (like xsl:import)attributeName
- theattributeValue
- public static void xslTransform(org.w3c.dom.Document contentDom, org.w3c.dom.Document styleDom, Writer out) throws javax.xml.transform.TransformerException, javax.xml.transform.TransformerConfigurationException, FileNotFoundException, IOException, IllegalArgumentException
EboXmlUtil
in com.novell.afw.util.
contentDom
- the document to be transformedstyleDom
- the style to apply to the contentout
- the writer to write the result topublic static javax.xml.transform.Transformer getTransformer() throws javax.xml.transform.TransformerConfigurationException
EboXmlUtil
in com.novell.afw.util.
public static javax.xml.transform.Transformer getTransformer(Properties transProps) throws javax.xml.transform.TransformerConfigurationException
EboXmlUtil
in com.novell.afw.util.
transProps
- a Porperties file containing the desired Output propertiespublic static javax.xml.transform.Transformer getTransformer(javax.xml.transform.Source strSource) throws javax.xml.transform.TransformerConfigurationException
EboXmlUtil
in com.novell.afw.util.
strSource
- a Source (StreamSource, DOMSource, SAXSource) representing the style we need the Transformer forpublic static javax.xml.transform.Transformer getTransformer(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
EboXmlUtil
in com.novell.afw.util.
templates
- the pre compile xsl style sheetpublic static javax.xml.transform.Transformer getTransformer(org.w3c.dom.Document doc) throws javax.xml.transform.TransformerException, IOException
EboXmlUtil
in com.novell.afw.util.
doc
- a document representing the style we need the Transformer for
|
Novell exteNd Director 5.0 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |