|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.sysman.dbTarget.db.changemgr.emo.docaccess.CMXMLUtils
public class CMXMLUtils
Field Summary | |
---|---|
static java.lang.String |
SXML_NS_PREFIX
|
Constructor Summary | |
---|---|
CMXMLUtils()
|
Method Summary | |
---|---|
static oracle.xml.parser.v2.XMLNode |
createNode(oracle.xml.parser.v2.XMLNode baseNode,
java.lang.String path,
java.lang.String nodeName,
java.lang.String textValue)
Creates an ELEMENT node |
static java.net.URL |
createURL(java.lang.String fileName)
|
static java.net.URL |
createURL(java.lang.String fileName,
boolean useSystemResource)
|
static oracle.xml.parser.v2.XMLNode |
getNode(oracle.xml.parser.v2.XMLNode sn,
java.lang.String xpath)
|
static org.w3c.dom.Node |
getPINode(org.w3c.dom.Document doc,
java.lang.String xpath)
Gets the first PI node under given XPATH expr. |
static java.lang.String |
getRelativeTextNodeValue(oracle.xml.parser.v2.XMLNode n,
java.lang.String xpath)
|
static java.net.URL |
getResource(javax.servlet.ServletContext context,
java.lang.String path)
|
static oracle.sysman.dbTarget.db.changemgr.emo.docaccess.SXMLPrefixResolver |
getSXMLResolver()
|
static java.lang.String |
getTextNodeValue(org.w3c.dom.Document doc,
java.lang.String xpath)
This method returns text node value under an element node that's accessed from a given xpath within the Document. |
static void |
main(java.lang.String[] args)
|
static boolean |
nodeExists(oracle.xml.parser.v2.XMLNode n,
java.lang.String xpath)
Returns true if a node exists at the given path. |
static org.w3c.dom.Document |
parseXMLDocument(java.io.InputStream xmlIs)
Parses an input xml stream into a document tree. |
static org.w3c.dom.Document |
parseXMLDocument(java.io.InputStream xmlIs,
boolean ignoreWS)
|
static org.w3c.dom.Document |
parseXMLDocument(java.io.Reader characterStream)
Parses an input char stream into a document tree. |
static org.w3c.dom.Document |
parseXMLDocument(java.io.Reader characterStream,
boolean ignoreWhitespace,
boolean validate)
Parses an input char stream into a document tree. |
static java.lang.String |
processMDXML(oracle.xml.parser.v2.XMLDocument xml,
java.lang.String xslfile)
Returns MDAPI ddl string using xml and xsl. |
static java.lang.String |
processMDXML(oracle.xml.parser.v2.XMLDocument xml,
java.lang.String xslfile,
java.lang.String dbVersion)
|
static java.lang.String |
processMDXML(oracle.xml.parser.v2.XMLDocument xml,
java.lang.String xslfile,
java.lang.String dbVersion,
int params)
|
static boolean |
removeNode(oracle.xml.parser.v2.XMLNode sn,
java.lang.String xpath)
|
static org.w3c.dom.NodeList |
selectNodes(oracle.xml.parser.v2.XMLNode n,
java.lang.String xpath)
|
static java.lang.String |
selectTextValue(oracle.xml.parser.v2.XMLNode n,
java.lang.String xpath)
This method returns text node value under an element node that's accessed from a given xpath starting with XMLNode n. |
static java.lang.String[] |
selectTextValues(oracle.xml.parser.v2.XMLNode n,
java.lang.String xpath)
This method returns text node value under an element node that's accessed from a given xpath starting with XMLNode n. |
static void |
setRelativeTextNodeValue(oracle.xml.parser.v2.XMLNode n,
java.lang.String xpath,
java.lang.String newValue)
|
static void |
setTextNodeValue(org.w3c.dom.Document doc,
java.lang.String xpath,
java.lang.String newValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SXML_NS_PREFIX
Constructor Detail |
---|
public CMXMLUtils()
Method Detail |
---|
public static java.lang.String getTextNodeValue(org.w3c.dom.Document doc, java.lang.String xpath)
doc
- the Document that contains parsed xml nodesxpath
- the xpath that accesses an element nodepublic static java.lang.String getRelativeTextNodeValue(oracle.xml.parser.v2.XMLNode n, java.lang.String xpath)
public static void setTextNodeValue(org.w3c.dom.Document doc, java.lang.String xpath, java.lang.String newValue)
public static void setRelativeTextNodeValue(oracle.xml.parser.v2.XMLNode n, java.lang.String xpath, java.lang.String newValue)
public static java.lang.String selectTextValue(oracle.xml.parser.v2.XMLNode n, java.lang.String xpath)
n
- the xml node that contains parsed xml nodesxpath
- the xpath that accesses an element nodepublic static java.lang.String[] selectTextValues(oracle.xml.parser.v2.XMLNode n, java.lang.String xpath)
n
- the xml node that contains parsed xml nodesxpath
- the xpath that accesses an element nodepublic static org.w3c.dom.NodeList selectNodes(oracle.xml.parser.v2.XMLNode n, java.lang.String xpath)
public static org.w3c.dom.Node getPINode(org.w3c.dom.Document doc, java.lang.String xpath)
public static boolean nodeExists(oracle.xml.parser.v2.XMLNode n, java.lang.String xpath)
n
- the xml node that contains parsed xml nodesxpath
- the xpath that accesses an element node
public static oracle.xml.parser.v2.XMLNode getNode(oracle.xml.parser.v2.XMLNode sn, java.lang.String xpath)
public static boolean removeNode(oracle.xml.parser.v2.XMLNode sn, java.lang.String xpath)
public static oracle.xml.parser.v2.XMLNode createNode(oracle.xml.parser.v2.XMLNode baseNode, java.lang.String path, java.lang.String nodeName, java.lang.String textValue)
baseNode
- The node at which the path will be based.path
- The path to the node to be created, ending with the name
of the node being created. (E.g.,. if creating the PARALLEL
node, path should end with PARALLEL, not its parent.)
If null, the new node is created under baseNode.nodeName
- The qualified (including prefix?) name of the node to be created.
If null, defaults to the last element of the path.textValue
- If non-null, a TEXT node is created under the new node,
having this value.
public static org.w3c.dom.Document parseXMLDocument(java.io.Reader characterStream) throws javax.xml.parsers.FactoryConfigurationError, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
characterStream
- Reader containing XML text
javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document parseXMLDocument(java.io.Reader characterStream, boolean ignoreWhitespace, boolean validate) throws javax.xml.parsers.FactoryConfigurationError, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
characterStream
- Reader containing XML text
of an XMLDocumentignoreWhitespace
- if true, ignore whitespace in the inputvalidate
- if true, validate input
javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document parseXMLDocument(java.io.InputStream xmlIs)
xmlIs
- xml streampublic static org.w3c.dom.Document parseXMLDocument(java.io.InputStream xmlIs, boolean ignoreWS)
public static java.lang.String processMDXML(oracle.xml.parser.v2.XMLDocument xml, java.lang.String xslfile) throws java.lang.Throwable
xml
- the mdapi generated xml documentxslfile
- the real file path of the stylesheet
java.lang.Throwable
public static java.lang.String processMDXML(oracle.xml.parser.v2.XMLDocument xml, java.lang.String xslfile, java.lang.String dbVersion) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.String processMDXML(oracle.xml.parser.v2.XMLDocument xml, java.lang.String xslfile, java.lang.String dbVersion, int params) throws java.lang.Throwable
java.lang.Throwable
public static java.net.URL getResource(javax.servlet.ServletContext context, java.lang.String path)
public static java.net.URL createURL(java.lang.String fileName)
public static java.net.URL createURL(java.lang.String fileName, boolean useSystemResource)
public static void main(java.lang.String[] args)
public static oracle.sysman.dbTarget.db.changemgr.emo.docaccess.SXMLPrefixResolver getSXMLResolver()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |