Class DTDParser

  • All Implemented Interfaces:
    DTDParserConstants

    public class DTDParser
    extends java.lang.Object
    implements DTDParserConstants
    Main XML DTD parser. Parses DTD documents with parameter entity references already substituted by corresponding replacement text. Constructs DTD document object.
    Version:
    $Revision: 5961 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
    Author:
    Alexander Totok
    • Method Detail

      • SeqOrChoiceContPart

        public final ContentParticle SeqOrChoiceContPart()
                                                  throws ParseException
        Parsing procedure corresponding to the Content Particle nonterminal of the partial form: choice list of content particles, or sequence list of content particles.
        Returns:
        corresponding Content Particle object.
        Throws:
        ParseException
      • OccuranceSpecification

        public final void OccuranceSpecification​(ContentParticle cp)
                                          throws ParseException
        Method to parse occurance specification of a Content Particle, that is "?", "*" or "+".
        Parameters:
        cp - Content Particle being processed.
        Throws:
        ParseException
      • AttrValue

        public final java.lang.String AttrValue()
                                         throws ParseException
        Parsing procedure corresponding to the Attribute Value nonterminal.
        Returns:
        String containing parsed value.
        Throws:
        ParseException
      • GEntityDecl

        public final void GEntityDecl​(DTDdocument document)
                               throws ParseException
        Parsing procedure corresponding to the General Entity Declaration nonterminal.
        Parameters:
        document - DTD document to add this General Entity Declaration to.
        Throws:
        ParseException
      • GEValue

        public final java.lang.String GEValue()
                                       throws ParseException
        Parsing procedure corresponding to the General Entity Value nonterminal.
        Returns:
        String containing parsed value.
        Throws:
        ParseException
      • Comment

        public final void Comment()
                           throws ParseException
        Parsing procedure corresponding to the Comment nonterminal.
        Throws:
        ParseException
      • ReInit

        public void ReInit​(CharStream stream)
      • getNextToken

        public final Token getNextToken()
      • getToken

        public final Token getToken​(int index)
      • generateParseException

        public final ParseException generateParseException()
      • enable_tracing

        public final void enable_tracing()
      • disable_tracing

        public final void disable_tracing()