Package eu.bandm.tools.tdom.runtime
Class TypedDTD
java.lang.Object
eu.bandm.tools.tdom.runtime.TypedDTD
Common superclass for generated subclasses called "
DTD.java
", one
for each tdom generated model.
Implements runtime reflection information and factory methods.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Reflection information for a "synthetic" element in the generated code, caused by a "<?tdom abstract ..>
" directive in the underlying DTD.static class
Reflection information for one particular Attribute definition from the DTD.static class
Container for all different kinds of reflection info objects.static class
Reflection information for one particular Element definition from the DTD.static class
Reflection information which indicates one(1) particular Java class, which has been generated to implement one(1) particular concept.static class
Reflection information which indicates one(1) particular Java class, generated to implement one(1) particular concept which carries a NamespaceName. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Encoding for parsing a DTD text file input, currently fixed to "UTF-8".(package private) ErrorHandler
static final String
The name under which the DTD text file must be accessible in directory of generated model class files. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLocator
(String encoding) protected static final Element
extractSingleton
(ContentMapping content) Delivers an instance of the dtd stored with the tdom model with the given name.final long
Returns the CRC checksum of the text contents of the DTD text file used for this tdom model.This is only a default method which ALWAYS will be orverridden !?? bttodo FIXME ??final DTD.Dtd
getDTD()
final String
Returns the text contents of the DTD text file used for this tdom model.final int
getElementIndex
(String tagName) Returns the numeric index of the element with the given tag, as stored in an internal instance ofElementIndex
.abstract TypedDTD.DTDInfo
Gives access to all reflection info objects.protected final void
implementContentModel
(String tagName) final ContentMapping
parseContent
(Element element) static void
Prints statistics on parsing time toSystem.err
.void
setErrorHandler
(ErrorHandler newErrorHandler)
-
Field Details
-
DTD_ENCODING
Encoding for parsing a DTD text file input, currently fixed to "UTF-8".- See Also:
-
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
-
TypedDTD
-
-
Method Details
-
getErrorHandler
-
setErrorHandler
-
forName
Delivers an instance of the dtd stored with the tdom model with the given name.- Parameters:
the
- package name of the generated tdom
-
getDTD
-
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
This is only a default method which ALWAYS will be orverridden !?? bttodo FIXME ?? -
getElementIndex
Returns the numeric index of the element with the given tag, as stored in an internal instance ofElementIndex
. -
implementContentModel
-
extractSingleton
-
parseContent
-
printStatistics
public static void printStatistics()Prints statistics on parsing time toSystem.err
. -
createLocator
-
createLocator
-
getInterfaceInfo
Gives access to all reflection info objects.
-