< prev index next >

src/java.xml/share/classes/javax/xml/validation/ValidatorHandler.java

Print this page




  90  * the corresponding <code>xmlns*</code> attribute in
  91  * the {@link org.xml.sax.Attributes} object of the
  92  * {@link ContentHandler#startElement(String,String,String,Attributes)}
  93  * callback. Otherwise, <code>xmlns*</code> attributes must not be
  94  * added to {@link org.xml.sax.Attributes} that's passed to the
  95  * user-specified {@link ContentHandler}.
  96  * <p>
  97  * (Note that regardless of this switch, namespace bindings are
  98  * always notified to applications through
  99  * {@link ContentHandler#startPrefixMapping(String,String)} and
 100  * {@link ContentHandler#endPrefixMapping(String)} methods of the
 101  * {@link ContentHandler} specified by the user.)
 102  *
 103  * <p>
 104  * Note that this feature does <em>NOT</em> affect the way
 105  * a {@link ValidatorHandler} receives SAX events. It merely
 106  * changes the way it augments SAX events.
 107  *
 108  * <p>This feature is set to <code>false</code> by default.</p>
 109  *
 110  * @author  <a href="mailto:Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a>
 111  * @since 1.5
 112  */
 113 public abstract class ValidatorHandler implements ContentHandler {
 114 
 115     /**
 116      * <p>Constructor for derived classes.</p>
 117      *
 118      * <p>The constructor does nothing.</p>
 119      *
 120      * <p>Derived classes must create {@link ValidatorHandler} objects that have
 121      * <code>null</code> {@link ErrorHandler} and
 122      * <code>null</code> {@link LSResourceResolver}.</p>
 123      */
 124     protected ValidatorHandler() {
 125     }
 126 
 127     /**
 128      * Sets the {@link ContentHandler} which receives
 129      * the augmented validation result.
 130      *




  90  * the corresponding <code>xmlns*</code> attribute in
  91  * the {@link org.xml.sax.Attributes} object of the
  92  * {@link ContentHandler#startElement(String,String,String,Attributes)}
  93  * callback. Otherwise, <code>xmlns*</code> attributes must not be
  94  * added to {@link org.xml.sax.Attributes} that's passed to the
  95  * user-specified {@link ContentHandler}.
  96  * <p>
  97  * (Note that regardless of this switch, namespace bindings are
  98  * always notified to applications through
  99  * {@link ContentHandler#startPrefixMapping(String,String)} and
 100  * {@link ContentHandler#endPrefixMapping(String)} methods of the
 101  * {@link ContentHandler} specified by the user.)
 102  *
 103  * <p>
 104  * Note that this feature does <em>NOT</em> affect the way
 105  * a {@link ValidatorHandler} receives SAX events. It merely
 106  * changes the way it augments SAX events.
 107  *
 108  * <p>This feature is set to <code>false</code> by default.</p>
 109  *
 110  * @author  Kohsuke Kawaguchi
 111  * @since 1.5
 112  */
 113 public abstract class ValidatorHandler implements ContentHandler {
 114 
 115     /**
 116      * <p>Constructor for derived classes.</p>
 117      *
 118      * <p>The constructor does nothing.</p>
 119      *
 120      * <p>Derived classes must create {@link ValidatorHandler} objects that have
 121      * <code>null</code> {@link ErrorHandler} and
 122      * <code>null</code> {@link LSResourceResolver}.</p>
 123      */
 124     protected ValidatorHandler() {
 125     }
 126 
 127     /**
 128      * Sets the {@link ContentHandler} which receives
 129      * the augmented validation result.
 130      *


< prev index next >