Skip Headers

Oracle9i XML Reference
Release 1 (9.0.1)

Part Number A88899-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

4
Transviewer Beans


Package oracle.xml.async

Class Summary 

 

Interfaces 

 

DOMBuilderErrorListener 

This interface must be implemented in order to receive notifications when error is found during parsing. 

DOMBuilderListener 

This interface must be implemented in order to receive notifications about events during the asyncronous parsing. 

XSLTransformerErrorListener 

This interface must be implemented in order to receive notifications about error events during the asynchronous transformation. 

XSLTransformerListener 

 


DOMBuilder

Syntax

public class DOMBuilder extends java.lang.Object implements 
java.io.Serializable, oracle.xml.async.DOMBuilderConstants, java.lang.Runnable
 
java.lang.Object
  |
  +--oracle.xml.async.DOMBuilder

All Implemented Interfaces:

oracle.xml.async.DOMBuilderConstants, java.lang.Runnable, java.io.Serializable

Description

This class encapsulates an eXtensible Markup Language (XML) 1.0 parser to parse an XML document and build a DOM tree. The parsing is done in a separate thread and DOMBuilderListener interface must be used for notification when the tree is built.

Fields

inSource

protected org.xml.sax.InputSource inSource

InputSource containing XML data to parse

inStream

protected java.io.InputStream inStream

InputStream containing XML data to parse

inString

protected java.lang.String inString

String containing the URL to parse XML data from

methodToCall

protected int methodToCall

XML Parser method to call based on input types

reader

protected java.io.Reader reader

java.io.Reader containing XML data to be parsed

result

protected oracle.xml.async.XMLDocument result

XML Document being parsed

rootName

protected java.lang.String rootName

Name of the XML element to be treated as root

url

protected java.net.URL url

URL to parse XML data from

Constructors

DOMBuilder()

public  DOMBuilder()

Creates a new parser object.

DOMBuilder(int)

public  DOMBuilder(int id)

Creates a new parser object with a given id.

Parameters:

id - The DOMBuilder id.

Methods

addDOMBuilderErrorListener(DOMBuilderErrorListener)

public void addDOMBuilderErrorListener(DOMBuilderErrorListener p0)

Adds DOMBuilderErrorListener

Parameters:

p1 - The DOMBuilderErrorListener to add

addDOMBuilderListener(DOMBuilderListener)

public void addDOMBuilderListener(DOMBuilderListener p0)

Adds DOMBuilderListener

Parameters:

p1 - The DOMBuilderListener to add

getDoctype()

public synchronized oracle.xml.async.DTD getDoctype()

Get the DTD

Returns:

The DTD

getDocument()

public synchronized oracle.xml.async.XMLDocument getDocument()

Gets the document

Returns:

The document being parsed

getId()

public int getId()

Returns the parser object id.

Returns:

The DOMBuilder id

getReleaseVersion()

public synchronized java.lang.String getReleaseVersion()

Returns the release version of the Oracle XML Parser

Returns:

the release version string

getResult()

public synchronized org.w3c.dom.Document getResult()

Gets the document

Returns:

The document being parsed

getValidationMode()

public synchronized boolean getValidationMode()

Returns the validation mode

Returns:

true if the XML parser is validating false if not

parse(InputSource)

public final synchronized void parse(org.xml.sax.InputSource in)

Parses the XML from given input source

Parameters:

in - the org.xml.sax.InputSouce to parse

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

parse(InputStream)

public final synchronized void parse(java.io.InputStream in)

Parses the XML from given input stream. The base URL should be set for resolving external entities and DTD.

Parameters:

in - the InputStream containing XML data to parse.

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

See Also:

oracle.xml.parser.v2.XMLParser

parse(Reader)

public final synchronized void parse(java.io.Reader r)

Parses the XML from given input stream. The base URL should be set for resolving external entities and DTD.

Parameters:

r - the Reader containing XML data to parse.

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

See Also:

oracle.xml.parser.v2.XMLParser

parse(String)

public final synchronized void parse(java.lang.String in)

Parses the XML from the URL indicated

Parameters:

in - the String containing the URL to parse from

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

parse(URL)

public final synchronized void parse(java.net.URL url)

Parses the XML document pointed to by the given URL and creates the corresponding XML document hierarchy.

Parameters:

url - the url points to the XML document to parse.

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

parseDTD(InputSource, String)

public final synchronized void parseDTD(org.xml.sax.InputSource in, 
java.lang.String rootName)

Parses the XML External DTD from given input source

Parameters:

in - the org.xml.sax.InputSouce to parse

rootName - the element to be used as root Element

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

parseDTD(InputStream, String)

public final synchronized void parseDTD(java.io.InputStream in, java.lang.String 
rootName)

Parses the XML External DTD from given input stream. The base URL should be set for resolving external entities and DTD.

Parameters:

in - the InputStream containing XML data to parse.

rootName - the element to be used as root Element

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

See Also:

oracle.xml.parser.v2.XMLParser

parseDTD(Reader, String)

public final synchronized void parseDTD(java.io.Reader r, java.lang.String 
rootName)

Parses the XML External DTD from given input stream. The base URL should be set for resolving external entities and DTD.

Parameters:

r - the Reader containing XML data to parse.

rootName - the element to be used as root Element

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

See Also:

oracle.xml.parser.v2.XMLParser

parseDTD(String, String)

public final synchronized void parseDTD(java.lang.String in, java.lang.String 
rootName)

Parses the XML External DTD from the URL indicated

Parameters:

in - the String containing the URL to parse from

rootName - the element to be used as root Element

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

parseDTD(URL, String)

public final synchronized void parseDTD(java.net.URL url, java.lang.String 
rootName)

Parses the XML External DTD document pointed to by the given URL and creates the corresponding XML document hierarchy.

Parameters:

url - the url points to the XML document to parse.

rootName - the element to be used as root Element

Throws:

XMLParseException - if syntax or other error encountered.

SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

removeDOMBuilderErrorListener(DOMBuilderErrorListener)

public synchronized void removeDOMBuilderErrorListener(DOMBuilderErrorListener 
p0)

Remove DOMBuilderErrorListener

Parameters:

p1 - The DOMBuilderErrorListener to remove

removeDOMBuilderListener(DOMBuilderListener)

public synchronized void removeDOMBuilderListener(DOMBuilderListener p0)

Remove DOMBuilderListener

Parameters:

p1 - The DOMBuilderListener to remove

run()

public void run()

This method runs in a thread

Specified By:

java.lang.Runnable.run() in interface java.lang.Runnable

setBaseURL(URL)

public synchronized void setBaseURL(java.net.URL url)

Set the base URL for loading external enitites and DTDs. This method should to be called if the parse(InputStream) is used to parse the XML Document

Parameters:

url - The base URL

setDebugMode(boolean)

public void setDebugMode(boolean flag)

Sets a flag to turn on debug information in the document

Parameters:

flag - determines whether debug info is stored

setDoctype(DTD)

public synchronized void setDoctype(oracle.xml.async.DTD dtd)

Set the DTD

Parameters:

dtd - DTD to set and used while parsing

setErrorStream(OutputStream)

public final synchronized void setErrorStream(java.io.OutputStream out)

Creates an output stream for the output of errors and warnings. If an output stream for errors is not specified, the parser will use the standard error output stream System.err for outputting errors and warnings.

Parameters:

out - The output stream to use for errors and warnings

setErrorStream(OutputStream, String)

public final synchronized void setErrorStream(java.io.OutputStream out, 
java.lang.String enc)

Creates an output stream for the output of errors and warnings. If an output stream for errors is not specified, the parser will use the standard error output stream System.err for outputting errors and warnings. Additionally, an .exception is thrown if the encoding specified is unsupported.

Parameters:

out - The output stream to use for errors and warnings

enc - the encoding to use

Throws:

IOException - if an unsupported encoding is specified

setErrorStream(PrintWriter)

public final synchronized void setErrorStream(java.io.PrintWriter out)

Creates an output stream for the output of errors and warnings. If an output stream for errors is not specified, the parser will use the standard error output stream System.err for outputting errors and warnings.

Parameters:

out - The PrintWriter to use for errors and warnings

setNodeFactory(NodeFactory)

public synchronized void setNodeFactory(oracle.xml.async.NodeFactory factory)

Set the node factory. Applications can extend the NodeFactory and register it through this method. The parser will then use the user supplied NodeFactory to create nodes of the DOM tree.

Parameters:

factory - The NodeFactory to set

Throws:

XMLParseException - if an invalid factory is set

See Also:

NodeFactory

setPreserveWhitespace(boolean)

public synchronized void setPreserveWhitespace(boolean flag)

Set the white space preserving mode

Parameters:

flag - preserving mode

setValidationMode(boolean)

public synchronized void setValidationMode(boolean yes)

Set the validation mode

Parameters:

yes - determines whether the XML parser should be validating

showWarnings(boolean)

public synchronized void showWarnings(boolean yes)

Switch to determine whether to print warnings

Parameters:

yes - determines whether warnings should be shown


DOMBuilderBeanInfo

Syntax

public class DOMBuilderBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.async.DOMBuilderBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Description

This class provides information about the DOMBuilder Bean.

Constructors

DOMBuilderBeanInfo()

public  DOMBuilderBeanInfo()

The default Constructor

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Gets an image object that can be used to represent DOMBuilder bean in toolbars, toolboxes, etc.

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

Parameters:

iconKind - The kind of icon requested.

Returns:

An image object representing the requested icon type for DOMBuilder bean.

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Gets the DOMBuilder bean's PropertyDescriptors

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo

Returns:

An array of PropertyDescriptors describing the editable properties supported by DOMBuilder bean.


DOMBuilderErrorEvent

Syntax

public class DOMBuilderErrorEvent extends java.util.EventObject
 
java.lang.Object
  |
  +--java.util.EventObject
        |
        +--oracle.xml.async.DOMBuilderErrorEvent

All Implemented Interfaces:

java.io.Serializable

Description

This class defines the error event which is sent when parse exception occurs.

Fields

protected java.lang.Exception e

The exception being raised.

Constructors

DOMBuilderErrorEvent(Object, Exception)

public  DOMBuilderErrorEvent(java.lang.Object p0, java.lang.Exception e)

Constructor for DOMBuilderErrorEvent.

Parameters:

p0 - The Object that created this event.

e - The Exception raised.

Methods

getException()

public java.lang.Exception getException()

Gets the Exception

Returns:

The Exception beind raised

getMessage()

public java.lang.String getMessage()

Returns the error message generated by the parser

Returns:

The error message string


DOMBuilderErrorListener

Syntax

public interface DOMBuilderErrorListener extends java.util.EventListener

All Superinterfaces:

java.util.EventListener

Description

This interface must be implemented in order to receive notifications when error is found during parsing. The class implementing this interface must be added to the DOMBuilder using addDOMBuilderErrorListener method.

Methods

domBuilderErrorCalled(DOMBuilderErrorEvent)

public void domBuilderErrorCalled(DOMBuilderErrorEvent p0)

This method is called when a parse error occurs.

Parameters:

p0 - The DOMBuilderErrorEvent object produced by the DOMBuilder as result of parsing error


DOMBuilderEvent

Syntax

public class DOMBuilderEvent extends java.util.EventObject
 
java.lang.Object
  |
  +--java.util.EventObject
        |
        +--oracle.xml.async.DOMBuilderEvent

All Implemented Interfaces:

java.io.Serializable

Description

The event object that DOMBuilder uses to notify all registered listeners about parse events.

Fields

id

protected int id

ID of the source DOMBuilder object

Constructors

DOMBuilderEvent(Object, int)

public  DOMBuilderEvent(java.lang.Object p0, int p1)

Creates a new DOMBuilderEvent

Parameters:

p0 - The Object creating this event.

p1 - Id of the DOMBuilder creating this event.

Methods

getID()

public int getID()

Returns unique id of the DOMBuilder object which can be used to identify which instance of the DOMBuilder generated this event in cases where multiple instances of DOMBuilder may be working in background.

Returns:

The unique id of the source DOMBuilder for this event.


DOMBuilderListener

Syntax

public interface DOMBuilderListener extends java.util.EventListener

All Superinterfaces:

java.util.EventListener

Description

This interface must be implemented in order to receive notifications about events during the asyncronous parsing. The class implementing this interface must be added to the DOMBuilder using addDOMBuilderListener method.

Methods

domBuilderError(DOMBuilderEvent)

public void domBuilderError(DOMBuilderEvent p0)

This method is called when parse error occur.

Parameters:

p0 - - The DOMBuilderEvent object produced by the DOMBuilder

domBuilderOver(DOMBuilderEvent)

public void domBuilderOver(DOMBuilderEvent p0)

This method is called when the parse is complete

Parameters:

p0 - - The DOMBuilderEvent object produced by the DOMBuilder

domBuilderStarted(DOMBuilderEvent)

public void domBuilderStarted(DOMBuilderEvent p0)

This method is called when parse starts

Parameters:

p0 - - The DOMBuilderEvent object produced by the DOMBuilder


ResourceManager

Syntax

public class ResourceManager extends java.lang.Object
 
java.lang.Object
  |
  +--oracle.xml.async.ResourceManager

Constructors

ResourceManager(int)

public  ResourceManager(int i)

The ResourceManager constructor

Parameters:

<code>i</code> - - the number of resources to manage

Methods

activeFound()

public boolean activeFound()

Checks if any of the logical resources being managed are in active use

Returns:

true - if one or more resource is in use false - if none of the resources are in use

getResource()

public synchronized void getResource()

If the number of resources available for use is nonzero, the method decreases the number of resources by one. Otherwise, it waits until a resource is released & it becomes available for use.

releaseResource()

public void releaseResource()

Releases a resource. When this method is called, the number of resources avialable is increased by one.

sleep(int)

public void sleep(int i)

Allows usage of Thread.sleep() without try/catch


XSLTransformer

Syntax

public class XSLTransformer extends java.lang.Object implements 
java.io.Serializable, oracle.xml.async.XSLTransformerConstants, 
java.lang.Runnable
 
java.lang.Object
  |
  +--oracle.xml.async.XSLTransformer

All Implemented Interfaces:

java.lang.Runnable, java.io.Serializable, 
oracle.xml.async.XSLTransformerConstants

Description

Applies XSL transformation in a background thread.

Fields

methodToCall

protected int methodToCall

The XSL transformation method to call based on input types.

result

protected oracle.xml.async.DocumentFragment result

Transformation result document.

Constructors

XSLTransformer()

public  XSLTransformer()

XSLTransformer constructor

XSLTransformer(int)

public  XSLTransformer(int id)

XSLTransformer constructor accepting an identifier

Parameters:

id - - A unique integer that can be used to identify the XSLTransformer instance during event processing

Methods

addXSLTransformerErrorListener(XSLTransformerErrorListener)

public void addXSLTransformerErrorListener(XSLTransformerErrorListener p0)

Adds an XSLTransformer error event listener

Parameters:

p0 - XSLTransformerErrorListener to be added

addXSLTransformerListener(XSLTransformerListener)

public void addXSLTransformerListener(XSLTransformerListener p0)

Adds a XSLTransformer listener

Parameters:

p0 - XSLTransformerListener to be added

getId()

public int getId()

Returns the unique XSLTransformer id

Returns:

The id of this XSLTransformer.

getResult()

public synchronized oracle.xml.async.DocumentFragment getResult()

Returns the document fragment for the resulting document. Call this method only after receiving notification that the transformation is complete. Since the transformation occurs in background and asyncronously, calling this method immediately after processXSL will result in holding the control until the result is avialable.

Returns:

The resulting document fragment of the XSL transformation.

processXSL(XSLStylesheet, InputStream, URL)

public void processXSL(oracle.xml.async.XSLStylesheet xsl, java.io.InputStream 
xml, java.net.URL ref)

Initiates XSL Transformation in the background. The control is returned immediately.

Parameters:

xsl - The stylesheet to be used for XSL transformation

xml - The XML document to be used (as a java.io.InputStream)

ref - Reference URL to resolve external entities in input XML

Throws:

XSLException - if an error occurs during XSL transformation

processXSL(XSLStylesheet, Reader, URL)

public void processXSL(oracle.xml.async.XSLStylesheet xsl, java.io.Reader xml, 
java.net.URL ref)

Initiates XSL Transformation in the background. The control is returned immediately.

Parameters:

xsl - The stylesheet to be used for XSL transformation

xml - The XML document to be used (as a java.io.Reader)

ref - Reference URL to resolve external entities in input XML

Throws:

XSLException - if an error occurs during XSL transformation

processXSL(XSLStylesheet, URL, URL)

public void processXSL(oracle.xml.async.XSLStylesheet xsl, java.net.URL xml, 
java.net.URL ref)

Initiates XSL Transformation in the background. The control is returned immediately.

Parameters:

xsl - The stylesheet to be used for XSL transformation

xml - The XML document to be used (as a java.net.URL)

ref - Reference URL to resolve external entities in input XML

Throws:

XSLException - if an error occurs during XSL transformation

processXSL(XSLStylesheet, XMLDocument)

public void processXSL(oracle.xml.async.XSLStylesheet xsl, 
oracle.xml.async.XMLDocument xml)

Initiates XSL Transformation in the background. The control is returned immediately.

Parameters:

xsl - The stylesheet to be used for XSL transformation

xml - The XML document to be used (as a DOM Tree)

Throws:

XSLException - if an error occurs during XSL transformation

processXSL(XSLStylesheet, XMLDocument, OutputStream)

public void processXSL(oracle.xml.async.XSLStylesheet xsl, 
oracle.xml.async.XMLDocument xml, java.io.OutputStream os)

Initiates XSL Transformation in the background. The control is returned immediately.

Parameters:

xsl - The stylesheet to be used for XSL transformation

xml - The XML document to be used (as a DOM Tree)

os - Outputstream to which the XSL transformation result is written

Throws:

XSLException - if an error occurs during XSL transformation

removeDOMTransformerErrorListener(XSLTransformerErrorListener)

public synchronized void 
removeDOMTransformerErrorListener(XSLTransformerErrorListener p0)

Removes an XSLTransformer error event listener

Parameters:

p0 - XSLTransformerErrorListener to be removed

removeXSLTransformerListener(XSLTransformerListener)

public synchronized void removeXSLTransformerListener(XSLTransformerListener p0)

Removes a XSLTransformer listener

Parameters:

p0 - XSLTransformerListener to be removed

run()

public void run()

Starts a separate thread to do the XSL Transformation.

Specified By:

java.lang.Runnable.run() in interface java.lang.Runnable

setErrorStream(OutputStream)

public final void setErrorStream(java.io.OutputStream out)

Sets the error stream used by the XSL processor

Parameters:

out - The error output stream for the XSL processor

showWarnings(boolean)

public final void showWarnings(boolean yes)

Sets the showWarnings flag used by the XSL processor

Parameters:

yes - Boolean indicating if XSL processor warnings to be shown or not.


XSLTransformerBeanInfo

Syntax

public class XSLTransformerBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.async.XSLTransformerBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Description

This class provides information about the XSLTransformer Bean.

Constructors

XSLTransformerBeanInfo()

public  XSLTransformerBeanInfo()

The default Constructor

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Gets an image object that can be used to represent XSLTransformer bean in toolbars, toolboxes, etc.

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

Parameters:

iconKind - The kind of icon requested.

Returns:

An image object representing the requested icon type for XSLTransformer bean.

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Gets the XSLTransformer bean's PropertyDescriptors

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo

Returns:

An array of PropertyDescriptors describing the editable properties supported by XSLTransformer bean.


XSLTransformerErrorEvent

Syntax

public class XSLTransformerErrorEvent extends java.util.EventObject
 
java.lang.Object
  |
  +--java.util.EventObject
        |
        +--oracle.xml.async.XSLTransformerErrorEvent

All Implemented Interfaces:

java.io.Serializable

Description

The error event object that XSLTransformer uses to notify all registered listeners about transformation error events.

Fields

protected java.lang.Exception e

The exception being raised.

Constructors

XSLTransformerErrorEvent(Object, Exception)

public  XSLTransformerErrorEvent(java.lang.Object p0, java.lang.Exception e)

Constructor for XSLTransformerErrorEvent.

Parameters:

p0 - The Object that created this event

e - The Exception raised.

Methods

getException()

public java.lang.Exception getException()

Returns the exception that XSLTransformer encountered object unique id. Can be used to

Returns:

The transformation exception

getMessage()

public java.lang.String getMessage()

Returns the error message that describes the error that XSLTransformer encountered

Returns:

The error message


XSLTransformerErrorListener

Syntax

public interface XSLTransformerErrorListener extends java.util.EventListener

All Superinterfaces:

java.util.EventListener

Description

This interface must be implemented in order to receive notifications about error events during the asynchronous transformation. The class implementing this interface must be added to the XSLTransformer using addXSLTransformerListener method.

Methods

xslTransformerErrorCalled(XSLTransformerErrorEvent)

public void xslTransformerErrorCalled(XSLTransformerErrorEvent p0)

This method is called when parse or transformation error occurs.

Parameters:

p0 - - The XSLTransformerErrorEvent object produced by the XSLTransformer


XSLTransformerEvent

Syntax

public class XSLTransformerEvent extends java.util.EventObject
 
java.lang.Object
  |
  +--java.util.EventObject
        |
        +--oracle.xml.async.XSLTransformerEvent

All Implemented Interfaces:

java.io.Serializable

Fields

id

protected int id

ID of the source XSLTransformer object

Constructors

XSLTransformerEvent(Object, int)

public  XSLTransformerEvent(java.lang.Object p0, int p1)

Constructs the XSLTransformerEvent object using the XSLTransformer source object and its unique id.

Parameters:

<code>p0</code> - The source XSLTransformer object that will fire the events

<code>p1</code> - Unique id identifying the source object

Methods

getID()

public int getID()

Returns unique id of the XSLTransformer object which can be used to identify which instance of the XSLTransformer generated this event in cases where multiple instances of XSLTransformer may be working in background.

Returns:

The unique id of the source XSLTransformer object for this event object.


XSLTransformerListener

Syntax

public interface XSLTransformerListener extends java.util.EventListener

All Superinterfaces:

java.util.EventListener

Description

This interface must be implemented in order to receive notifications about events during the asynchronous transformation. The class implementing this interface must be added to the XSLTransformer using addXSLTransformerListener method.

Methods

xslTransformerError(XSLTransformerEvent)

public void xslTransformerError(XSLTransformerEvent p0)

This method is called when parse or transformation error occur.

Parameters:

p0 - - The XSLTransformerEvent object produced by the XSLTransformer

xslTransformerOver(XSLTransformerEvent)

public void xslTransformerOver(XSLTransformerEvent p0)

This method is called when the transformation is complete

Parameters:

p0 - - The XSLTransformerEvent object produced by the XSLTransformer

xslTransformerStarted(XSLTransformerEvent)

public void xslTransformerStarted(XSLTransformerEvent p0)

This method is called when the transformation starts

Parameters:

p0 - - The XSLTransformerEvent object produced by the XSLTransformer


Package oracle.xml.dbviewer


DBViewer

Syntax

public class DBViewer extends javax.swing.JPanel implements java.io.Serializable
 
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--oracle.xml.dbviewer.DBViewer

All Implemented Interfaces:

javax.accessibility.Accessible, java.awt.image.ImageObserver, 
java.awt.MenuContainer, java.io.Serializable

Description

Java bean that can be used to display database queries or any XML by applying XSL stylesheets and visualizing the resulted HTML in scrollable swing panel. This bean has tree buffers: XML, XSL and result buffer. The bean API allow the calling program to load/save the buffers from various sources and to apply stylesheet transformation to the XML buffer using the stylesheet in the XSL buffer. The result can be stored in the result buffer. The XML and XSL buffers content can be shown as source or as a tree structure. The result buffer content can be rendered as HTML and also shown as source or tree structure. The XML buffer can be loaded from database query. All buffers can load and save files from CLOB tables in Oracle database and from file system as well. Therefore, the control can be also used to move files between the file system and the user schema in the database.

Constructors

DBViewer()

public  DBViewer()

Constructs a new instance.

Methods

getHostname()

public java.lang.String getHostname()

Get database host name

Returns:

host name

getInstancename()

public java.lang.String getInstancename()

Get database instance name

Returns:

database instance name

getPassword()

public java.lang.String getPassword()

Get user password

Returns:

user password

getPort()

public java.lang.String getPort()

Get database port number

Returns:

String with the database port number

getResBuffer()

public java.lang.String getResBuffer()

Get the content of the result buffer

Returns:

the buffer content

getResCLOBFileName()

public java.lang.String getResCLOBFileName()

Get result CLOB file name

Returns:

result CLOB file name

getResCLOBTableName()

public java.lang.String getResCLOBTableName()

Get result CLOB table name

Returns:

result CLOB table name

getResFileName()

public java.lang.String getResFileName()

Get Result file name

Returns:

XSL file name

getUsername()

public java.lang.String getUsername()

Get user name

Returns:

user name

getXmlBuffer()

public java.lang.String getXmlBuffer()

Get the content of the XML buffer

Returns:

the buffer content

getXmlCLOBFileName()

public java.lang.String getXmlCLOBFileName()

Get XML CLOB file name

Returns:

XML CLOB file name

getXmlCLOBTableName()

public java.lang.String getXmlCLOBTableName()

Get XML CLOB table name

Returns:

XML CLOB table name

getXmlFileName()

public java.lang.String getXmlFileName()

Get XML file name

Returns:

XML file name

getXMLStringFromSQL(String)

public java.lang.String getXMLStringFromSQL(java.lang.String sqlText)

Get XML presentation of result set from SQL query

Returns:

the query result set as XML string

getXslBuffer()

public java.lang.String getXslBuffer()

Get the content of the XSL buffer

Returns:

the buffer content

getXslCLOBFileName()

public java.lang.String getXslCLOBFileName()

Get the XSL CLOB file name

Returns:

XSL CLOB file name

getXslCLOBTableName()

public java.lang.String getXslCLOBTableName()

Get XSL CLOB table name

Returns:

XSL CLOB table name

getXslFileName()

public java.lang.String getXslFileName()

Get XSL file name

Returns:

XSL file name

loadResBuffer(String)

public void loadResBuffer(java.lang.String filename)

Load the result buffer from file

Parameters:

filename - file name

loadResBuffer(String, String)

public void loadResBuffer(java.lang.String tablename, java.lang.String filename)

Load the result buffer from CLOB file

Parameters:

tablename - CLOB table name

filename - CLOB file name

loadResBuffer(XMLDocument)

public void loadResBuffer(oracle.xml.parser.v2.XMLDocument resdoc)

Load the result buffer from XMLDocument

Parameters:

resdoc - - the XMLDocument

loadResBufferFromClob()

public void loadResBufferFromClob()

Load the result buffer from CLOB file

loadResBufferFromFile()

public void loadResBufferFromFile()

Load the result buffer from file

loadXmlBuffer(String)

public void loadXmlBuffer(java.lang.String filename)

Load the XML buffer from file

Parameters:

filename - file name

loadXmlBuffer(String, String)

public void loadXmlBuffer(java.lang.String tablename, java.lang.String filename)

Load the XML buffer from CLOB file

Parameters:

tablename - CLOB table name

filename - CLOB file name

loadXmlBuffer(XMLDocument)

public void loadXmlBuffer(oracle.xml.parser.v2.XMLDocument xmldoc)

Load the XML buffer from XMLDocument

Parameters:

filename - file name

loadXmlBufferFromClob()

public void loadXmlBufferFromClob()

Load the XML buffer from CLOB file

loadXmlBufferFromFile()

public void loadXmlBufferFromFile()

Load the XML buffer from file

loadXMLBufferFromSQL(String)

public void loadXMLBufferFromSQL(java.lang.String sqltext)

Load the XML buffer from SQL result set

Parameters:

sqltext - SQL text

loadXslBuffer(String)

public void loadXslBuffer(java.lang.String filename)

Load the XSL buffer from file

Parameters:

filename - file name

loadXslBuffer(String, String)

public void loadXslBuffer(java.lang.String tablename, java.lang.String filename)

Load the XSL buffer from CLOB file

Parameters:

tablename - CLOB table name

filename - CLOB file name

loadXslBuffer(XMLDocument)

public void loadXslBuffer(oracle.xml.parser.v2.XMLDocument xsldoc)

Load the XSL buffer from XMLDocument

Parameters:

xsldoc - - the XML Document

loadXslBufferFromClob()

public void loadXslBufferFromClob()

Load the XSL buffer from CLOB file

loadXslBufferFromFile()

public void loadXslBufferFromFile()

Load the XSL buffer from file

parseResBuffer()

public oracle.xml.parser.v2.XMLDocument parseResBuffer()

Parse the result buffer and refresh the tree view and source view

Returns:

XMLDocument

parseXmlBuffer()

public oracle.xml.parser.v2.XMLDocument parseXmlBuffer()

Parse the XML buffer and refresh the tree view and source view

Returns:

XMLDocument

parseXslBuffer()

public oracle.xml.parser.v2.XMLDocument parseXslBuffer()

Parse the XSL buffer and refresh the tree view and source view

Returns:

XMLDocument

saveResBuffer(String)

public void saveResBuffer(java.lang.String filename)

Save the result buffer to file

Parameters:

filename - CLOB file name

saveResBuffer(String, String)

public void saveResBuffer(java.lang.String tablename, java.lang.String filename)

Save the result buffer to CLOB file

Parameters:

tablename - CLOB table name

filename - CLOB file name

saveResBufferToClob()

public void saveResBufferToClob()

Save the result buffer to CLOB file

saveResBufferToFile()

public void saveResBufferToFile()

Save the result buffer to file

saveXmlBuffer(String)

public void saveXmlBuffer(java.lang.String filename)

Save the XML buffer to file

Parameters:

filename - file name

saveXmlBuffer(String, String)

public void saveXmlBuffer(java.lang.String tablename, java.lang.String filename)

Save the XML buffer to CLOB file

Parameters:

tablename - CLOB table name

filename - CLOB file name

saveXmlBufferToClob()

public void saveXmlBufferToClob()

Save the XML buffer to CLOB file

saveXmlBufferToFile()

public void saveXmlBufferToFile()

Save the XML buffer to file

saveXslBuffer(String)

public void saveXslBuffer(java.lang.String filename)

Save the XSL buffer to file

Parameters:

filename - file name

saveXslBuffer(String, String)

public void saveXslBuffer(java.lang.String tablename, java.lang.String filename)

Save the XSL buffer to CLOB file

Parameters:

tablename - CLOB table name

filename - CLOB file name

saveXslBufferToClob()

public void saveXslBufferToClob()

Save the XSL buffer to CLOB file

saveXslBufferToFile()

public void saveXslBufferToFile()

Save the XSL buffer to file

setHostname(String)

public void setHostname(java.lang.String hostname)

Set database host name

Parameters:

hostname - the host name

setInstancename(String)

public void setInstancename(java.lang.String instancename)

Set database instance name

Parameters:

instancename - the database instance name

setPassword(String)

public void setPassword(java.lang.String password)

Set user password

Parameters:

password - the user password

setPort(String)

public void setPort(java.lang.String port)

Set database port number

Parameters:

port - String containing the port number

setResBuffer(String)

public void setResBuffer(java.lang.String text)

Set new text in the result buffer

Parameters:

text - the new text

setResCLOBFileName(String)

public void setResCLOBFileName(java.lang.String name)

Set Result CLOB file name

Parameters:

name - Result CLOB file name

setResCLOBTableName(String)

public void setResCLOBTableName(java.lang.String name)

Set Result CLOB table name

Parameters:

name - Result CLOB table name

setResFileName(String)

public void setResFileName(java.lang.String name)

Set Result file name

Parameters:

name - Result file name

setResHtmlView(boolean)

public void setResHtmlView(boolean on)

Show the result buffer as rendered HTML

setResSourceEditView(boolean)

public void setResSourceEditView(boolean on)

Show the result buffer as XML source and enter edit mode

setResSourceView(boolean)

public void setResSourceView(boolean on)

Show the result buffer as XML source

setResTreeView(boolean)

public void setResTreeView(boolean on)

Show the result buffer as XML tree view

setUsername(String)

public void setUsername(java.lang.String username)

Set user name

Parameters:

username - the user name

setXmlBuffer(String)

public void setXmlBuffer(java.lang.String text)

Set new text in the XML buffer

Parameters:

text - XML text

setXmlCLOBFileName(String)

public void setXmlCLOBFileName(java.lang.String name)

Set XML CLOB table name

Parameters:

name - XML CLOB table name

setXmlCLOBTableName(String)

public void setXmlCLOBTableName(java.lang.String name)

Set XML CLOB table name

Parameters:

name - XML CLOB table name

setXmlFileName(String)

public void setXmlFileName(java.lang.String name)

Set XML file name

Parameters:

name - XML file name

setXmlSourceEditView(boolean)

public void setXmlSourceEditView(boolean on)

Show the XML buffer as XML source and enter edit mode

setXmlSourceView(boolean)

public void setXmlSourceView(boolean on)

Show the XML buffer as XML source

setXmlTreeView(boolean)

public void setXmlTreeView(boolean on)

Show the XML buffer as tree

setXslBuffer(String)

public void setXslBuffer(java.lang.String text)

Set new text in the XSL buffer

Parameters:

text - XSL text

setXslCLOBFileName(String)

public void setXslCLOBFileName(java.lang.String name)

Set XSL CLOB file name

Parameters:

name - XSL CLOB file name

setXslCLOBTableName(String)

public void setXslCLOBTableName(java.lang.String name)

Set XSL CLOB table name

Parameters:

name - XSL CLOB table name

setXslFileName(String)

public void setXslFileName(java.lang.String name)

Set XSL file name

Parameters:

name - XSL file name

setXslSourceEditView(boolean)

public void setXslSourceEditView(boolean on)

Show the XSL buffer as XML source and enter edit mode

setXslSourceView(boolean)

public void setXslSourceView(boolean on)

Show the XSL buffer as XML source

setXslTreeView(boolean)

public void setXslTreeView(boolean on)

Show the XSL buffer as tree

transformToDoc()

public oracle.xml.parser.v2.XMLDocument transformToDoc()

Transfroms the content of the XML buffer by applying the stylesheet from the XSL buffer.

transformToRes()

public void transformToRes()

Apply the stylesheet transformation from the XSL buffer to the XML in the XML buffer and stores the result into the result buffer

transformToString()

public java.lang.String transformToString()

Transfroms the content of the XML buffer by applying the stylesheet from the XSL buffer.


Package oracle.xml.dbviewer


DBViewerBeanInfo

Syntax

public class DBViewerBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.dbviewer.DBViewerBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Constructors

DBViewerBeanInfo()

public  DBViewerBeanInfo()

Constructor

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo


Package oracle.xml.srcviewer


XMLSourceView

Syntax

public class XMLSourceView extends javax.swing.JPanel implements 
java.io.Serializable
 
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--oracle.xml.srcviewer.XMLSourceView

All Implemented Interfaces:

javax.accessibility.Accessible, java.awt.image.ImageObserver, 
java.awt.MenuContainer, java.io.Serializable

Description

Shows an XML document. Recognizes the following XML token types: Tag, Attribute Name, Attribute Value, Comment, CDATA, PCDATA, PI Data, PI Name and NOTATION Symbol. Each token type has a foreground color and font. The default color/font settings can be changed by the user. Takes as input an org.w3c.dom.Document object.

Fields

inputDOMDocument

protected org.w3c.dom.Document inputDOMDocument

jScrollPane

protected javax.swing.JScrollPane jScrollPane

jTextPane

protected javax.swing.JTextPane jTextPane

xmlStyledDocument

protected oracle.xml.srcviewer.XMLStyledDocument xmlStyledDocument

Constructors

XMLSourceView()

public  XMLSourceView()

The class constructor. Creates an object of type XMLSourceView.

Methods

fontGet(AttributeSet)

public static java.awt.Font fontGet(javax.swing.text.AttributeSet attributeset)

Extracts and returns the font from a given attributeset.

Parameters:

attributeset - The source Attributeset.

Returns:

The extracted Font.

fontSet(MutableAttributeSet, Font)

public static void fontSet(javax.swing.text.MutableAttributeSet 
mutableattributeset, java.awt.Font font)

Sets the mutableattributeset font.

Parameters:

mutableattributeset - The mutableattributeset to update.

font - The new Font for the mutableattributeset.

getAttributeNameFont()

public java.awt.Font getAttributeNameFont()

Returns the Attribute Value font.

Returns:

The Font object.

getAttributeNameForeground()

public java.awt.Color getAttributeNameForeground()

Returns the Attribute Name foreground color.

Returns:

The Color object.

getAttributeValueFont()

public java.awt.Font getAttributeValueFont()

Returns the Attribute Value font.

Returns:

The Font object.

getAttributeValueForeground()

public java.awt.Color getAttributeValueForeground()

Returns the Attribute Value foreground color.

Returns:

The Color object.

getBackground()

public java.awt.Color getBackground()

Returns the background color.

Overrides:

java.awt.Component.getBackground() in class java.awt.Component

Returns:

The Color object.

getCDATAFont()

public java.awt.Font getCDATAFont()

Returns the CDATA font.

Returns:

The Font object.

getCDATAForeground()

public java.awt.Color getCDATAForeground()

Returns the CDATA foreground color.

Returns:

The Color object.

getCommentDataFont()

public java.awt.Font getCommentDataFont()

Returns the Comment Data font.

Returns:

The Font object.

getCommentDataForeground()

public java.awt.Color getCommentDataForeground()

Returns the Comment Data foreground color.

Returns:

The Color object.

getEditedText()

public java.lang.String getEditedText()

Returns the edited text.

Returns:

The String object containing the edited text.

getJTextPane()

public javax.swing.JTextPane getJTextPane()

Returns the viewer JTextPane component.

Returns:

The JTextPane object used by XMLSourceViewer

getMinimumSize()

public java.awt.Dimension getMinimumSize()

Returns the XMLSourceView minimal size.

Overrides:

javax.swing.JComponent.getMinimumSize() in class javax.swing.JComponent

Returns:

The Dimension object containing the XMLSourceView minimum size.

getNodeAtOffset(int)

public org.w3c.dom.Node getNodeAtOffset(int i)

Returns the XML node at a given offset.

Parameters:

i - The node offset.

Returns:

The Node object from offset i.

getPCDATAFont()

public java.awt.Font getPCDATAFont()

Returns the PCDATA font.

Returns:

The Font object.

getPCDATAForeground()

public java.awt.Color getPCDATAForeground()

Returns the PCDATA foreground color.

Returns:

The Color object.

getPIDataFont()

public java.awt.Font getPIDataFont()

Returns the PI Data font.

Returns:

The Font object

getPIDataForeground()

public java.awt.Color getPIDataForeground()

Returns the PI Data foreground color.

Returns:

The Color object.

getPINameFont()

public java.awt.Font getPINameFont()

Returns the PI Name font.

Returns:

The Font object.

getPINameForeground()

public java.awt.Color getPINameForeground()

Returns the PI Data foreground color.

Returns:

The Color object.

getSymbolFont()

public java.awt.Font getSymbolFont()

Returns the NOTATION Symbol font.

