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
Nested ClassesModifier and TypeClassDescriptionstatic classReflection information for a "synthetic" element in the generated code, caused by a "<?tdom abstract ..>" directive in the underlying DTD.static classReflection information for one particular Attribute definition from the DTD.static classContainer for all different kinds of reflection info objects.static classReflection information for one particular Element definition from the DTD.static classReflection information which indicates one(1) particular Java class, which has been generated to implement one(1) particular concept.static classReflection information which indicates one(1) particular Java class, generated to implement one(1) particular concept which carries a NamespaceName. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLocator(String encoding) protected static final ElementextractSingleton(ContentMapping content) Delivers an instance of the dtd stored with the tdom model with the given name.final longReturns 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.DtdgetDTD()final StringReturns the text contents of the DTD text file used for this tdom model.final intgetElementIndex(String tagName) Returns the numeric index of the element with the given tag, as stored in an internal instance ofElementIndex.abstract TypedDTD.DTDInfoGives access to all reflection info objects.protected final voidimplementContentModel(String tagName) final ContentMappingparseContent(Element element) static voidPrints statistics on parsing time toSystem.err.voidsetErrorHandler(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:
-
-
Constructor Details
-
TypedDTD
-
-
Method Details
-
getErrorHandler
-
setErrorHandler
-
forName
Delivers an instance of the dtd stored with the tdom model with the given name.- Parameters:
name- 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.
-