org.apache.crimson.parser
Class ElementValidator

java.lang.Object
  extended byorg.apache.crimson.parser.ElementValidator
Direct Known Subclasses:
ValidatingParser.ChildrenValidator, ValidatingParser.EmptyValidator, ValidatingParser.MixedValidator

class ElementValidator
extends Object

Base class used within the parser to validate element content. Different content models involve different validation rules, and some involve state about the elements seen thus far. This base class corresponds to the "ANY" content model, and accepts all content.

Author:
David Brownell

Field Summary
(package private) static ElementValidator ANY
           
 
Constructor Summary
(package private) ElementValidator()
           
 
Method Summary
 void consume(String type)
          Consumes an element of the given type
 void done()
          Called when the element content is done
 void text()
          Consumes parsed or unparsed text data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

static final ElementValidator ANY
Constructor Detail

ElementValidator

ElementValidator()
Method Detail

consume

public void consume(String type)
             throws org.xml.sax.SAXException
Consumes an element of the given type

Throws:
org.xml.sax.SAXException

text

public void text()
          throws org.xml.sax.SAXException
Consumes parsed or unparsed text data

Throws:
org.xml.sax.SAXException

done

public void done()
          throws org.xml.sax.SAXException
Called when the element content is done

Throws:
org.xml.sax.SAXException