Returns:

The Font object.

getSymbolForeground()

public java.awt.Color getSymbolForeground()

Returns the NOTATION Symbol foreground color.

Returns:

The Color object.

getTagFont()

public java.awt.Font getTagFont()

Returns the Tag font.

Returns:

The Font object.

getTagForeground()

public java.awt.Color getTagForeground()

Returns the Tag foreground color.

Returns:

The Color object.

getText()

public java.lang.String getText()

Returns the XML document as a String.

Returns:

The String object containing the XML document.

isEditable()

public boolean isEditable()

Returns boolean to indicate whether this object is editable.

selectNodeAt(int)

public void selectNodeAt(int i)

Moves the cursor to XML Node at offset i.

Parameters:

i - The node offset.

setAttributeNameFont(Font)

public void setAttributeNameFont(java.awt.Font font)

Sets the Attribute Name font.

Parameters:

font - The new Font for Attribute Name.

setAttributeNameForeground(Color)

public void setAttributeNameForeground(java.awt.Color color)

Sets the Attribute Name foreground color.

Parameters:

color - The new Color for Attribute Name.

setAttributeValueFont(Font)

public void setAttributeValueFont(java.awt.Font font)

Sets the Attribute Value font.

Parameters:

font - The new Font for Attribute Value.

setAttributeValueForeground(Color)

public void setAttributeValueForeground(java.awt.Color color)

Sets the Attribute Value foreground color.

Parameters:

color - The new Color for Attribute Value.

setBackground(Color)

public void setBackground(java.awt.Color color)

Sets the background color.

Overrides:

javax.swing.JComponent.setBackground(java.awt.Color) in class javax.swing.JComponent

Parameters:

color - The new background Color.

setCDATAFont(Font)

public void setCDATAFont(java.awt.Font font)

Sets the CDATA font.

Parameters:

font - The new Font for CDATA.

setCDATAForeground(Color)

public void setCDATAForeground(java.awt.Color color)

Sets the CDATA foreground color.

Parameters:

color - The new Color for CDATA.

setCommentDataFont(Font)

public void setCommentDataFont(java.awt.Font font)

Sets the Comment font.

Parameters:

font - The new Font for the XML Comments.

setCommentDataForeground(Color)

public void setCommentDataForeground(java.awt.Color color)

Sets the Comment foreground color.

Parameters:

color - The new Color for Comment.

setEditable(boolean)

public void setEditable(boolean edit)

Sets the specified boolean to indicate whether this object should be editable.

Parameters:

doc - The new boolean value.

setPCDATAFont(Font)

public void setPCDATAFont(java.awt.Font font)

Sets the PCDATA font.

Parameters:

font - The new Font for PCDATA.

setPCDATAForeground(Color)

public void setPCDATAForeground(java.awt.Color color)

Sets the PCDATA foreground color.

Parameters:

color - The new Color for PCDATA.

setPIDataFont(Font)

public void setPIDataFont(java.awt.Font font)

Sets the PI Data font.

Parameters:

font - The new Font for PI Data.

setPIDataForeground(Color)

public void setPIDataForeground(java.awt.Color color)

Sets the PI Data foreground color.

Parameters:

color - The new Color for PI Data.

setPINameFont(Font)

public void setPINameFont(java.awt.Font font)

Sets the PI Name font.

Parameters:

font - The new Font for the PI Names.

setPINameForeground(Color)

public void setPINameForeground(java.awt.Color color)

Sets the PI Name foreground color.

Parameters:

color - The new Color for PI Name.

setSelectedNode(Node)

public void setSelectedNode(org.w3c.dom.Node node)

Sets the cursor position at the selected XML node.

Parameters:

node - The selected node.

setSymbolFont(Font)

public void setSymbolFont(java.awt.Font font)

Sets the NOTATION Symbol font.

Parameters:

color - The new Font for NOTATION Symbol.

setSymbolForeground(Color)

public void setSymbolForeground(java.awt.Color color)

Sets the NOTATION Symbol foreground color.

Parameters:

color - The new Color for NOTATION Symbol.

setTagFont(Font)

public void setTagFont(java.awt.Font font)

Sets the Tag font.

Parameters:

font - The new Font for the XML Tags.

setTagForeground(Color)

public void setTagForeground(java.awt.Color color)

Sets the Tag foreground color.

Parameters:

color - The new Color for the XML Tags.

setXMLDocument(Document)

public void setXMLDocument(org.w3c.dom.Document document)

Associates the XMLviewer with a XML document.

Parameters:

doc - The Document document to display.

See Also:

getText()


Package oracle.xml.srcviewer


XMLSourceViewBeanInfo

Syntax

public class XMLSourceViewBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.srcviewer.XMLSourceViewBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Constructors

XMLSourceViewBeanInfo()

public  XMLSourceViewBeanInfo()

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo


Package oracle.xml.transviewer


DBAccess

Syntax

public class DBAccess extends java.lang.Object
 
java.lang.Object
  |
  +--oracle.xml.transviewer.DBAccess

Description

Maintains CLOB tables that can hold multiple XML and text documents. Each table is created using the statement: CREATE TABLE tablename FILENAME CHAR( 16) UNIQUE, FILEDATA CLOB) LOB(FILEDATA) STORE AS (DISABLE STORAGE IN ROW). Each XML (or text) document is stored as a row in the table and the FILENAME field holds a unique string that is used as a key to retrieve, update or delete the row. The document text is stored in the FILEDATA field that is a CLOB object. This CLOB tables are automatically maintained by the transviewer bean. The CLOB tables maintained by this class can be later used by the transviewer bean. The class creates and deletes CLOB tables, list a CLOB table content and also add, replace or delete text documents in this CLOB tables.

Constructors

DBAccess()

public  DBAccess()

Methods

createBLOBTable(Connection, String)

public boolean createBLOBTable(java.sql.Connection con, java.lang.String 
tablename)

Create BLOB table

Parameters:

con - - the Connection object

tablename - - the table name

Returns:

true if successfull

createXMLTable(Connection, String)

public boolean createXMLTable(java.sql.Connection con, java.lang.String 
tablename)

Create XML table

Parameters:

con - - the Connection object

tablename - - the table name

Returns:

true if successfull

deleteBLOBName(Connection, String, String)

public boolean deleteBLOBName(java.sql.Connection con, java.lang.String 
tablename, java.lang.String xmlname)

Delete binary file from BLOB table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

Returns:

true if successfull

deleteXMLName(Connection, String, String)

public boolean deleteXMLName(java.sql.Connection con, java.lang.String 
tablename, java.lang.String xmlname)

Delete file from XML table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

Returns:

true if successfull

dropBLOBTable(Connection, String)

