com.sun.msv.verifier.psvi

Class TypeDetector.AmbiguousDocumentException

Enclosing Class:
TypeDetector

public class TypeDetector.AmbiguousDocumentException
extends 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>
 

Constructor Summary

AmbiguousDocumentException()

Constructor Details

AmbiguousDocumentException

public AmbiguousDocumentException()