|
Oracle Fusion Middleware extensions for XML based Datamodel Framework 11g Release 1 (11.1.1.5) E22566-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.apps.fnd.applxdf.comp.XMLUtil
public class XMLUtil
XML related utility class
Constructor Summary | |
---|---|
XMLUtil()
Constructor. |
Method Summary | |
---|---|
static oracle.xml.parser.v2.XMLDocument |
CLOBToXMLDocument(oracle.sql.CLOB theClob)
Convert CLOB to XMLDocument. |
static java.net.URL |
createURL(java.lang.String fileName)
Create the URL for the file. |
static void |
getConsUDPMap(oracle.xml.parser.v2.XMLElement xmlDoc,
java.lang.String szConsTag,
java.lang.String szUDPName,
java.util.HashMap oMap)
Retrieve a specific UDP from a given constraint type. |
static oracle.xml.parser.v2.XMLDocument |
getDocument(java.net.URL url)
Get the XML document from the input file URL. |
static oracle.xml.parser.v2.DOMParser |
getDOMParser()
Return the DOM parser. |
static oracle.xml.parser.v2.XMLElement |
getFirstElementFromNodeList(org.w3c.dom.NodeList tempList)
Get the first XML element from the node list. |
static org.w3c.dom.Node |
getNode(org.w3c.dom.Node root,
java.lang.String path)
Utility method that parses the document 'doc' based on the given 'path' and returns the matching node object Returns null if no such node is found. |
static java.lang.String |
getODBProp(oracle.xml.parser.v2.XMLElement customElm,
java.lang.String szPropertyName)
Get ODB property for given a custom area element and a property name. |
static void |
getPartitionNames(oracle.xml.parser.v2.XMLElement xmlElm,
java.util.HashMap oMap)
Retrieve all partition names from table file. |
static oracle.xml.parser.v2.XMLElement |
getTabColItem(oracle.xml.parser.v2.XMLElement xmlDoc,
java.lang.String szColName)
Retrieve a given column name's col list item in the table file. |
static java.lang.String |
getTagNameValue(oracle.xml.parser.v2.XMLElement doc,
java.lang.String tagName)
Get the vlaue for the specific tag in the XML element. |
static java.lang.String |
getUDP(oracle.xml.parser.v2.XMLElement customElm,
java.lang.String szPropertyName)
Get UDP for a given custom area element and property name. |
static void |
insertNode(oracle.xml.parser.v2.XMLDocument xmlDoc,
org.w3c.dom.Node parent,
java.lang.String nodeName,
java.lang.String text)
Inserts a node with the specified name and text value, to the parent node. |
static boolean |
isIOT(oracle.xml.parser.v2.XMLElement tableElm)
|
static void |
modifyConsNode(oracle.xml.parser.v2.XMLDocument xmlDoc,
java.lang.String szTag,
oracle.xml.parser.v2.XMLElement xmlElm,
java.util.HashMap isLogicalMap)
Modifie a constrant node to add tags 'rely', 'disable' and 'novalidate' if the constraint node with isLogical UDP value of "Y". |
static void |
modifyConsNodes(oracle.xml.parser.v2.XMLDocument xmlDoc,
oracle.xml.parser.v2.XMLElement xmlElm,
java.util.HashMap isLogicalMap)
Modifie constraint nodes(PK, UK, CK, FK) to add tags 'rely', 'disable' and 'novalidate' if the constraint nodes with isLogical UDP value of "Y". |
protected static void |
outputClob(oracle.sql.CLOB clob,
java.lang.String comment)
Debug helper method to display the contents of the CLOB type data. |
protected static void |
outputXML(oracle.xml.parser.v2.XMLDocumentFragment xmlDocFrgmt,
java.lang.String comment)
Debug helper method to display the contents of the XMLDocumentFragment. |
protected static void |
outputXML(oracle.xml.parser.v2.XMLDocument xmlDocument,
java.lang.String comment)
Debug helper method to display the contents of the XMLDocument. |
static void |
outputXML(oracle.xml.parser.v2.XMLElement xmlElm,
java.lang.String comment)
Debug helper method to display the contents of the XMLElement. |
static oracle.xml.parser.v2.XMLElement |
retrieveConsCustomArea(oracle.xml.parser.v2.XMLElement xmlDoc,
java.lang.String szConsType,
java.lang.String szConsName)
Retrieve Constraint Custom Area Element in the object level sxml and given the constraint type and name. |
static oracle.xml.parser.v2.XMLElement |
retrieveConsListItem(oracle.xml.parser.v2.XMLElement xmlDoc,
java.lang.String szConsType,
java.lang.String szConsName)
Retrieve Constraint List item by given the constraint type and name. |
static oracle.xml.parser.v2.XMLElement |
retrieveIdxCustomArea(oracle.xml.parser.v2.XMLElement idxElm)
|
static oracle.xml.parser.v2.XMLElement |
retrieveObjectCustomArea(oracle.xml.parser.v2.XMLElement xmlDoc)
Retrieve Object Custom Area Element in the given object xml element. |
static oracle.xml.parser.v2.XMLElement |
retrieveRelationalNode(oracle.xml.parser.v2.XMLElement xmlDoc)
|
static oracle.xml.parser.v2.XMLElement |
retrieveTabColCustomArea(oracle.xml.parser.v2.XMLElement xmlDoc,
java.lang.String szColName)
Retrieve table columns' Custom Area in a given sxml and the column name. |
static void |
setLoggerAndParameter(XDFLogger theLogger,
Parameters theParam)
Set the logger and parameters instances to this class. |
static oracle.xml.parser.v2.XMLDocumentFragment |
transformXML(oracle.xml.parser.v2.XMLDocumentFragment xmlDocFragment,
java.lang.String xslFile,
java.util.Hashtable inParms)
Transform the XML document using the XSL file and pass-in parameters. |
static oracle.xml.parser.v2.XMLDocumentFragment |
transformXML(oracle.xml.parser.v2.XMLDocument xmlDoc,
java.lang.String xslFile,
java.util.Hashtable inParameters)
Transform the XML document using the XSL file and pass-in parameters. |
static oracle.xml.parser.v2.XMLDocumentFragment |
transformXML(oracle.xml.parser.v2.XMLElement xmlElm,
java.lang.String xslFile,
java.util.Hashtable inParameters)
Transform the XML document using the XSL file and pass-in parameters. |
static oracle.sql.CLOB |
XMLDocumentFragmentToCLOB(oracle.xml.parser.v2.XMLDocumentFragment xmlDocFrgmt)
Convert XMLDocumentFragment to CLOB. |
static oracle.sql.CLOB |
XMLElementToCLOB(oracle.xml.parser.v2.XMLElement xmlElm)
Convert XMLElement to CLOB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtil()
Method Detail |
---|
public static oracle.xml.parser.v2.DOMParser getDOMParser()
public static void setLoggerAndParameter(XDFLogger theLogger, Parameters theParam)
theLogger
- loggertheParam
- Parameterspublic static java.net.URL createURL(java.lang.String fileName) throws java.net.MalformedURLException
fileName
- XML file name
java.net.MalformedURLException
- when the file URL is malformed.public static oracle.xml.parser.v2.XMLDocument getDocument(java.net.URL url) throws java.lang.Exception
url
- input file URL
java.lang.Exception
- when getting the document.public static oracle.xml.parser.v2.XMLDocument CLOBToXMLDocument(oracle.sql.CLOB theClob) throws java.lang.Exception
theClob
- CLOB to be converted
java.lang.Exception
- when transforming the CLOB to xml doc.public static oracle.xml.parser.v2.XMLDocumentFragment transformXML(oracle.xml.parser.v2.XMLDocument xmlDoc, java.lang.String xslFile, java.util.Hashtable inParameters)
xmlDoc
- XML document to be transformedxslFile
- XSL fileinParameters
- parameters used in the XML tranformation by XSL file
public static oracle.xml.parser.v2.XMLDocumentFragment transformXML(oracle.xml.parser.v2.XMLElement xmlElm, java.lang.String xslFile, java.util.Hashtable inParameters)
xmlElm
- XML element to be transformedxslFile
- XSL fileinParameters
- parameters used in the XML tranformation by XSL file
public static oracle.xml.parser.v2.XMLDocumentFragment transformXML(oracle.xml.parser.v2.XMLDocumentFragment xmlDocFragment, java.lang.String xslFile, java.util.Hashtable inParms)
xmlDocFragment
- XML document fragment to be transformedxslFile
- XSL fileinParms
- parameters used in the XML tranformation by XSL file
public static java.lang.String getTagNameValue(oracle.xml.parser.v2.XMLElement doc, java.lang.String tagName)
doc
- XML elementtagName
- tag name to get the value
public static oracle.xml.parser.v2.XMLElement getFirstElementFromNodeList(org.w3c.dom.NodeList tempList)
tempList
- the node list
public static org.w3c.dom.Node getNode(org.w3c.dom.Node root, java.lang.String path)
protected static void outputClob(oracle.sql.CLOB clob, java.lang.String comment)
clob
- CLOB to be ouputedcomment
- comment put before the whole outputprotected static void outputXML(oracle.xml.parser.v2.XMLDocument xmlDocument, java.lang.String comment)
xmlDocument
- XMLDocument to be ouputedcomment
- comment put before the whole outputprotected static void outputXML(oracle.xml.parser.v2.XMLDocumentFragment xmlDocFrgmt, java.lang.String comment)
xmlDocFrgmt
- XMLDocumentFragment to be ouputedcomment
- comment put before the whole outputpublic static void outputXML(oracle.xml.parser.v2.XMLElement xmlElm, java.lang.String comment)
xmlElm
- XMLElement to be ouputedcomment
- comment put before the whole outputpublic static oracle.sql.CLOB XMLDocumentFragmentToCLOB(oracle.xml.parser.v2.XMLDocumentFragment xmlDocFrgmt)
xmlDocFrgmt
- XMLDocumentFragment to be converted
public static oracle.sql.CLOB XMLElementToCLOB(oracle.xml.parser.v2.XMLElement xmlElm)
xmlElm
- XMLElement to be converted
public static java.lang.String getUDP(oracle.xml.parser.v2.XMLElement customElm, java.lang.String szPropertyName)
customElm
- - xml elementszPropertyName
-
public static java.lang.String getODBProp(oracle.xml.parser.v2.XMLElement customElm, java.lang.String szPropertyName)
customElm
- szPropertyName
-
public static oracle.xml.parser.v2.XMLElement retrieveObjectCustomArea(oracle.xml.parser.v2.XMLElement xmlDoc)
xmlDoc
- - xml element
public static oracle.xml.parser.v2.XMLElement retrieveConsCustomArea(oracle.xml.parser.v2.XMLElement xmlDoc, java.lang.String szConsType, java.lang.String szConsName)
xmlDoc
- - xml elementszConsType
- - constraint typeszConsName
- - constraint name
public static oracle.xml.parser.v2.XMLElement retrieveTabColCustomArea(oracle.xml.parser.v2.XMLElement xmlDoc, java.lang.String szColName)
xmlDoc
- - xml elementszColName
- - column name
public static void getConsUDPMap(oracle.xml.parser.v2.XMLElement xmlDoc, java.lang.String szConsTag, java.lang.String szUDPName, java.util.HashMap oMap)
xmlDoc
- - xml elementszConsTag
- - constraint tag nameszUDPName
- - constraint property nameoMap
- - map contains constraint name and status valuespublic static oracle.xml.parser.v2.XMLElement retrieveIdxCustomArea(oracle.xml.parser.v2.XMLElement idxElm)
public static oracle.xml.parser.v2.XMLElement retrieveRelationalNode(oracle.xml.parser.v2.XMLElement xmlDoc)
public static void modifyConsNodes(oracle.xml.parser.v2.XMLDocument xmlDoc, oracle.xml.parser.v2.XMLElement xmlElm, java.util.HashMap isLogicalMap)
xmlElm
- - the xml elementisLogicalMap
- - isLogical Mappublic static void modifyConsNode(oracle.xml.parser.v2.XMLDocument xmlDoc, java.lang.String szTag, oracle.xml.parser.v2.XMLElement xmlElm, java.util.HashMap isLogicalMap)
xmlElm
- - the xml elementisLogicalMap
- - isLogical Mappublic static void insertNode(oracle.xml.parser.v2.XMLDocument xmlDoc, org.w3c.dom.Node parent, java.lang.String nodeName, java.lang.String text)
xmlDoc
- The Document elementparent
- The parent node.nodeName
- The desired name for the node.text
- Any text value for the node.public static boolean isIOT(oracle.xml.parser.v2.XMLElement tableElm)
public static oracle.xml.parser.v2.XMLElement getTabColItem(oracle.xml.parser.v2.XMLElement xmlDoc, java.lang.String szColName)
xmlDoc
- - The table element.szColName
- - the name of the columnpublic static oracle.xml.parser.v2.XMLElement retrieveConsListItem(oracle.xml.parser.v2.XMLElement xmlDoc, java.lang.String szConsType, java.lang.String szConsName)
xmlDoc
- - xml elementszConsType
- - constraint typeszConsName
- - constraint name
public static void getPartitionNames(oracle.xml.parser.v2.XMLElement xmlElm, java.util.HashMap oMap)
xmlDoc
- - xml elementoMap
- - map contains partition names
|
Oracle Fusion Middleware extensions for XML based Datamodel Framework 11g Release 1 (11.1.1.5) E22566-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |