Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.jbo.common
Class ClientDocument

java.lang.Object
  extended by oracle.jbo.common.ClientDocument

All Implemented Interfaces:
java.io.Serializable

public class ClientDocument
extends java.lang.Object
implements java.io.Serializable

Internal: Applications should not use this class.

Defines a simple XML document.

A ClientDocument instance contains the root element of an XML hierarchy tree. The middle-tier provides an XML parser and can construct an XML hierarchy tree from XML, or convert a tree into XML.

Since:
Jdeveloper 3.0
See Also:
ClientElement, Serialized Form

Constructor Summary
ClientDocument()
          Internal: Applications should not use this constructor.
ClientDocument(ClientElement root)
          Designates an XML element as the root of an XML hierarchy.

 

Method Summary
 ClientElement getRoot()
          Gets the root element of this ClientDocument's XML hierarchy.
static void main(java.lang.String[] args)
           
 void readXML(java.lang.String fileName)
          Consructs the hierarchy tree from an XML file.
 void writeXML(java.io.File file)
          Writes the hierarchy tree in XML format to a file.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ClientDocument

public ClientDocument()
Internal: Applications should not use this constructor.

ClientDocument

public ClientDocument(ClientElement root)
Designates an XML element as the root of an XML hierarchy.
Parameters:
root - an XML element.

Method Detail

getRoot

public ClientElement getRoot()
Gets the root element of this ClientDocument's XML hierarchy.
Returns:
the root element.

writeXML

public void writeXML(java.io.File file)
              throws java.io.IOException
Writes the hierarchy tree in XML format to a file.
Parameters:
file - the destination file.
Throws:
java.io.IOException

readXML

public void readXML(java.lang.String fileName)
Consructs the hierarchy tree from an XML file.
Parameters:
fileName - the source file.

main

public static void main(java.lang.String[] args)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


Copyright © 1997, 2011, Oracle. All rights reserved.