< prev index next >

src/java.xml.bind/share/classes/javax/xml/bind/ValidationEvent.java

Print this page




  43      * XML 1.0 recommendation
  44      */
  45     public static final int WARNING     = 0;
  46 
  47     /**
  48      * Conditions that correspond to the definition of "error" in section
  49      * 1.2 of the W3C XML 1.0 Recommendation
  50      */
  51     public static final int ERROR       = 1;
  52 
  53     /**
  54      * Conditions that correspond to the definition of "fatal error" in section
  55      * 1.2 of the W3C XML 1.0 Recommendation
  56      */
  57     public static final int FATAL_ERROR = 2;
  58 
  59     /**
  60      * Retrieve the severity code for this warning/error.
  61      *
  62      * <p>
  63      * Must be one of <tt>ValidationError.WARNING</tt>,
  64      * <tt>ValidationError.ERROR</tt>, or <tt>ValidationError.FATAL_ERROR</tt>.
  65      *
  66      * @return the severity code for this warning/error
  67      */
  68     public int getSeverity();
  69 
  70     /**
  71      * Retrieve the text message for this warning/error.
  72      *
  73      * @return the text message for this warning/error or null if one wasn't set
  74      */
  75     public String getMessage();
  76 
  77     /**
  78      * Retrieve the linked exception for this warning/error.
  79      *
  80      * @return the linked exception for this warning/error or null if one
  81      *         wasn't set
  82      */
  83     public Throwable getLinkedException();
  84 


  43      * XML 1.0 recommendation
  44      */
  45     public static final int WARNING     = 0;
  46 
  47     /**
  48      * Conditions that correspond to the definition of "error" in section
  49      * 1.2 of the W3C XML 1.0 Recommendation
  50      */
  51     public static final int ERROR       = 1;
  52 
  53     /**
  54      * Conditions that correspond to the definition of "fatal error" in section
  55      * 1.2 of the W3C XML 1.0 Recommendation
  56      */
  57     public static final int FATAL_ERROR = 2;
  58 
  59     /**
  60      * Retrieve the severity code for this warning/error.
  61      *
  62      * <p>
  63      * Must be one of {@code ValidationError.WARNING},
  64      * {@code ValidationError.ERROR}, or {@code ValidationError.FATAL_ERROR}.
  65      *
  66      * @return the severity code for this warning/error
  67      */
  68     public int getSeverity();
  69 
  70     /**
  71      * Retrieve the text message for this warning/error.
  72      *
  73      * @return the text message for this warning/error or null if one wasn't set
  74      */
  75     public String getMessage();
  76 
  77     /**
  78      * Retrieve the linked exception for this warning/error.
  79      *
  80      * @return the linked exception for this warning/error or null if one
  81      *         wasn't set
  82      */
  83     public Throwable getLinkedException();
  84 
< prev index next >