elena       2003/01/17 14:41:38

  Modified:    java/src/dom3/org/w3c/dom DOMError.java
  Log:
  Modify DOMError interface to include "type" and "relatedData" fields
  
  Revision  Changes    Path
  1.3       +22 -0     xml-xerces/java/src/dom3/org/w3c/dom/DOMError.java
  
  Index: DOMError.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/dom3/org/w3c/dom/DOMError.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DOMError.java     19 Jun 2002 22:27:10 -0000      1.2
  +++ DOMError.java     17 Jan 2003 22:41:37 -0000      1.3
  @@ -55,6 +55,28 @@
        * 2001)
        */
       public Object getRelatedException();
  +    
  +    /**
  +     *  A <code>DOMString</code> indicating which related data is expected in 
  +     * <code>relatedData</code>. Users should refer to the specification of 
  +     * the error in order to find its <code>DOMString</code> type and 
  +     * <code>relatedData</code> definitions if any.  As an example, [<a 
href='http://www.w3.org/TR/DOM-Level-3-LS'>DOM Level 3 Load and Save</a>] does 
  +     * not keep the [baseURI] property defined on a Processing Instruction 
  +     * information item. Therefore, the <code>DOMBuilder</code> generates a 
  +     * <code>SEVERITY_WARNING</code> with <code>type</code> 
  +     * <code>"infoset-baseURI"</code> and the lost [baseURI] property 
  +     * represented as a <code>DOMString</code> in the 
  +     * <code>relatedData</code> attribute. 
  +     */
  +
  +    public String getType();
  +    
  +    /**
  +     *  The related <code>Error.type</code> dependent data if any. 
  +     */
  +
  +    public Object getRelatedData();
  +
   
       /**
        * The location of the error.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to