com.sun.msv.verifier.psvi
Class TypeDetector.AmbiguousDocumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xml.sax.SAXException
              extended bycom.sun.msv.verifier.psvi.TypeDetector.AmbiguousDocumentException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
TypeDetector

public class TypeDetector.AmbiguousDocumentException
extends org.xml.sax.SAXException

signals that the document is ambiguous. This exception is thrown when

  1. we cannot uniquely assign the type for given characters.
  2. or we cannot uniquely determine the type for the element when we reached the end element.
The formar case happens for patterns like:

 <choice>
   <data type="xsd:string"/>
   <data type="xsd:token"/>
 </choice>
 
The latter case happens for patterns like:

 <choice>
   <element name="foo">
     <text/>
   </element>
   <element>
     <anyName/>
     <text/>
   </element>
 </choice>
 

See Also:
Serialized Form

Constructor Summary
TypeDetector.AmbiguousDocumentException()
           
 
Methods inherited from class org.xml.sax.SAXException
getException, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeDetector.AmbiguousDocumentException

public TypeDetector.AmbiguousDocumentException()


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.