< prev index next >

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

Print this page




  24  */
  25 
  26 package javax.xml.validation;
  27 
  28 import org.w3c.dom.TypeInfo;
  29 
  30 /**
  31  * This class provides access to the type information determined
  32  * by {@link ValidatorHandler}.
  33  *
  34  * <p>
  35  * Some schema languages, such as W3C XML Schema, encourages a validator
  36  * to report the "type" it assigns to each attribute/element.
  37  * Those applications who wish to access this type information can invoke
  38  * methods defined on this "interface" to access such type information.
  39  *
  40  * <p>
  41  * Implementation of this "interface" can be obtained through the
  42  * {@link ValidatorHandler#getTypeInfoProvider()} method.
  43  *
  44  * @author  <a href="mailto:Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a>
  45  * @see org.w3c.dom.TypeInfo
  46  * @since 1.5
  47  */
  48 public abstract class TypeInfoProvider {
  49 
  50     /**
  51      * Constructor for the derived class.
  52      *
  53      * <p>
  54      * The constructor does nothing.
  55      */
  56     protected TypeInfoProvider() {
  57     }
  58 
  59     /**
  60      * <p>Returns the immutable {@link TypeInfo} object for the current
  61      * element.</p>
  62      *
  63      * <p>The method may only be called by the startElement event
  64      * or the endElement event




  24  */
  25 
  26 package javax.xml.validation;
  27 
  28 import org.w3c.dom.TypeInfo;
  29 
  30 /**
  31  * This class provides access to the type information determined
  32  * by {@link ValidatorHandler}.
  33  *
  34  * <p>
  35  * Some schema languages, such as W3C XML Schema, encourages a validator
  36  * to report the "type" it assigns to each attribute/element.
  37  * Those applications who wish to access this type information can invoke
  38  * methods defined on this "interface" to access such type information.
  39  *
  40  * <p>
  41  * Implementation of this "interface" can be obtained through the
  42  * {@link ValidatorHandler#getTypeInfoProvider()} method.
  43  *
  44  * @author  Kohsuke Kawaguchi
  45  * @see org.w3c.dom.TypeInfo
  46  * @since 1.5
  47  */
  48 public abstract class TypeInfoProvider {
  49 
  50     /**
  51      * Constructor for the derived class.
  52      *
  53      * <p>
  54      * The constructor does nothing.
  55      */
  56     protected TypeInfoProvider() {
  57     }
  58 
  59     /**
  60      * <p>Returns the immutable {@link TypeInfo} object for the current
  61      * element.</p>
  62      *
  63      * <p>The method may only be called by the startElement event
  64      * or the endElement event


< prev index next >