public boolean dropBLOBTable(java.sql.Connection con, java.lang.String 
tablename)

Delete BLOB table

Parameters:

con - - the Connection object

tablename - - the table name

Returns:

true if successfull

dropXMLTable(Connection, String)

public boolean dropXMLTable(java.sql.Connection con, java.lang.String tablename)

Delete XML table

Parameters:

con - - the Connection object

tablename - - the table name

Returns:

true if successfull

getBLOBData(Connection, String, String)

public byte[] getBLOBData(java.sql.Connection con, java.lang.String tablename, 
java.lang.String xmlname)

Retrieve binary file from BLOB table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

Returns:

file as a byte array

getNameSize()

public int getNameSize()

Returns the size of the field where the filename is kept.

Returns:

filename size

getXMLData(Connection, String, String)

public java.lang.String getXMLData(java.sql.Connection con, java.lang.String 
tablename, java.lang.String xmlname)

Retrieve text file from XML table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

Returns:

file as a string

getXMLNames(Connection, String)

public java.lang.String[] getXMLNames(java.sql.Connection con, java.lang.String 
tablename)

Returns all file names in XML table

Parameters:

con - - the Connection object

tablename - - the table name

Returns:

String array with all file names in this table

getXMLTableNames(Connection, String)

public java.lang.String[] getXMLTableNames(java.sql.Connection con, 
java.lang.String tablePrefix)

Gets all XML tables with names starting with a given string

Parameters:

con - - the Connection object

tablePrefix - - table prefix string

Returns:

array of all XML tables that begin with tablePrefix

insertBLOBData(Connection, String, String, byte[])

public boolean insertBLOBData(java.sql.Connection con, java.lang.String 
tablename, java.lang.String xmlname, byte[] xmldata)

Inserts binary file as a row in BLOB table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

xmldata - - byte array with file data

Returns:

true if successfull

insertXMLData(Connection, String, String, String)

public boolean insertXMLData(java.sql.Connection con, java.lang.String 
tablename, java.lang.String xmlname, java.lang.String xmldata)

Inserts text file as a row in XML table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

xmldata - - string with the file data

Returns:

true if successfull

isXMLTable(Connection, String)

public boolean isXMLTable(java.sql.Connection con, java.lang.String tablename)

Check if the table is XML table.

Parameters:

con - - the Connection object

tableName - - the table name to test

Returns:

true if this is XML table

replaceXMLData(Connection, String, String, String)

public boolean replaceXMLData(java.sql.Connection con, java.lang.String 
tablename, java.lang.String xmlname, java.lang.String xmldata)

Replace text file as a row in XML table

Parameters:

con - - the Connection object

tablename - - the table name

xmlname - - the file name

xmldata - - string with the file data

Returns:

true if successfull

xmlTableExists(Connection, String)

public boolean xmlTableExists(java.sql.Connection con, java.lang.String 
tablename)

Checks if the XML table exists

Parameters:

con - - the Connection object

tablename - - the table name

Returns:

true if the table exists


DBAccessBeanInfo

Syntax

public class DBAccessBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.transviewer.DBAccessBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Constructors

DBAccessBeanInfo()

public  DBAccessBeanInfo()

Constructor

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo


XMLTransformPanel

Syntax

public class XMLTransformPanel extends javax.swing.JPanel
 
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--oracle.xml.transviewer.XMLTransformPanel

All Implemented Interfaces:

javax.accessibility.Accessible, java.awt.image.ImageObserver, 
java.awt.MenuContainer, java.io.Serializable

Description

XMLTransformPanel visual bean. Applies XSL transformations on XML documents. Visualizes the result. Allows editing of input XML and XSL documents/files.

Constructors

XMLTransformPanel()

public  XMLTransformPanel()

The class constructor. Creates an object of type XMLTransformPanel.


XMLTransformPanelBeanInfo

Syntax

public class XMLTransformPanelBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.transviewer.XMLTransformPanelBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Constructors

XMLTransformPanelBeanInfo()

public  XMLTransformPanelBeanInfo()

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo


XMLTransViewer

Syntax

public class XMLTransViewer extends java.lang.Object
 
java.lang.Object
  |
  +--oracle.xml.transviewer.XMLTransViewer

Description

Simple application that uses XMLTransformPanel. Can be used from the command line to edit and parse XML files, edit and apply XSL transformations and retrieve and save XML, XSL and result files in the file system or in the Oracle 8i database

Constructors

XMLTransViewer()

public  XMLTransViewer()

Methods

getReleaseVersion()

public static java.lang.String getReleaseVersion()

Returns the release version of the Oracle XML Transviewer

Returns:

the release version string

main(String[])

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

Package oracle.xml.treeviewer


XMLTreeView

Syntax

public class XMLTreeView extends javax.swing.JPanel
 
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--oracle.xml.treeviewer.XMLTreeView

All Implemented Interfaces:

javax.accessibility.Accessible, java.awt.image.ImageObserver, 
java.awt.MenuContainer, java.io.Serializable

Description

Shows an XML document as a tree. Recognizes the following XML DOM nodes: Tag, Attribute Name, Attribute Value, Comment, CDATA, PCDATA, PI Data, PI Name and NOTATION Symbol. Takes as input an org.w3c.dom.Document object.

Fields

model

protected oracle.xml.treeviewer.XMLTreeModel model

scrollPane

protected transient javax.swing.JScrollPane scrollPane

theTree

protected transient javax.swing.JTree theTree

Constructors

XMLTreeView()

public  XMLTreeView()

The class constructor. Creates an object of type XMLTreeView.

Methods

getPreferredSize()

public java.awt.Dimension getPreferredSize()

Returns the XMLTreeView preffered size.

Overrides:

javax.swing.JComponent.getPreferredSize() in class javax.swing.JComponent

Returns:

The Dimension object containing the XMLTreeView prefered size.

getTree()

protected javax.swing.JTree getTree()

getXMLTreeModel()

protected oracle.xml.treeviewer.XMLTreeModel getXMLTreeModel()

setXMLDocument(Document)

public void setXMLDocument(org.w3c.dom.Document document)

Associates the XMLTreeViewer with a XML document.

Parameters:

doc - The Document document to display.

updateUI()

public void updateUI()

Forces the XMLTreeView to update/refresh UI.

Overrides:

javax.swing.JPanel.updateUI() in class javax.swing.JPanel


XMLTreeViewBeanInfo

Syntax

public class XMLTreeViewBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.treeviewer.XMLTreeViewBeanInfo

All Implemented Interfaces:

java.beans.BeanInfo

Constructors

XMLTreeViewBeanInfo()

public  XMLTreeViewBeanInfo()

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Overrides:

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Overrides:

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo


Go to previous page Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index