Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.menu.model.internal
Class DOMUtils

java.lang.Object
  extended by oracle.apps.fnd.applcore.menu.model.internal.DOMUtils

public final class DOMUtils
extends java.lang.Object

Utilities for working with DOM.


Method Summary
static java.util.Map<java.lang.String,java.lang.String> getNodeAttrs(org.w3c.dom.Node node)
          Gets the attributes of a DOM node.
static java.lang.String getNodeAttrVal(org.w3c.dom.Node node, java.lang.String attr)
          Gets the attribute value for a given attribute of a given node.
static org.w3c.dom.Document parse(byte[] text)
          Parses a byte array and returns the DOM.
static void printDocument(org.w3c.dom.Document doc)
          Prints a document to System.out.
static void printDocument2Logger(org.w3c.dom.Document doc)
          Prints a document to AppsLogger FINEST For internal use only!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static org.w3c.dom.Document parse(byte[] text)
Parses a byte array and returns the DOM.

Parameters:
text - the test to parse
Returns:
the DOM

getNodeAttrVal

public static java.lang.String getNodeAttrVal(org.w3c.dom.Node node,
                                              java.lang.String attr)
Gets the attribute value for a given attribute of a given node.

Parameters:
node - the node
attr - the attribute
Returns:
the attribute value

getNodeAttrs

public static final java.util.Map<java.lang.String,java.lang.String> getNodeAttrs(org.w3c.dom.Node node)
Gets the attributes of a DOM node.

Parameters:
node - the node
Returns:
the attributes of the node

printDocument

public static void printDocument(org.w3c.dom.Document doc)
Prints a document to System.out. For internal use only!

Parameters:
doc - the document to be printed

printDocument2Logger

public static void printDocument2Logger(org.w3c.dom.Document doc)
Prints a document to AppsLogger FINEST For internal use only!

Parameters:
doc - the document to be printed

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.