BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xalan.lib.sql
Class ExtensionError

java.lang.Object
  |
  +--weblogic.apache.xalan.lib.sql.ExtensionError
Direct Known Subclasses:
SQLExtensionError

public class ExtensionError
extends java.lang.Object
implements org.w3c.dom.traversal.NodeIterator, ContextNodeList, java.lang.Cloneable

A base class that will convert an exception into an XML stream that can be returned in place of the standard result. The XML format returned is a follows. Message from the Exception thrown Current stack information as CData If another class subclasses this class, there will be an oppurtitny to add specific information here. Each Extension class should implement their own specific Extension Error class.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.

Version:
1.0
Author:
John Gentilin

Constructor Summary
ExtensionError()
           
ExtensionError(java.lang.Exception err)
           
 
Method Summary
 java.lang.Object clone()
           
 org.w3c.dom.traversal.NodeIterator cloneWithReset()
           
 void detach()
           
 org.w3c.dom.Node getCurrentNode()
           
 int getCurrentPos()
           
 boolean getExpandEntityReferences()
          The value of this flag determines whether the children of entity reference nodes are visible to the iterator.
 org.w3c.dom.traversal.NodeFilter getFilter()
          The filter used to screen nodes.
 int getLast()
           
 org.w3c.dom.Node getRoot()
           
 int getWhatToShow()
          This attribute determines which node types are presented via the iterator.
 boolean isFresh()
           
 org.w3c.dom.Node nextNode()
          Return the #Document node (one role the XStatement plays) the first time called; return null thereafter.
protected  void populateSpecificData(org.w3c.dom.Document doc, org.w3c.dom.Node node)
          Other classes that extend this class will overrid this mehood to add any specific information.
 org.w3c.dom.Node previousNode()
           
protected  void processBaseError(java.lang.Exception err)
           
 void reset()
           
 void runTo(int index)
           
 void setCurrentPos(int i)
           
 void setLast(int last)
           
 void setShouldCacheNodes(boolean b)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionError

public ExtensionError()

ExtensionError

public ExtensionError(java.lang.Exception err)
Method Detail

processBaseError

protected void processBaseError(java.lang.Exception err)


populateSpecificData

protected void populateSpecificData(org.w3c.dom.Document doc,
                                    org.w3c.dom.Node node)
Other classes that extend this class will overrid this mehood to add any specific information.


getRoot

public org.w3c.dom.Node getRoot()
Specified by:
getRoot in interface org.w3c.dom.traversal.NodeIterator


getWhatToShow

public int getWhatToShow()
This attribute determines which node types are presented via the iterator. The available set of constants is defined in the NodeFilter interface.
Specified by:
getWhatToShow in interface org.w3c.dom.traversal.NodeIterator

Returns:
which node types are to be presented

getFilter

public org.w3c.dom.traversal.NodeFilter getFilter()
The filter used to screen nodes.
Specified by:
getFilter in interface org.w3c.dom.traversal.NodeIterator

Returns:
null.

getExpandEntityReferences

public boolean getExpandEntityReferences()
The value of this flag determines whether the children of entity reference nodes are visible to the iterator. If false, they will be skipped over.
To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the whatToShow flags to hide the entity reference node and set expandEntityReferences to true when creating the iterator. To produce a view of the document that has entity reference nodes but no entity expansion, use the whatToShow flags to show the entity reference node and set expandEntityReferences to false.
Specified by:
getExpandEntityReferences in interface org.w3c.dom.traversal.NodeIterator

Returns:
true.

nextNode

public org.w3c.dom.Node nextNode()
                          throws org.w3c.dom.DOMException
Return the #Document node (one role the XStatement plays) the first time called; return null thereafter.
Specified by:
nextNode in interface org.w3c.dom.traversal.NodeIterator

Returns:
this or null.
Throws:
org.w3c.dom.DOMException -  

previousNode

public org.w3c.dom.Node previousNode()
                              throws org.w3c.dom.DOMException
Specified by:
previousNode in interface org.w3c.dom.traversal.NodeIterator


detach

public void detach()
Specified by:
detach in interface org.w3c.dom.traversal.NodeIterator


getCurrentNode

public org.w3c.dom.Node getCurrentNode()
Specified by:
getCurrentNode in interface ContextNodeList


getCurrentPos

public int getCurrentPos()
Specified by:
getCurrentPos in interface ContextNodeList


reset

public void reset()
Specified by:
reset in interface ContextNodeList


setShouldCacheNodes

public void setShouldCacheNodes(boolean b)
Specified by:
setShouldCacheNodes in interface ContextNodeList


runTo

public void runTo(int index)
Specified by:
runTo in interface ContextNodeList


setCurrentPos

public void setCurrentPos(int i)
Specified by:
setCurrentPos in interface ContextNodeList


size

public int size()
Specified by:
size in interface ContextNodeList


isFresh

public boolean isFresh()
Specified by:
isFresh in interface ContextNodeList


cloneWithReset

public org.w3c.dom.traversal.NodeIterator cloneWithReset()
                                                  throws java.lang.CloneNotSupportedException
Specified by:
cloneWithReset in interface ContextNodeList


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface ContextNodeList

Overrides:
clone in class java.lang.Object

getLast

public int getLast()
Specified by:
getLast in interface ContextNodeList


setLast

public void setLast(int last)
Specified by:
setLast in interface ContextNodeList


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.