Class TypedDTD

java.lang.Object
eu.bandm.tools.tdom.runtime.TypedDTD
Direct Known Subclasses:
DTD, DTD, DTD, DTD

public abstract class TypedDTD extends Object
Common superclass for generated subclasses called "DTD.java", one for each tdom generated model. Implements runtime reflection information and factory methods.
  • Field Details

    • DTD_ENCODING

      public static final String DTD_ENCODING
      Encoding for parsing a DTD text file input, currently fixed to "UTF-8".
      See Also:
    • ORIGINAL_DTD_RESOURCE_NAME

      public static final String ORIGINAL_DTD_RESOURCE_NAME
      The name under which the DTD text file must be accessible in directory of generated model class files.
      See Also:
    • errorHandler

      ErrorHandler errorHandler
  • Constructor Details

  • Method Details

    • getErrorHandler

      public ErrorHandler getErrorHandler()
    • setErrorHandler

      public void setErrorHandler(ErrorHandler newErrorHandler)
    • getDTD

      public final DTD.Dtd getDTD()
    • getDTDSource

      public final String getDTDSource()
      Returns the text contents of the DTD text file used for this tdom model.
    • getChecksum

      public final long getChecksum()
      Returns the CRC checksum of the text contents of the DTD text file used for this tdom model.
    • getDocumentId

      public XMLDocumentIdentifier getDocumentId()
      This is only a default method which ALWAYS will be orverridden !?? bttodo FIXME ??
    • getElementIndex

      public final int getElementIndex(String tagName)
      Returns the numeric index of the element with the given tag, as stored in an internal instance of ElementIndex.
    • implementContentModel

      protected final void implementContentModel(String tagName)
    • extractSingleton

      protected static final Element extractSingleton(ContentMapping content)
    • parseContent

      public final ContentMapping parseContent(Element element)
    • printStatistics

      public static void printStatistics()
      Prints statistics on parsing time to System.err.
    • createLocator

      public Locator2 createLocator()
    • createLocator

      public Locator2 createLocator(String encoding)
    • getInterfaceInfo

      public abstract TypedDTD.DTDInfo getInterfaceInfo()
      Gives access to all reflection info objects.